MCPcopy Create free account
hub / github.com/dborth/fceugx / GuiElement

Method GuiElement

source/gui/gui_element.cpp:16–58  ·  view source on GitHub ↗

* Constructor for the Object class. */

Source from the content-addressed store, hash-verified

14 * Constructor for the Object class.
15 */
16GuiElement::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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected