* Constructor for the Object class. */
| 14 | * Constructor for the Object class. |
| 15 | */ |
| 16 | GuiElement::GuiElement() |
| 17 | { |
| 18 | xoffset = 0; |
| 19 | yoffset = 0; |
| 20 | xmin = 0; |
| 21 | xmax = 0; |
| 22 | ymin = 0; |
| 23 | ymax = 0; |
| 24 | width = 0; |
| 25 | height = 0; |
| 26 | alpha = 255; |
| 27 | xscale = 1; |
| 28 | yscale = 1; |
| 29 | state = STATE_DEFAULT; |
| 30 | stateChan = -1; |
| 31 | trigger[0] = NULL; |
| 32 | trigger[1] = NULL; |
| 33 | trigger[2] = NULL; |
| 34 | trigger[3] = NULL; |
| 35 | trigger[4] = NULL; |
| 36 | parentElement = NULL; |
| 37 | rumble = true; |
| 38 | selectable = false; |
| 39 | clickable = false; |
| 40 | holdable = false; |
| 41 | visible = true; |
| 42 | focus = -1; // cannot be focused |
| 43 | updateCB = NULL; |
| 44 | yoffsetDyn = 0; |
| 45 | xoffsetDyn = 0; |
| 46 | alphaDyn = -1; |
| 47 | scaleDyn = 1; |
| 48 | effects = 0; |
| 49 | effectAmount = 0; |
| 50 | effectTarget = 0; |
| 51 | effectsOver = 0; |
| 52 | effectAmountOver = 0; |
| 53 | effectTargetOver = 0; |
| 54 | |
| 55 | // default alignment - align to top left |
| 56 | alignmentVert = ALIGN_TOP; |
| 57 | alignmentHor = ALIGN_LEFT; |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Destructor for the GuiElement class. |
nothing calls this directly
no outgoing calls
no test coverage detected