-
Notifications
You must be signed in to change notification settings - Fork 0
class_button
reduz edited this page Feb 23, 2014
·
9 revisions
Inherits: basebutton\ Category: Core\
Standard themed Button.
- void #set_text( String text )
- String #get_text(****) const
- void #set_button_icon( Texture texture )
- Texture #get_button_icon(****) const
- void #set_flat( bool enabled )
- void #set_clip_text( bool enabled )
- bool #get_clip_text(****) const
- void #set_text_align( int align )
- int #get_text_align(****) const
- bool #is_flat(****) const
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.
== set_text ==
- void #set_text( String text ) \ Set the button text, which will be displayed inside the button area. == get_text ==
- String #get_text(****) const \ Return the button text. == set_flat ==
- void #set_flat( bool enabled ) \ Set the //flat// property of a Button. Flat buttons don"apos;t display decoration unless hoevered or pressed. == set_clip_text ==
- 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. == get_clip_text ==
- bool #get_clip_text(****) const \ Return the state of the //clip_text// property (see #set_clip_text) == is_flat ==
- bool #is_flat(****) const \ Return the state of the //flat// property (see #set_flat)