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 copy_default_theme ( )
Color get_color ( String name, String type ) const
StringArray get_color_list ( String type ) const
int get_constant ( String name, String type ) const
StringArray get_constant_list ( String type ) const
Object get_default_font ( ) const
Font get_font ( String name, String type ) const
StringArray get_font_list ( String type ) const
Texture get_icon ( String name, String type ) const
StringArray get_icon_list ( String type ) const
StyleBox get_stylebox ( String name, String type ) const
StringArray get_stylebox_list ( String type ) const
StringArray get_type_list ( String type ) const
bool has_color ( String name, String type ) const
bool has_constant ( String name, String type ) const
bool has_font ( String name, String type ) const
bool has_icon ( String name, String type ) const
bool has_stylebox ( String name, String type ) const
void set_color ( String name, String type, Color color )
void set_constant ( String name, String type, int constant )
void set_default_font ( Object font )
void set_font ( String name, String type, Font font )
void set_icon ( String name, String type, Texture texture )
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 wiki for more info.

Member Function Description

  • void copy_default_theme ( )
  • Object get_default_font ( ) const
  • void set_default_font ( Object font )