![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
The main controller responsible for instantiating objects from XOML based files. More...
#include <CzXoml.h>
Public Types | |
| typedef CzList < IzXomlClassCreator * > ::iterator | _Iterator |
| typedef CzList< IzXomlAction * > ::iterator | _ActionsIterator |
Public Member Functions | |
| _Iterator | begin () |
| _Iterator | end () |
| _ActionsIterator | actions_begin () |
| _ActionsIterator | actions_end () |
| void | addClass (IzXomlClassCreator *creator) |
| void | addAction (IzXomlAction *action) |
| IzXomlClassCreator * | findClass (unsigned int name_hash) |
| Searches the XOML system for the named class. | |
| IzXomlClassCreator * | findClass (const char *name) |
| Searches the XOML system for the named class. | |
| IzXomlAction * | findAction (unsigned int name_hash) |
| Searches the XOML action system for the named XOML action. | |
| IzXomlAction * | findAction (const char *name) |
| Searches the XOML action system for the named XOML action. | |
| void | Init () |
| Initialises the XOML system. | |
| void | Release () |
| Releases the XOML system. | |
| bool | Process (IzXomlResource *parent, const char *filename, bool reset_xml_pools=true) |
| Loads and processes the supplied XOML file. | |
| bool | Process (IzXomlResource *parent, CzXmlNode *node) |
| Processes the supplied XOML node tree. | |
| IzXomlResource * | ProcessNode (IzXomlResource *parent, CzXmlNode *node) |
| Processes the supplied XOML node tree. | |
Static Public Member Functions | |
| static void | ApplyStyle (CzStyle *style, CzXmlNode *node) |
| Applies a style to the node. | |
Static Public Attributes | |
| static const char * | DockingNames [] |
| static const char * | AspectLockNames [] |
| static const char * | AlphaModeNames [] |
| static const char * | AlignHNames [] |
| static const char * | AlignVNames [] |
| static const char * | SelectTypeNames [] |
| static const char * | AxisNames [] |
| static const char * | OrientationNames [] |
| static const char * | InputTypeHintNames [] |
Protected Attributes | |
| CzList< IzXomlClassCreator * > | ClassCreators |
| CzList< IzXomlAction * > | Actions |
The main controller responsible for instantiating objects from XOML based files.
CzXoml is the mother of the XOML system and is responsible for the following:
| typedef CzList<IzXomlAction*>::iterator CzXoml::_ActionsIterator |
| typedef CzList<IzXomlClassCreator*>::iterator CzXoml::_Iterator |
| _ActionsIterator CzXoml::actions_begin | ( | ) | [inline] |
| _ActionsIterator CzXoml::actions_end | ( | ) | [inline] |
| void CzXoml::addAction | ( | IzXomlAction * | action | ) | [inline] |
| void CzXoml::addClass | ( | IzXomlClassCreator * | creator | ) | [inline] |
| void CzXoml::ApplyStyle | ( | CzStyle * | style, |
| CzXmlNode * | node | ||
| ) | [static] |
Applies a style to the node.
Applies a sets of style attributes to an XML node. Used by the styling system to modify XOML tags.
| [in,out] | style | If non-null, the style. |
| [in,out] | node | If non-null, the node. |
| _Iterator CzXoml::begin | ( | ) | [inline] |
| _Iterator CzXoml::end | ( | ) | [inline] |
| IzXomlAction * CzXoml::findAction | ( | unsigned int | name_hash | ) |
Searches the XOML action system for the named XOML action.
| name_hash | The action name as a string hash. |
| IzXomlAction * CzXoml::findAction | ( | const char * | name | ) |
Searches the XOML action system for the named XOML action.
| name | The action name. |
| IzXomlClassCreator * CzXoml::findClass | ( | unsigned int | name_hash | ) |
Searches the XOML system for the named class.
| name_hash | The class name as a string hash. |
| IzXomlClassCreator * CzXoml::findClass | ( | const char * | name | ) |
Searches the XOML system for the named class.
| name_hash | The class name. |
| void CzXoml::Init | ( | ) |
Initialises the XOML system.
Initialises the XOML system, this includes:
| bool CzXoml::Process | ( | IzXomlResource * | parent, |
| const char * | filename, | ||
| bool | reset_xml_pools = true |
||
| ) |
Loads and processes the supplied XOML file.
| [in,out] | parent | If non-null, the parent. |
| filename | Filename of the file. | |
| reset_xml_pools | true to reset XML pools (unused). |
| bool CzXoml::Process | ( | IzXomlResource * | parent, |
| CzXmlNode * | node | ||
| ) |
Processes the supplied XOML node tree.
Walks the supplied XOML tree defined by node (the trees root node) instantiating all valid XOML tags that are found.
| [in,out] | parent | If non-null, the parent. |
| [in,out] | node | If non-null, the root node. |
| IzXomlResource * CzXoml::ProcessNode | ( | IzXomlResource * | parent, |
| CzXmlNode * | node | ||
| ) |
Processes the supplied XOML node tree.
Walks the supplied XOML tree defined by node (the trees root node) instantiating all valid XOML tags that are found.
| [in,out] | parent | If non-null, the parent. |
| [in,out] | node | If non-null, the root node. |
| void CzXoml::Release | ( | ) |
Releases the XOML system.
Releases teh XOML system but does not delete it.
CzList<IzXomlAction*> CzXoml::Actions [protected] |
const char * CzXoml::AlignHNames [static] |
{
"left",
"centre",
"right",
}
const char * CzXoml::AlignVNames [static] |
{
"top",
"middle",
"bottom",
}
const char * CzXoml::AlphaModeNames [static] |
{
"none",
"half",
"add",
"sub",
"blend",
}
const char * CzXoml::AspectLockNames [static] |
{
"none",
"x",
"y",
}
const char * CzXoml::AxisNames [static] |
{
"none",
"x",
"y",
"xy",
}
CzList<IzXomlClassCreator*> CzXoml::ClassCreators [protected] |
const char * CzXoml::DockingNames [static] |
{
"none",
"top",
"bottom",
"left",
"right",
"topleft",
"topright",
"bottomleft",
"bottomright",
}
const char * CzXoml::InputTypeHintNames [static] |
{
"text",
"number",
"password",
"email",
"url",
}
const char * CzXoml::OrientationNames [static] |
{
"horizontal",
"vertical",
}
const char * CzXoml::SelectTypeNames [static] |
{
"normal",
"toggle",
"sticky",
}