WithImageAndText
A KalugaButtonStyleDSL.WithText and KalugaButtonStyleDSL.WithImage for creating a KalugaButtonStyle.WithImageAndText
Properties
the ButtonStateStyle.WithImageAndText that the button is in by default
the ButtonStateStyle.WithImageAndText that the button is in when disabled. If null defaultStyle will be used.
the KalugaFont that the text is in
the ImageGravity to determine placement of the ButtonImage relative to the text
the ImageSize of the ButtonImage
the ButtonStateStyle.WithImageAndText that the button is in when pressed. If null defaultStyle will be used.
the spacing between the ButtonImage and text
the KalugaTextAlignment of the text
Functions
Sets defaultStyle using the creation using a ButtonStateStyleDSL.WithImageAndText The ButtonStateStyleDSL.WithImageAndText will be preconfigured with the layout of the previous defaultStyle
Sets disabledStyle using the creation using a ButtonStateStyleDSL.WithImageAndText The ButtonStateStyleDSL.WithImageAndText will be preconfigured with the layout of the previous disabledStyle or defaultStyle if null
Sets pressedStyle using the creation using a ButtonStateStyleDSL.WithImageAndText The ButtonStateStyleDSL.WithImageAndText will be preconfigured with the layout of the previous pressedStyle or defaultStyle if null
Sets backgroundStyle to a KalugaBackgroundStyle with KalugaBackgroundStyle.FillStyle.Solid based on a KalugaColor and shape
Sets the ButtonStateStyle.WithImage.image to a ButtonImage.Image for all states
Sets the ButtonStateStyle.WithImage.image to a ButtonImage.Tinted for all states
Sets font, textSize, and textAlignment according to a KalugaTextStyle and ButtonStateStyle.WithText.textColor for all states