|
static std::vector< CMSP > | GetRootInstances (const KigsID &cid, bool exactTypeOnly=false) |
| static method : return the set of all root instances of the given type
|
|
static void | Append (std::string &XMLString, const std::list< CoreModifiable * > &toexport, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the several CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static void | Export (const std::string &filename, CoreModifiable *toexport, bool recursive=false, ExportSettings *settings=nullptr) |
| static method to export the given CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static XMLNode * | ExportToXMLNode (CoreModifiable *toexport, XML *owner_xml_file, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the given CoreModifiable to an XML Node. if recursive flag is set to true, export also all sons tree More...
|
|
static std::string | ExportToXMLString (CoreModifiable *toexport, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the given CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static void | Export (std::string &XMLString, const std::list< CoreModifiable * > &toexport, bool recursive, ExportSettings *settings=nullptr) |
| static method to export the several CoreModifiable to an XML file. if recursive flag is set to true, export also all sons tree More...
|
|
static CMSP | Import (const std::string &filename, bool noInit=false, bool keepImportFileName=false, ImportState *state=nullptr, const std::string &override_name="") |
| return an new CoreModifiable instance using the description found in XML file given by name
|
|
static CMSP | GetInstanceByGlobalPath (const std::string &path) |
| static method : return the instance corresponding to the given path, and given search start
|
|
static void | debugPrintfFullTree (int maxindent=3) |
| Editor. More...
|
|
template<typename StringType > |
static CMSP | Import (XMLNodeTemplate< StringType > *currentNode, CoreModifiable *currentModifiable, ImportState &importState) |
| recusrive method to add sons and attributes found in the XML file
|
|
A Node2D is the base class for all objects to be added to a 2DLayer.
2 A matrix is associated with each node to give the transformation applied to the node when drawing.
Attributes
Key : Anchor
- Type : array [ 2 ]
- Default Value : {0.000000,0.000000}
Key : ClipSons
- Type : bool
- Default Value : false
Key : CustomShader
Key : Dock
- Type : array [ 2 ]
- Default Value : {0.000000,0.000000}
Key : Position
- Type : array [ 2 ]
- Default Value : {0.000000,0.000000}
Key : PostScaleX
- Type : float
- Default Value : 1.000000
Key : PostScaleY
- Type : float
- Default Value : 1.000000
Key : PreScaleX
- Type : float
- Default Value : 1.000000
Key : PreScaleY
- Type : float
- Default Value : 1.000000
Key : Priority
- Type : int
- Default Value : 0
Key : RotationAngle
- Type : float
- Default Value : 0.000000
Key : SizeModeX
- Type : enum { "Default" , "Multiply" , "Add" , "Content" , "ContentMult" , "ContentAdd" , "KeepRatio" }
- Default Value : Default
Key : SizeModeY
- Type : enum { "Default" , "Multiply" , "Add" , "Content" , "ContentMult" , "ContentAdd" , "KeepRatio" }
- Default Value : Default
Key : SizeX
- Type : float
- Default Value : 0.000000
Key : SizeY
- Type : float
- Default Value : 0.000000
Methods
Key : GetSize