Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
listbox.qc
Go to the documentation of this file.
1#include "listbox.qh"
2
4{
5 entity me;
7 me.configureXonoticListBox(me);
8 return me;
9}
11{
12 me.configureListBox(me, me.scrollbarWidth, 1); // item height gets set up later
13}
14void 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}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117
#define SUPER(cname)
Definition oo.qh:231
vector
Definition self.qh:92
void XonoticListBox_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
Definition listbox.qc:14
void XonoticListBox_configureXonoticListBox(entity me)
Definition listbox.qc:10
entity makeXonoticListBox()
Definition listbox.qc:3