|  | SANDAL2
    A SDL2 Wrapper in C | 
All the informations of an element. More...
#include <Element.h>

| Public Attributes | |
| double | x | 
| double | y | 
| double | width | 
| double | height | 
| double | prX | 
| double | prY | 
| double | rotation | 
| SANDAL2_FLIP | flip | 
| int | coulBlock [4] | 
| double | textSize | 
| ListDisplayCode * | codes | 
| EventElement | events | 
| SDL_Texture * | image | 
| ListAnimation * | animation | 
| Font * | font | 
| Entry * | entry | 
| struct ListPtrElement * | interactions | 
| ListClickable * | hitboxes | 
| void * | data | 
| void(* | freeData )(void *) | 
| int | deleted | 
| int | deleteCode | 
| int | selected | 
| Window * | parent | 
| ListAction * | actions | 
| struct Element * | elementParent | 
| struct ListPtrElement | elementChildren | 
All the informations of an element.
| ListAction* Element::actions | 
list of actions to be done on this element
| ListAnimation* Element::animation | 
animation of the image
| ListDisplayCode* Element::codes | 
list of display code of the element
| int Element::coulBlock[4] | 
color of the block of the element (if first value -1, there is no block)
| void* Element::data | 
data available for the user
| int Element::deleteCode | 
plan or display code to be removed from
| int Element::deleted | 
tells whether or not the element should be deleted (1 for completely deleted, 2 for display remove, 3 for plan change)
| struct ListPtrElement Element::elementChildren | 
children elements in the scenary graph
| struct Element* Element::elementParent | 
parent element in the scenary graph
| Entry* Element::entry | 
informations about the entry (NULL if no entry)
| EventElement Element::events | 
behavior of the element to events
| SANDAL2_FLIP Element::flip | 
tells whether or not the element should be flipped, can be SANDAL2_FLIP_VER, SANDAL2_FLIP_HOR, SANDAL2_FLIP_NONE or a combinaison of those
| Font* Element::font | 
informations about the text (NULL if no text)
| void(* Element::freeData) (void *) | 
function to be called to free the data
| double Element::height | 
height of the element
| ListClickable* Element::hitboxes | 
list of clickable zones
| SDL_Texture* Element::image | 
texture of the image (NULL if no image)
| struct ListPtrElement* Element::interactions | 
list of elements that this element can modifie
| Window* Element::parent | 
parent window of the element
| double Element::prX | 
abscissa coordinate of the rotation point (if from 0 to 1, in the element)
| double Element::prY | 
ordinate coordinate of the rotation point (if from 0 to 1, in the element)
| double Element::rotation | 
rotation angle of the element
| int Element::selected | 
tells whether or not the element is selected
| double Element::textSize | 
text proportion in the block
| double Element::width | 
width of the element
| double Element::x | 
abscissa coordinate of the top left of the element
| double Element::y | 
ordinate coordinate of the top left of the element
 1.8.13
 1.8.13