Xonotic
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.

References entity(), and NEW.

4 {
5  entity me;
6  me = NEW(XonoticListBox);
7  me.configureXonoticListBox(me);
8  return me;
9 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:

◆ 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 }

◆ XonoticListBox_resizeNotify()

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

Definition at line 14 of file listbox.qc.

References SUPER.

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:219