Torque2D Reference
Loading...
Searching...
No Matches
GuiThemeMembership Struct Reference

#include <guiProfileTheme.h>

Public Member Functions

 GuiThemeMembership ()
void parseOverrideList (const char *list)
const char * formatOverrideList () const
bool isOverridden (StringTableEntry field) const
void markOverride (StringTableEntry field)
void clearOverride (StringTableEntry field)
void clearAll ()

Public Attributes

GuiProfileThememTheme
 Owning theme; NULL for standalone objects.
Vector< StringTableEntry > mOverrides
 Fields explicitly overridden away from the theme's defaults.

Detailed Description

Embedded by GuiControlProfile and GuiBorderProfile to record membership in a GuiProfileTheme: a non-owning back-pointer to the theme plus the set of fields the user explicitly overrode away from the theme's stamped defaults. A NULL theme means the object is standalone and behaves exactly as it did before themes existed.

Constructor & Destructor Documentation

◆ GuiThemeMembership()

GuiThemeMembership ( )
inline

Member Function Documentation

◆ clearAll()

void clearAll ( )
inline

◆ clearOverride()

void clearOverride ( StringTableEntry field)
inline

◆ formatOverrideList()

const char * formatOverrideList ( ) const

◆ isOverridden()

bool isOverridden ( StringTableEntry field) const
inline

◆ markOverride()

void markOverride ( StringTableEntry field)
inline

◆ parseOverrideList()

void parseOverrideList ( const char * list)

Parse a whitespace-separated field-name list into the override set (additive), and format the set back into a transient return buffer. Used by the members' "themeOverrides" persist field.

Member Data Documentation

◆ mOverrides

Vector<StringTableEntry> mOverrides

Fields explicitly overridden away from the theme's defaults.

◆ mTheme

GuiProfileTheme* mTheme

Owning theme; NULL for standalone objects.


The documentation for this struct was generated from the following files: