Public Methods |
virtual bool | Setup (iObjectRegistry *object_reg)=0 |
| Performs whatever initialization is needed.
|
virtual bool | Load (const char *def_file)=0 |
| Invokes the definition parser to load definition files.
|
virtual unsigned long | NameToId (char *name)=0 |
| Maps a name to an id.
|
virtual bool | SelectDefaultSkin (char *skin_name)=0 |
| Select which skin is the default for components, the skin must be loaded. True on success, false otherwise.
|
virtual bool | LookupIntKey (char *name, int &val)=0 |
| Lookup the value of an int key by name (from the skin def).
|
virtual bool | LookupIntKey (unsigned long id, int &val)=0 |
| Lookup the value of an int key by id (from the skin def).
|
virtual bool | LookupStringKey (char *name, iString *&val)=0 |
| Lookup the value of a string key by name (from the skin def).
|
virtual bool | LookupStringKey (unsigned long id, iString *&val)=0 |
| Lookup the value of a string key by id (from the skin def).
|
virtual bool | LookupRectKey (char *name, csRect &rect)=0 |
| Lookup the value of a rect key by name (from the skin def).
|
virtual bool | LookupRectKey (unsigned long id, csRect &rect)=0 |
| Lookup the value of a rect key by id (from the skin def).
|
virtual bool | LookupRGBKey (char *name, unsigned char &red, unsigned char &green, unsigned char &blue)=0 |
| Lookup the value of an RGB key by name (from the skin def).
|
virtual bool | LookupRGBKey (unsigned long id, unsigned char &red, unsigned char &green, unsigned char &blue)=0 |
| Lookup the value of an RGB key by name (from the skin def).
|
virtual bool | LookupPointKey (char *name, csPoint &point)=0 |
| Lookup the value of a point key by name (from the skin def).
|
virtual bool | LookupPointKey (unsigned long id, csPoint &point)=0 |
| Lookup the value of a point key by id (from the skin def).
|
virtual bool | GetInt (awsComponentNode *node, char *name, int &val)=0 |
| Get the an integer from a given component node.
|
virtual bool | GetRect (awsComponentNode *node, char *name, csRect &rect)=0 |
| Get the a rect from a given component node.
|
virtual bool | GetString (awsComponentNode *node, char *name, iString *&val)=0 |
| Get the value of an integer from a given component node.
|
virtual awsComponentNode* | FindWindowDef (char *name)=0 |
| Find window definition and return the component node holding it, Null otherwise.
|
virtual void | SetColor (int index, int color)=0 |
| Sets the value of a color in the global AWS palette.
|
virtual int | GetColor (int index)=0 |
| Gets the value of a color from the global AWS palette.
|
virtual int | FindColor (unsigned char r, unsigned char g, unsigned char b)=0 |
| Finds the closest matching color.
|
virtual iFont* | GetDefaultFont ()=0 |
| Gets the current default font.
|
virtual iFont* | GetFont (char *filename)=0 |
| Gets a font. If it's not loaded, it will be. Returns NULL on error.
|
virtual iTextureHandle* | GetTexture (char *name, char *filename=NULL)=0 |
| Gets a texture from the global AWS cache.
|
virtual void | SetTextureManager (iTextureManager *txtmgr)=0 |
| Sets the texture manager that the preference manager uses.
|
virtual void | SetFontServer (iFontServer *fntsvr)=0 |
| Sets the font server that the preference manager uses.
|
virtual void | SetWindowMgr (iAws *wmgr)=0 |
| Sets the window manager that the preference manager uses.
|
virtual void | SetupPalette ()=0 |
| Sets up the AWS palette so that the colors are valid reflections of user preferences. More...
|
virtual void | RegisterConstant (char *name, int value)=0 |
| Allows a component to specify it's own constant values for parsing.
|
virtual bool | ConstantExists (char *name)=0 |
| Returns true if the constant has been registered, false otherwise.
|
virtual int | GetConstantValue (char *name)=0 |
| Allows a component to retrieve the value of a constant, or the parser as well.
|
virtual iAwsKeyFactory* | CreateKeyFactory ()=0 |
| Creates a new key factory.
|