18 p.
resizeNotify(p, relOrigin, relSize, absOrigin, absSize);
22METHOD(XonoticScrollPanel, mouseFunc, bool(XonoticScrollPanel this, vector pos)) \
24 SUPER(XonoticScrollPanel).mouseFunc(this, pos); \
25 XonoticTab p = this.currentPanel; \
26 this.setFocus(this, p); \
28 vector o = -eY * this.scrollPos; \
29 vector s = eX * (1 - this.controlWidth) + eY * this.itemHeight; \
30 return p.mouseFunc(p, globalToBox(pos, o, s)); \
39METHOD(XonoticScrollPanel, keyFunc, bool(XonoticScrollPanel this, int key, int ascii, bool shift)) \
41 XonoticTab p = this.currentPanel; \
42 return p.keyFunc(p, key, ascii, shift) || SUPER(XonoticScrollPanel).keyFunc(this, key, ascii, shift); \
virtual void scrollToItem()
#define METHOD(cname, name, prototype)