#include "core/bitmath_func.hpp"
#include "strings_type.h"
#include "gfx_type.h"
Go to the source code of this file.
Data Structures | |
struct | Widget |
Window widget data structure. More... | |
Defines | |
#define | WIDGETS_END WWT_LAST, RESIZE_NONE, INVALID_COLOUR, 0, 0, 0, 0, 0, STR_NULL |
Marker for the "end of widgets" in a Window(Desc) widget table. | |
Enumerations | |
enum | DisplayFlags { RESIZE_NONE = 0, RESIZE_LEFT = 1, RESIZE_RIGHT = 2, RESIZE_TOP = 4, RESIZE_BOTTOM = 8, RESIZE_LR = RESIZE_LEFT | RESIZE_RIGHT, RESIZE_RB = RESIZE_RIGHT | RESIZE_BOTTOM, RESIZE_TB = RESIZE_TOP | RESIZE_BOTTOM, RESIZE_LRB = RESIZE_LEFT | RESIZE_RIGHT | RESIZE_BOTTOM, RESIZE_LRTB = RESIZE_LEFT | RESIZE_RIGHT | RESIZE_TOP | RESIZE_BOTTOM, RESIZE_RTB = RESIZE_RIGHT | RESIZE_TOP | RESIZE_BOTTOM, WIDG_DISABLED = 4, WIDG_HIDDEN = 5, WIDG_LOWERED = 6 } |
enum | { WIDGET_LIST_END = -1 } |
enum | WidgetType { WWT_EMPTY, WWT_PANEL, WWT_INSET, WWT_IMGBTN, WWT_IMGBTN_2, WWT_TEXTBTN, WWT_TEXTBTN_2, WWT_LABEL, WWT_TEXT, WWT_MATRIX, WWT_SCROLLBAR, WWT_FRAME, WWT_CAPTION, WWT_HSCROLLBAR, WWT_STICKYBOX, WWT_SCROLL2BAR, WWT_RESIZEBOX, WWT_CLOSEBOX, WWT_DROPDOWN, WWT_DROPDOWNIN, WWT_EDITBOX, WWT_LAST, WWT_MASK = 0x1F, WWB_PUSHBUTTON = 1 << 5, WWB_MASK = 0xE0, WWT_PUSHBTN = WWT_PANEL | WWB_PUSHBUTTON, WWT_PUSHTXTBTN = WWT_TEXTBTN | WWB_PUSHBUTTON, WWT_PUSHIMGBTN = WWT_IMGBTN | WWB_PUSHBUTTON } |
Window widget types. More... | |
Functions | |
DECLARE_ENUM_AS_BIT_SET (DisplayFlags) |
Definition in file widget_type.h.
#define WIDGETS_END WWT_LAST, RESIZE_NONE, INVALID_COLOUR, 0, 0, 0, 0, 0, STR_NULL |
Marker for the "end of widgets" in a Window(Desc) widget table.
Definition at line 109 of file widget_type.h.
anonymous enum |
Definition at line 64 of file widget_type.h.
enum DisplayFlags |
Definition at line 39 of file widget_type.h.
enum WidgetType |
Window widget types.
WWT_EMPTY | Empty widget, place holder to reserve space in widget array. |
WWT_PANEL | Simple depressed panel. |
WWT_INSET | Pressed (inset) panel, most commonly used as combo box _text_ area. |
WWT_IMGBTN | Button with image. |
WWT_IMGBTN_2 | Button with diff image when clicked. |
WWT_TEXTBTN | Button with text. |
WWT_TEXTBTN_2 | Button with diff text when clicked. |
WWT_LABEL | Centered label. |
WWT_TEXT | Pure simple text. |
WWT_MATRIX | List of items underneath each other. |
WWT_SCROLLBAR | Vertical scrollbar. |
WWT_FRAME | Frame. |
WWT_CAPTION | Window caption (window title between closebox and stickybox). |
WWT_HSCROLLBAR | Horizontal scrollbar. |
WWT_STICKYBOX | Sticky box (normally at top-right of a window). |
WWT_SCROLL2BAR | 2nd vertical scrollbar |
WWT_RESIZEBOX | Resize box (normally at bottom-right of a window). |
WWT_CLOSEBOX | Close box (at top-left of a window). |
WWT_DROPDOWN | Raised drop down list (regular). |
WWT_DROPDOWNIN | Inset drop down list (used on game options only). |
WWT_EDITBOX | a textbox for typing |
WWT_LAST | Last Item. use WIDGETS_END to fill up padding!! |
Definition at line 71 of file widget_type.h.