#include <UIHelper.h>
Public Member Functions | |
| UIHelper () | |
| ~UIHelper () | |
| Default destructor. More... | |
| void | init () |
| UIWidget * | createWidgetFromJsonFile (const char *fileName) |
| Load a widget with json file. More... | |
| void | addSpriteFrame (const char *fileName) |
| void | removeSpriteFrame (const char *fileName) |
| void | removeAllSpriteFrame () |
| UIWidget * | seekWidgetByTag (UIWidget *root, int tag) |
| Finds a widget whose tag equals to param tag from root widget. More... | |
Static Public Member Functions | |
| static UIHelper * | instance () |
| static void | purgeUIHelper () |
name value. | |||
Finds a widget whose name equals to param name from root widget. RelativeLayout will call this method to find the widget witch is needed.
| |||
| float | m_fFileDesignWidth | ||
| float | m_fFileDesignHeight | ||
| CCArray * | m_textureFiles | ||
| UIWidget * | seekWidgetByName (UIWidget *root, const char *name) | ||
| UIWidget * | seekWidgetByRelativeName (UIWidget *root, const char *name) | ||
| void | setFileDesignWidth (float width) | ||
| float | getFileDesignWidth () | ||
| void | setFileDesignHeight (float height) | ||
| float | getFileDesignHeight () | ||
| UIWidget * | seekActionWidgetByActionTag (UIWidget *root, int tag) | ||
| UIHelper | ( | ) |
| ~UIHelper | ( | ) |
Default destructor.
| void addSpriteFrame | ( | const char * | fileName) |
| UIWidget* createWidgetFromJsonFile | ( | const char * | fileName) |
Load a widget with json file.
| float getFileDesignHeight | ( | ) |
| float getFileDesignWidth | ( | ) |
| void init | ( | ) |
|
static |
|
static |
| void removeAllSpriteFrame | ( | ) |
| void removeSpriteFrame | ( | const char * | fileName) |
Finds a widget whose tag equals to param tag from root widget.
| root | widget which will be seeked. |
tag value.
| void setFileDesignHeight | ( | float | height) |
| void setFileDesignWidth | ( | float | width) |
|
protected |
|
protected |
|
protected |