class webfwt::StyledButton

sys::Obj
  fwt::Widget
    fwt::Pane
      fwt::ContentPane
        webfwt::StyledButton

@Js

Source

StyledButton is a customizable button that wraps a content widget.

bg

const Brush? bg := ...

Source

Background brush for button, or null for none.

bgPressed

const Brush? bgPressed := ...

Source

Background brush when button is pressed, or null for none.

border

Border? border := Border.<ctor>("#9a9a9a 4")

Source

Border of button, or null for none. This field cannot be changed after widget peer has been created.

command

Command? command

Source

Command 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")

Source

Drop shadow color, or null for none.

group

static Widget group(StyledButton[] buttons)

Source

Group a list of StyledButtons into a single widget.

innerShadow

const Shadow? innerShadow := Shadow.<ctor>("#fff 0 1")

Source

Inner shadow color, of null for none.

innerShadowPressed

const Shadow? innerShadowPressed := Shadow.<ctor>("#ccc 0 1")

Source

Inner shadow color when button is pressed, of null for none.

insets

const Insets insets := Insets.<ctor>(1, ((Int?)10))

Source

Insets betwee content and button border.

make

new make(|This|? f := null)

Source

It-block constructor.

makeHud

new makeHud(|This|? f := null)

Source

Construct HUD style button.

mode

const ButtonMode mode := ButtonMode.push

Source

ButtonMode - only push and toggle are supported.

onAction

EventListeners onAction()

Source

EventListener invoked when button is pressed.

onLayout

virtual override Void onLayout()

Source

onPressed

EventListeners onPressed()

Source

EventListener invoked when button is moved to pressed state. Use onAction to properly register button action events.

onReleased

EventListeners onReleased()

Source

EventListener invoked when button is moved to released state. Use onAction to properly register button action events.

prefSize

virtual override Size prefSize(Hints hints := Hints.defVal)

Source

selected

Bool selected := false

Source

The button's selected state (if toggle).

toolTip

const Str? toolTip := null

Source

Tooltip to display on mouse hover, or null for none.