Theme

Theme for controls.

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.

@GodotBaseClass
struct Theme {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_emitThemeChanged
void _emitThemeChanged()
clearColor
void clearColor(StringArg0 name, StringArg1 type)

Clears theme Color at name if Theme has type.

clearConstant
void clearConstant(StringArg0 name, StringArg1 type)

Clears theme constant at name if Theme has type.

clearFont
void clearFont(StringArg0 name, StringArg1 type)

Clears Font at name if Theme has type.

clearIcon
void clearIcon(StringArg0 name, StringArg1 type)

Clears icon at name if Theme has type.

clearStylebox
void clearStylebox(StringArg0 name, StringArg1 type)

Clears StyleBox at name if Theme has type.

copyDefaultTheme
void copyDefaultTheme()

Sets theme values to a copy of the default theme values.

getColor
Color getColor(StringArg0 name, StringArg1 type)

Returns the Color at name if Theme has type.

getColorList
PoolStringArray getColorList(StringArg0 type)

Returns all of the Colors as a PoolStringArray filled with each Color's name, for use in getColor, if Theme has type.

getConstant
long getConstant(StringArg0 name, StringArg1 type)

Returns the constant at name if Theme has type.

getConstantList
PoolStringArray getConstantList(StringArg0 type)

Returns all of the constants as a PoolStringArray filled with each constant's name, for use in getConstant, if Theme has type.

getDefaultFont
Ref!Font getDefaultFont()
getFont
Ref!Font getFont(StringArg0 name, StringArg1 type)

Returns the Font at name if Theme has type.

getFontList
PoolStringArray getFontList(StringArg0 type)

Returns all of the Fonts as a PoolStringArray filled with each Font's name, for use in getFont, if Theme has type.

getIcon
Ref!Texture getIcon(StringArg0 name, StringArg1 type)

Returns the icon Texture at name if Theme has type.

getIconList
PoolStringArray getIconList(StringArg0 type)

Returns all of the icons as a PoolStringArray filled with each Texture's name, for use in getIcon, if Theme has type.

getStylebox
Ref!StyleBox getStylebox(StringArg0 name, StringArg1 type)

Returns the icon StyleBox at name if Theme has type.

getStyleboxList
PoolStringArray getStyleboxList(StringArg0 type)

Returns all of the StyleBoxs as a PoolStringArray filled with each StyleBox's name, for use in getStylebox, if Theme has type.

getStyleboxTypes
PoolStringArray getStyleboxTypes()

Returns all of the StyleBox types as a PoolStringArray filled with each StyleBox's type, for use in getStylebox and/or getStyleboxList, if Theme has type.

getTypeList
PoolStringArray getTypeList(StringArg0 type)

Returns all of the types in type as a PoolStringArray for use in any of the get_* functions, if Theme has type.

hasColor
bool hasColor(StringArg0 name, StringArg1 type)

Returns true if Color with name is in type. Returns false if Theme does not have type.

hasConstant
bool hasConstant(StringArg0 name, StringArg1 type)

Returns true if constant with name is in type. Returns false if Theme does not have type.

hasFont
bool hasFont(StringArg0 name, StringArg1 type)

Returns true if Font with name is in type. Returns false if Theme does not have type.

hasIcon
bool hasIcon(StringArg0 name, StringArg1 type)

Returns true if icon Texture with name is in type. Returns false if Theme does not have type.

hasStylebox
bool hasStylebox(StringArg0 name, StringArg1 type)

Returns true if StyleBox with name is in type. Returns false if Theme does not have type.

opAssign
Theme opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Theme other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setColor
void setColor(StringArg0 name, StringArg1 type, Color color)

Sets Theme's Color to color at name in type. Does nothing if Theme does not have type.

setConstant
void setConstant(StringArg0 name, StringArg1 type, long constant)

Sets Theme's constant to constant at name in type. Does nothing if Theme does not have type.

setDefaultFont
void setDefaultFont(Font font)
setFont
void setFont(StringArg0 name, StringArg1 type, Font font)

Sets Theme's Font to font at name in type. Does nothing if Theme does not have type.

setIcon
void setIcon(StringArg0 name, StringArg1 type, Texture texture)

Sets Theme's icon Texture to texture at name in type. Does nothing if Theme does not have type.

setStylebox
void setStylebox(StringArg0 name, StringArg1 type, StyleBox texture)

Sets Theme's StyleBox to stylebox at name in type. Does nothing if Theme does not have type.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

defaultFont
Font defaultFont [@property getter]
Font defaultFont [@property setter]

The theme's default font.

Static functions

_new
Theme _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta