Lines Matching defs:gui

47 struct gui : g3d_gui  struct
49 struct list
54 int firstlist, nextlist;
55 int columns[MAXCOLUMNS];
57 static vector<list> lists;
81 …if(shouldautotab && !curdepth && (layoutpass ? 0 : cury) + ysize > guiautotab*FONTH) tab(NULL, tco… in autotab() argument
91 int space = guiautotab*FONTH - ysize; in shouldtab() argument
116 bool visible() { return (!tcurrent || tpos==*tcurrent) && !layoutpass; } in visible()
140 if(hit && (!guiclicktab || mousebuttons&G3D_DOWN)) in tab() argument
149 bool ishorizontal() const { return curdepth&1; } in ishorizontal()
150 bool isvertical() const { return !ishorizontal(); } in isvertical()
152 void pushlist() in pushlist()
194 void poplist() in poplist()
222 …*text, int color, const char *icon) { autotab(); return button_(text, color, icon, false, false); } in text()
223 … *text, int color, const char *icon) { autotab(); return button_(text, color, icon, true, false); } in button()
224 … *text, int color, const char *icon) { autotab(); return button_(text, color, icon, false, true); } in title()
226 void separator() { autotab(); line_(FONTH/3); } in separator()
227 void progress(float percent) { autotab(); line_((FONTH*4)/5, percent); } in progress()
230 …rut(float size) { layout(isvertical() ? int(size*FONTW) : 0, isvertical() ? 0 : int(size*FONTH)); } in strut()
232 …ace(float size) { layout(isvertical() ? 0 : int(size*FONTW), isvertical() ? int(size*FONTH) : 0); } in space()
234 void spring(int weight) in spring()
254 void column(int col) in column()
261 int layout(int w, int h) in layout()
286 bool mergehits(bool on) in mergehits()
293 bool ishit(int w, int h, int x = curx, int y = cury) in ishit()
301 int image(Texture *t, float scale, const char *overlaid) in image()
310 int texture(VSlot &vslot, float scale, bool overlaid) in texture()
319 int playerpreview(int model, int team, int weap, float sizescale, const char *overlaid) in playerpreview()
365 … int modelpreview(const char *name, int anim, float sizescale, const char *overlaid, bool throttle) in modelpreview()
422 …preview(const char *prefab, const vec &color, float sizescale, const char *overlaid, bool throttle) in prefabpreview()
468 void slider(int &val, int vmin, int vmax, int color, const char *label) in slider()
508 …char *field(const char *name, int color, int length, int height, const char *initval, int initmode) in field()
513 …r *keyfield(const char *name, int color, int length, int height, const char *initval, int initmode) in keyfield()
518 …e, int color, int length, int height, const char *initval, int initmode, int fieldtype = FIELDEDIT) in field_()
598 void rect_(float x, float y, float w, float h, bool lines = false) in rect_()
610 void rect_(float x, float y, float w, float h, int usetc) in rect_()
623 void text_(const char *text, int x, int y, int color, bool shadow, bool force = false) in text_()
629 void background(int color, int inheritw, int inherith) in background()
673 if(!overlaytex) overlaytex = textureload("data/guioverlay.png", 3); in icon_() argument
681 void previewslot(VSlot &vslot, bool overlaid, int x, int y, int size, bool hit) in previewslot()
772 if(!slidertex) slidertex = textureload("data/guislider.png", 3); in line_() argument
791 void textbox(const char *text, int width, int height, int color) in textbox()
802 int button_(const char *text, int color, const char *icon, bool clickable, bool center) in button_()
839 if(!skintex) skintex = textureload("data/guiskin.png", 3); in drawskin() argument
925 bool gui2d; argument
947 if(gui2d) in start() argument
1006 void adjusthorizontalcolumn(int col, int i) in adjusthorizontalcolumn()
1019 void adjustverticalcolumn(int col, int i) in adjustverticalcolumn()
1032 void adjustcolumns() in adjustcolumns()
1069 if(gui2d) adjustscale(); in end() argument
1107 cb->gui(*this, layoutpass); in draw() argument