class webfwt::StyledButton
sys::Obj fwt::Widget fwt::Pane fwt::ContentPane webfwt::StyledButton
@Js
StyledButton is a customizable button that wraps a content widget.
- bg
-
const Brush? bg := ...Background brush for button, or null for none.
- bgPressed
-
const Brush? bgPressed := ...Background brush when button is pressed, or null for none.
- border
-
Border? border := Border.<ctor>("#9a9a9a 4")Border of button, or null for none. This field cannot be changed after widget peer has been created.
- command
-
Command? commandCommand associated with this button. Setting the command automatically maps the enable state and eventing to the command.
- dropShadow
-
const Shadow? dropShadow := Shadow.<ctor>("#dfdfdf 0 1")Drop shadow color, or null for none.
- group
-
const static Widget group(StyledButton[] buttons)Group a list of StyledButtons into a single widget.
- innerShadow
-
const Shadow? innerShadow := Shadow.<ctor>("#fff 0 1")Inner shadow color, of null for none.
- innerShadowPressed
-
const Shadow? innerShadowPressed := Shadow.<ctor>("#ccc 0 1")Inner shadow color when button is pressed, of null for none.
- insets
-
const Insets insets := Insets.<ctor>(1, ((Int?)10))Insets betwee content and button border.
- make
-
new make(|This|? f := null)It-block constructor.
- makeHud
-
new makeHud(|This|? f := null)Construct HUD style button.
- mode
-
const ButtonMode mode := ButtonMode.pushButtonMode - only push and toggle are supported.
- onAction
-
EventListeners onAction()EventListener invoked when button is pressed.
- onLayout
-
virtual override Void onLayout() - onPressed
-
EventListeners onPressed()EventListener invoked when button is moved to pressed state. Use
onActionto properly register button action events. - onReleased
-
EventListeners onReleased()EventListener invoked when button is moved to released state. Use
onActionto properly register button action events. - prefSize
- selected
-
Bool selected := falseThe button's selected state (if toggle).
- toolTip
-
const Str? toolTip := nullTooltip to display on mouse hover, or null for none.