Updated XML elements (markdown)

De-Backer
2020-07-29 16:46:31 +02:00
parent ca808329b0
commit d5a19526c5

@@ -11,14 +11,14 @@ Example:
Attribute:
* type : "element" (See "const QDomDocument ElementScene::toXml(bool all_parts)" file "sources/editor/elementscene.cpp")
## Element dimensions
* width : integer (multiple of 10)
* height : integer (multiple of 10)
## Element dimensions
* See "const QDomDocument ElementScene::toXml(bool all_parts)" file "sources/editor/elementscene.cpp"
One of the first things to specify when defining an element is its size: width (width) and height (height), in pixels. These two dimensions must be integers multiples of 10. If this is not the case, QET will round them to the next ten (example: 42 to 50 pixels). They determine the size and the bounding rectangle of the element.
## Element hotspot
* hotspot_x
* hotspot_y
## Element hotspot
* The element hooking point designates the point hooked to the mouse cursor during a drag'n drop of the element. They must be full coordinates. “Hotspot_x” is the abscissa, “hotspot_y” is the ordinate. The upper left corner of the rectangle delimiting the element is considered to be the origin. If the values provided exceed the bounding rectangle, they will be limited to the size of the element. The hotspot is also the center of rotation used when changing the orientation of the element.
## orientation
* Element orientation **!!!(we keep the orientation for compatibility with previous version of qet (fixt on "dyyy"))**
@@ -34,7 +34,9 @@ Attribute:
+ y for “yes”: the user can orient the element in this direction.
+ n for “no”: the user cannot orient the element in this direction.
Example: orientation = “ydny” means that the element is drawn facing south and can be turned north and west but not east.
### version
* version : QET::version (See "const QDomDocument ElementScene::toXml(bool all_parts)" file "sources/editor/elementscene.cpp")
### link type
* link_type (See "const QDomDocument ElementScene::toXml(bool all_parts)" file "sources/editor/elementscene.cpp")
* master / slave
* kindInformations