Xonotic
listbox.qc
Go to the documentation of this file.
1 #include "listbox.qh"
2 
4 {
5  entity me;
6  me = NEW(XonoticListBox);
7  me.configureXonoticListBox(me);
8  return me;
9 }
11 {
12  me.configureListBox(me, me.scrollbarWidth, 1); // item height gets set up later
13 }
14 void XonoticListBox_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
15 {
16  me.itemHeight = me.rowsPerItem * me.fontSize / absSize.y;
17  SUPER(XonoticListBox).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
18 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
entity makeXonoticListBox()
Definition: listbox.qc:3
void XonoticListBox_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
Definition: listbox.qc:14
#define SUPER(cname)
Definition: oo.qh:219
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void XonoticListBox_configureXonoticListBox(entity me)
Definition: listbox.qc:10