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{
6 me.configureXonoticListBox(me);
7 return me;
8}
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 9 of file listbox.qc.

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

References entity().

◆ XonoticListBox_resizeNotify()

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

Definition at line 13 of file listbox.qc.

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

References entity(), SUPER, and vector.