Xonotic
label.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../item.qh"
5  METHOD(Label, configureLabel, void(entity, string, float, float));
6  METHOD(Label, draw, void(entity));
7  METHOD(Label, resizeNotify, void(entity, vector, vector, vector, vector));
8  METHOD(Label, setText, void(entity, string));
9  METHOD(Label, toString, string(entity));
10  METHOD(Label, recalcPositionWithText, void(entity, string));
11  ATTRIB(Label, isBold, float, 0);
12  ATTRIB(Label, text, string);
13  ATTRIB(Label, currentText, string);
14  ATTRIB(Label, fontSize, float, 8);
15  ATTRIB(Label, align, float, 0.5);
16  ATTRIB(Label, allowCut, float, 0);
17  ATTRIB(Label, allowColors, float, 0);
18  ATTRIB(Label, keepspaceLeft, float, 0); // for use by subclasses (radiobuttons for example);
19  ATTRIB(Label, keepspaceRight, float, 0);
20  ATTRIB(Label, marginLeft, float, 0); // alternate way to specify keepspace* (in characters from the font);
21  ATTRIB(Label, marginRight, float, 0);
22  ATTRIB(Label, realFontSize, vector, '0 0 0');
23  ATTRIB(Label, realOrigin, vector, '0 0 0');
24  ATTRIB(Label, alpha, float, 0.7);
25  ATTRIB(Label, colorL, vector, SKINCOLOR_TEXT);
26  ATTRIB(Label, disabled, float, 0);
27  ATTRIB(Label, disabledAlpha, float, 0.3);
28  ATTRIB(Label, textEntity, entity);
29  ATTRIB(Label, allowWrap, float, 0);
30  ATTRIB(Label, recalcPos, float, 0);
31  ATTRIB(Label, condenseFactor, float, 1);
32  ATTRIB(Label, overrideRealOrigin, vector, '0 0 0');
33  ATTRIB(Label, overrideCondenseFactor, float, 0);
float alpha
Definition: items.qc:14
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
bool disabled
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
Definition: item.qh:8
Definition: label.qh:4
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define ENDCLASS(cname)
Definition: oo.qh:269