MSFBalloonPopupButtonStyleBuilder
Objective-C
@interface MSFBalloonPopupButtonStyleBuilder : MSFStyleBuilder
Swift
class MSFBalloonPopupButtonStyleBuilder : MSFStyleBuilder
A builder class for BalloonPopupButtonStyle.
-
Constructs a BalloonPopupButtonStyleBuilder object with all parameters set to defaults.
Declaration
Objective-C
- (id)init;Swift
init!() -
Returns the width of the button. If this value is -1, then button width is calculated automatically based on button text.
Declaration
Objective-C
- (int)getButtonWidth;Swift
func getButtonWidth() -> Int32Return Value
The width of the button in dp.
-
Sets the width of the button. The default is -1, which means that button width is calculated automatically based on button text.
Declaration
Objective-C
- (void)setButtonWidth:(int)buttonWidth;Swift
func setButtonWidth(_ buttonWidth: Int32)Parameters
buttonWidthThe button width in dp, or -1.
-
Returns the corner radius of the button.
Declaration
Objective-C
- (int)getCornerRadius;Swift
func getCornerRadius() -> Int32Return Value
The corner radius of the button in dp.
-
Sets the corner radius of the button. Bigger values mean rounder corners, 0 creates a rectangular button. The default is 3.
Declaration
Objective-C
- (void)setCornerRadius:(int)cornerRadius;Swift
func setCornerRadius(_ cornerRadius: Int32)Parameters
cornerRadiusThe new corner radius in dp.
-
Returns the name of the text font.
Declaration
Objective-C
- (NSString *)getTextFontName;Swift
func getTextFontName() -> String!Return Value
The name of the text font.
-
Sets the name of the text font. Accepts a CSS-like list, the most preferred name first, entries optionally tagged with the platform they are for (“android:Roboto, ios:Helvetica Neue, sans-serif”). A name the device has no font for is skipped; generic names (“sans-serif”, “serif”, “monospace”, “Arial”, …) map to the platform font. The default is HelveticaNeue-Light.
Declaration
Objective-C
- (void)setTextFontName:(NSString *)textFontName;Swift
func setTextFontName(_ textFontName: String!)Parameters
textFontNameThe new name for the text font.
-
Returns the size of the text font.
Declaration
Objective-C
- (int)getTextFontSize;Swift
func getTextFontSize() -> Int32Return Value
The size of the text font.
-
Sets the size of the text font. The default is 16.
Declaration
Objective-C
- (void)setTextFontSize:(int)textFontSize;Swift
func setTextFontSize(_ textFontSize: Int32)Parameters
textFontSizeThe new size for the text font in pts.
-
Returns the margins of the text.
Declaration
Objective-C
- (MSFBalloonPopupMargins *)getTextMargins;Swift
func getTextMargins() -> MSFBalloonPopupMargins!Return Value
The margins of the text.
-
Sets the margins for the text. The margins will determine how much empty space should surround the text. The default is BalloonPopupMargins(8, 4, 8, 8).
Declaration
Objective-C
- (void)setTextMargins:(MSFBalloonPopupMargins *)textMargins;Swift
func setTextMargins(_ textMargins: MSFBalloonPopupMargins!)Parameters
textMarginsThe new margins for the text in dp.
-
Returns the width of the stroke surrounding the button.
Declaration
Objective-C
- (int)getStrokeWidth;Swift
func getStrokeWidth() -> Int32Return Value
The width of the stroke surrounding the button in dp.
-
Sets the width of the stroke surrounding the button. The default is 1.
Declaration
Objective-C
- (void)setStrokeWidth:(int)strokeWidth;Swift
func setStrokeWidth(_ strokeWidth: Int32)Parameters
strokeWidthThe new width of the stroke surrounding the button.
-
Builds a new instance of the BalloonPopupButtonStyle object using previously set parameters.
Declaration
Objective-C
- (MSFBalloonPopupButtonStyle *)buildStyle;Swift
func buildStyle() -> MSFBalloonPopupButtonStyle!Return Value
A new BalloonPopupButtonStyle object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()