Xonotic
scrollpanel.qc File Reference
#include "scrollpanel.qh"
+ Include dependency graph for scrollpanel.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define X(mouseFunc)
 
#define X(keyFunc)
 

Macro Definition Documentation

◆ X [1/2]

#define X (   mouseFunc)
Value:
METHOD(XonoticScrollPanel, mouseFunc, bool(XonoticScrollPanel this, vector pos)) \
{ \
SUPER(XonoticScrollPanel).mouseFunc(this, pos); \
XonoticTab p = this.currentPanel; \
this.setFocus(this, p); \
\
vector o = -eY * this.scrollPos; \
vector s = eX * (1 - this.controlWidth) + eY * this.itemHeight; \
return p.mouseFunc(p, globalToBox(pos, o, s)); \
}
const vector eY
Definition: vector.qh:45
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const vector eX
Definition: vector.qh:44

Definition at line 21 of file scrollpanel.qc.

◆ X [2/2]

#define X (   keyFunc)
Value:
METHOD(XonoticScrollPanel, keyFunc, bool(XonoticScrollPanel this, int key, int ascii, bool shift)) \
{ \
XonoticTab p = this.currentPanel; \
return p.keyFunc(p, key, ascii, shift) || SUPER(XonoticScrollPanel).keyFunc(this, key, ascii, shift); \
}
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define SUPER(cname)
Definition: oo.qh:219

Definition at line 21 of file scrollpanel.qc.