Xonotic
inputbox.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "label.qh"
5  METHOD(InputBox, configureInputBox, void(entity, string, float, float, string));
6  METHOD(InputBox, draw, void(entity));
7  METHOD(InputBox, setText, void(entity, string));
8  METHOD(InputBox, enterText, void(entity, string));
9  METHOD(InputBox, keyDown, float(entity, float, float, float));
10  METHOD(InputBox, mouseMove, float(entity, vector));
11  METHOD(InputBox, mouseRelease, float(entity, vector));
12  METHOD(InputBox, mousePress, bool(InputBox this, vector pos));
13  METHOD(InputBox, mouseDrag, float(entity, vector));
14  METHOD(InputBox, showNotify, void(entity));
15  METHOD(InputBox, resizeNotify, void(entity, vector, vector, vector, vector));
16 
17  ATTRIB(InputBox, src, string);
18 
19  ATTRIB(InputBox, cursorPos, float, 0); // characters
20  ATTRIB(InputBox, scrollPos, float, 0); // widths
21 
22  ATTRIB(InputBox, focusable, float, 1);
23  ATTRIB(InputBox, allowFocusSound, float, 1);
24  ATTRIB(InputBox, disabled, float, 0);
25  ATTRIB(InputBox, lastChangeTime, float, 0);
26  ATTRIB(InputBox, dragScrollTimer, float, 0);
27  ATTRIB(InputBox, dragScrollPos, vector, '0 0 0');
28  ATTRIB(InputBox, pressed, float, 0);
29  ATTRIB(InputBox, editColorCodes, float, 1);
30  ATTRIB(InputBox, forbiddenCharacters, string, "");
31  ATTRIB(InputBox, color, vector, '1 1 1');
33  ATTRIB(InputBox, maxLength, float, 255); // if negative, it counts bytes, not chars
35 
36  ATTRIB(InputBox, enableClearButton, float, 1);
37  ATTRIB(InputBox, clearButton, entity);
38  ATTRIB(InputBox, cb_width, float, 0);
39  ATTRIB(InputBox, cb_pressed, float, 0);
40  ATTRIB(InputBox, cb_focused, float, 0);
41  ATTRIB(InputBox, cb_color, vector, '1 1 1');
42  ATTRIB(InputBox, cb_colorF, vector, '1 1 1');
43  ATTRIB(InputBox, cb_colorC, vector, '1 1 1');
vector color
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
entity applyButton
Definition: slider.qc:6
Definition: label.qh:4
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define ENDCLASS(cname)
Definition: oo.qh:269
bool pressed
Definition: picker.qc:3
vector colorF
Definition: borderimage.qh:25