Skip to content

Commit

Permalink
[Buttons] Add documentation for Enums.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 353292772
  • Loading branch information
codeman7 authored and material-automation committed Jan 22, 2021
1 parent d5bba14 commit c727b89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/Buttons/src/MDCFloatingButton+Animation.h
Expand Up @@ -14,6 +14,10 @@

#import "MDCFloatingButton.h"

/**
This category is used to animate @c MDCFloatingButton instances, to expand or
collapse.
*/
@interface MDCFloatingButton (Animation)

/**
Expand Down
11 changes: 11 additions & 0 deletions components/Buttons/src/MDCFloatingButton.h
Expand Up @@ -34,6 +34,11 @@ typedef NS_ENUM(NSInteger, MDCFloatingButtonShape) {
MDCFloatingButtonShapeMini = 1
};

/**
Size of Material Floating button.
The expanded mode should only be used when text and an icon are used.
*/
typedef NS_ENUM(NSInteger, MDCFloatingButtonMode) {
/**
The floating button is a circle with its contents centered.
Expand All @@ -46,6 +51,12 @@ typedef NS_ENUM(NSInteger, MDCFloatingButtonMode) {
MDCFloatingButtonModeExpanded = 1,
};

/**
Image location of Material Floating button.
If the button is @c MDCFloatingButtonModeExpanded this determines where the
text is rendered in relation to the icon.
*/
typedef NS_ENUM(NSInteger, MDCFloatingButtonImageLocation) {
/**
The image of the floating button is on the leading side of the title.
Expand Down

0 comments on commit c727b89

Please sign in to comment.