Xonotic
scrollpanel.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "listbox.qh"
4 #include "tab.qh"
8  ATTRIB(XonoticScrollPanel, nItems, int, 1);
9  ATTRIB(XonoticScrollPanel, selectionDoesntMatter, bool, true);
10  ATTRIB(XonoticScrollPanel, itemHeight, float, 1);
12  ATTRIB(XonoticScrollPanel, viewportHeight, float, 12);
13  ATTRIB(XonoticScrollPanel, alphaBG, float, 0);
14 
15  METHOD(XonoticScrollPanel, getItemAtPos, float(XonoticScrollPanel this, float pos)) { return 0; }
16  METHOD(XonoticScrollPanel, getItemHeight, float(XonoticScrollPanel this, int i)) { return this.itemHeight; }
17  METHOD(XonoticScrollPanel, getItemStart, float(XonoticScrollPanel this, int i)) { return 0; }
18  METHOD(XonoticScrollPanel, getTotalHeight, float(XonoticScrollPanel this)) { return this.itemHeight; }
19  METHOD(XonoticScrollPanel, setFocus, void(XonoticScrollPanel this, entity other)) { Container_setFocus(this, other); }
20  METHOD(XonoticScrollPanel, setSelected, void(XonoticScrollPanel this, int i)) { }
21 
22  METHOD(XonoticScrollPanel, drawListBoxItem, void(XonoticScrollPanel this, int i, vector absSize, bool isSelected, bool isFocused));
23  METHOD(XonoticScrollPanel, resizeNotify, void(XonoticScrollPanel this, vector relOrigin, vector relSize, vector absOrigin, vector absSize));
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
Definition: tab.qh:4
entity() spawn
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
entity other
Definition: csprogsdefs.qc:14
#define ATTRIB(...)
Definition: oo.qh:136
void Container_setFocus(entity me, entity other)
Definition: container.qc:289
entity this
Definition: self.qh:83
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define ENDCLASS(cname)
Definition: oo.qh:269
#define true
Definition: csprogsdefs.qh:5