Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
listbox.qc File Reference
#include "listbox.qh"
Include dependency graph for listbox.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity makeXonoticListBox ()
void XonoticListBox_configureXonoticListBox (entity me)
void XonoticListBox_resizeNotify (entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)

Function Documentation

◆ makeXonoticListBox()

entity makeXonoticListBox ( )

Definition at line 3 of file listbox.qc.

4{
5 entity me;
7 me.configureXonoticListBox(me);
8 return me;
9}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

◆ XonoticListBox_configureXonoticListBox()

void XonoticListBox_configureXonoticListBox ( entity me)

Definition at line 10 of file listbox.qc.

11{
12 me.configureListBox(me, me.scrollbarWidth, 1); // item height gets set up later
13}

References entity().

◆ XonoticListBox_resizeNotify()

void XonoticListBox_resizeNotify ( entity me,
vector relOrigin,
vector relSize,
vector absOrigin,
vector absSize )

Definition at line 14 of file listbox.qc.

15{
16 me.itemHeight = me.rowsPerItem * me.fontSize / absSize.y;
17 SUPER(XonoticListBox).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
18}
#define SUPER(cname)
Definition oo.qh:231

References entity(), SUPER, and vector.