Theme¶
Inherits: Resource < Reference < Object
Category: Core
Brief Description¶
Theme for controls.
Member Functions¶
void |
clear_color ( String name, String type ) |
void |
clear_constant ( String name, String type ) |
void |
clear_font ( String name, String type ) |
void |
clear_icon ( String name, String type ) |
void |
clear_stylebox ( String name, String type ) |
void |
|
get_color_list ( String type ) const |
|
get_constant ( String name, String type ) const |
|
get_constant_list ( String type ) const |
|
get_default_font ( ) const |
|
get_font_list ( String type ) const |
|
get_icon_list ( String type ) const |
|
get_stylebox ( String name, String type ) const |
|
get_stylebox_list ( String type ) const |
|
get_stylebox_types ( ) const |
|
get_type_list ( String type ) const |
|
has_constant ( String name, String type ) const |
|
has_stylebox ( String name, String type ) const |
|
void |
|
void |
set_constant ( String name, String type, int constant ) |
void |
set_default_font ( Object font ) |
void |
|
void |
|
void |
set_stylebox ( String name, String type, StyleBox texture ) |
Description¶
Theme for skinning controls. Controls can be skinned individually, but for complex applications it’s more efficient to just create a global theme that defines everything. This theme can be applied to any Control, and it and its children will automatically use it.
Theme resources can be alternatively loaded by writing them in a .theme file, see docs for more info.
Member Function Description¶
void copy_default_theme ( )
StringArray get_color_list ( String type ) const
StringArray get_constant_list ( String type ) const
Object get_default_font ( ) const
StringArray get_font_list ( String type ) const
StringArray get_icon_list ( String type ) const
StringArray get_stylebox_list ( String type ) const
StringArray get_stylebox_types ( ) const
StringArray get_type_list ( String type ) const
void set_default_font ( Object font )