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{
6 me.configureXonoticListBox(me);
7 return me;
8}
10{
11 me.configureListBox(me, me.scrollbarWidth, 1); // item height gets set up later
12}
13void XonoticListBox_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
14{
15 me.itemHeight = me.rowsPerItem * me.fontSize / absSize.y;
16 SUPER(XonoticListBox).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
17}
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:13
void XonoticListBox_configureXonoticListBox(entity me)
Definition listbox.qc:9
entity makeXonoticListBox()
Definition listbox.qc:3