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

Method GuiButton

source/gui/gui_button.cpp:16–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 */
15
16GuiButton::GuiButton(int w, int h)
17{
18 width = w;
19 height = h;
20 image = NULL;
21 imageOver = NULL;
22 imageHold = NULL;
23 imageClick = NULL;
24 icon = NULL;
25 iconOver = NULL;
26 iconHold = NULL;
27 iconClick = NULL;
28
29 for(int i=0; i < 3; i++)
30 {
31 label[i] = NULL;
32 labelOver[i] = NULL;
33 labelHold[i] = NULL;
34 labelClick[i] = NULL;
35 }
36
37 soundOver = NULL;
38 soundHold = NULL;
39 soundClick = NULL;
40 tooltip = NULL;
41 selectable = true;
42 holdable = false;
43 clickable = true;
44}
45
46/**
47 * Destructor for the GuiButton class.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected