Skip to content

class_button

reduz edited this page Feb 23, 2014 · 9 revisions

Button

Inherits: BaseButton\n\n

Brief Description

Standard themed Button.

Member Functions

Description

Button is just the standard themed button: [image src="images/button_example.png"/] It can contain text and an icon, and will display them according to the current theme.

Member Function Description

  • void ** set_text ** ( String text ) \ Set the button text, which will be displayed inside the button area.
  • void ** set_flat ** ( bool enabled ) \ Set the //flat// property of a Button. Flat buttons don"apos;t display decoration unless hoevered or pressed.
  • void ** set_clip_text ** ( bool enabled ) \ Set the //clip_text// property of a Button. When this property is enabled, text that is too large to fit the button is clipped, when disabled (default) the Button will always be wide enough to hold the text.

Clone this wiki locally