MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Create

Method Create

ui/UIGroup.cpp:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62UIGroup::~UIGroup() {}
63
64void UIGroup::Create(UIWindow *parent, char *label, int x, int y, int w, int h, ddgr_color label_color,
65 ddgr_color box_color, int flags) {
66 ASSERT(parent);
67 ASSERT(label);
68
69 m_LabelColor = label_color;
70 m_BoxColor = box_color;
71
72 UIStatic::Create(parent, NULL, x, y, w, h, flags);
73
74 int length = strlen(label);
75 if (length) {
76 m_Label = (char *)mem_malloc(length + 1);
77 strcpy(m_Label, label);
78 }
79}
80
81void UIGroup::OnDraw() {
82 ui_DrawSetAlpha(255);

Callers 1

OnDrawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected