Reference for the Mosaic class XFlat::IconButton

XFlat::IconButton
ButtonImage
Caption
OnAction
enterLeaveSlot
pressReleaseSlot
Core::Group
AlphaBlended
Buffered
Embedded
Enabled
Focus
Opacity
Visible
Add()
AddBehind()
BroadcastEvent()
BroadcastEventAtPosition()
CountViews()
DispatchEvent()
FindNextView()
FindPrevView()
FindSiblingView()
FindViewAtPosition()
FindViewInDirection()
FindViewWithinArea()
GetContentArea()
GetIndexOfView()
GetViewAtIndex()
GlobalPosition()
HasViewState()
Init()
InvalidateArea()
InvalidateViewState()
LocalPosition()
ObtainFocus()
Remove()
Restack()
RestackBack()
RestackBehind()
RestackTop()
UpdateLayout()
UpdateViewState()
Core::RectView
Bounds
Core::View
Layout
Owner
ArrangeView()
ChangeViewState()
CursorHitTest()
Draw()
GetExtent()
GetRoot()
HandleEvent()
MoveView()

Button widget with an icon button and a text item. The widget is used as a simple push button.

property Resources::Bitmap ButtonImage = XFlat::ButtonEmpty;

The property 'ButtonImage' stores the bitmap that is used to draw the button. This image has to contain two frames: one for the released state and one for the pressed state.

property string Caption = "Button";

The property 'Caption' stores the text to display within the item.

property slot OnAction = null;

The property 'OnAction' can refer to a slot method, which will receive a signal as soon the user has pressed the button. Thereupon the method's logic will be executed.

slot enterLeaveSlot;

This internal slot method is used to receive the corresponding signals form the touch handler.

slot pressReleaseSlot;

This internal slot method is used to receive the corresponding signals form the touch handler.