voxelman.gui.widgets

Members

Aliases

CheckHandler
alias CheckHandler = bool delegate()
Undocumented in source.
ClickHandler
alias ClickHandler = void delegate()
Undocumented in source.
Formatter
alias Formatter(Row) = void function(Row row, scope SinkT sink)
Undocumented in source.
HFill
alias HFill = Fill!true
Undocumented in source.
HLayout
alias HLayout = LinearLayout!true
Undocumented in source.
HLine
alias HLine = Line!true
Undocumented in source.
OptionSelectHandler
alias OptionSelectHandler = void delegate(size_t)
Undocumented in source.
SinkT
alias SinkT = void delegate(const(char)[])
Undocumented in source.
VFill
alias VFill = Fill!false
Undocumented in source.
VLayout
alias VLayout = LinearLayout!false
Undocumented in source.
VLine
alias VLine = Line!false
Undocumented in source.
setHLayout
alias setHLayout = setLinearLayout!true
Undocumented in source.
setVLayout
alias setVLayout = setLinearLayout!false
Undocumented in source.

Classes

ArrayListModel
class ArrayListModel(Row)
Undocumented in source.
AutoListModel
class AutoListModel(Model)
Undocumented in source.
ListModel
class ListModel
Undocumented in source.

Enums

TreeLineType
enum TreeLineType
Undocumented in source.

Functions

addBackground
WidgetProxy addBackground(WidgetProxy widget, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
addBorder
WidgetProxy addBorder(WidgetProxy widget, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
bool_delegate
bool bool_delegate(bool* value)
Undocumented in source. Be warned that the author may not have intended to support it.
consumeMouse
WidgetProxy consumeMouse(WidgetProxy widget)

Widget will catch mouse events from bubbling

createCheckButton
WidgetProxy createCheckButton(WidgetProxy parent, string text, CheckHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
createCheckButton
WidgetProxy createCheckButton(WidgetProxy parent, string text, bool* flag)
Undocumented in source. Be warned that the author may not have intended to support it.
createGuiDebugger
WidgetProxy createGuiDebugger(WidgetProxy root)

Creates a frame that shows a tree of all widgets. Highlights clicked widgets

createIcon
WidgetProxy createIcon(WidgetProxy parent, string iconId, ivec2 size, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
createIcon
WidgetProxy createIcon(WidgetProxy parent, SpriteRef sprite, ivec2 size, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
createIcon
WidgetProxy createIcon(WidgetProxy parent, SpriteRef sprite, Color4ub color, Alignment halign, Alignment valign)
Undocumented in source. Be warned that the author may not have intended to support it.
createIconTextButton
WidgetProxy createIconTextButton(WidgetProxy parent, SpriteRef icon, string text, ClickHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
createIconTextButton
WidgetProxy createIconTextButton(WidgetProxy parent, string iconId, string text, ClickHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
createImage
WidgetProxy createImage(WidgetProxy parent, ImageData data)
Undocumented in source. Be warned that the author may not have intended to support it.
createText
WidgetProxy createText(WidgetProxy parent, string text, Alignment halign, Alignment valign)
Undocumented in source. Be warned that the author may not have intended to support it.
createTextButton
WidgetProxy createTextButton(WidgetProxy parent, string text, ClickHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
drawButtonStateBack
void drawButtonStateBack(WidgetProxy widget, DrawEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePointerMoved
void handlePointerMoved(WidgetProxy widget, PointerMoveEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
hfill
WidgetProxy hfill(WidgetProxy parent)
Undocumented in source. Be warned that the author may not have intended to support it.
hline
WidgetProxy hline(WidgetProxy parent)
Undocumented in source. Be warned that the author may not have intended to support it.
makeDraggable
WidgetProxy makeDraggable(WidgetProxy widget, PointerButton onButton)
Undocumented in source. Be warned that the author may not have intended to support it.
moveToTop
WidgetProxy moveToTop(WidgetProxy widget)
Undocumented in source. Be warned that the author may not have intended to support it.
parseListInfo
ListInfo!Row parseListInfo()
Undocumented in source. Be warned that the author may not have intended to support it.
registerComponents
void registerComponents(EntityManager widgets)
Undocumented in source. Be warned that the author may not have intended to support it.
setLinearLayout
WidgetProxy setLinearLayout(WidgetProxy widget, int spacing, padding4 padding, Alignment alignTo)
Undocumented in source. Be warned that the author may not have intended to support it.
setSingleLayout
WidgetProxy setSingleLayout(WidgetProxy widget, int padding, Alignment halign, Alignment valign)
Undocumented in source. Be warned that the author may not have intended to support it.
updateVisibility
void updateVisibility(WidgetProxy widget, GuiUpdateEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
vfill
WidgetProxy vfill(WidgetProxy parent)
Undocumented in source. Be warned that the author may not have intended to support it.
visible_if
WidgetProxy visible_if(WidgetProxy widget, bool delegate() condition)
Undocumented in source. Be warned that the author may not have intended to support it.
visible_if_not
WidgetProxy visible_if_not(WidgetProxy widget, bool delegate() condition)
Undocumented in source. Be warned that the author may not have intended to support it.
vline
WidgetProxy vline(WidgetProxy parent)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BUTTON_HOVERED
enum BUTTON_HOVERED;
Undocumented in source.
BUTTON_PRESSED
enum BUTTON_PRESSED;
Undocumented in source.
BUTTON_SELECTED
enum BUTTON_SELECTED;
Undocumented in source.
baseColor
enum baseColor;
Undocumented in source.
buttonHoveredColor
enum buttonHoveredColor;
Undocumented in source.
buttonNormalColor
enum buttonNormalColor;
Undocumented in source.
buttonPressedColor
enum buttonPressedColor;
Undocumented in source.
buttonSelectedColor
enum buttonSelectedColor;
Undocumented in source.
color_asbestos
enum color_asbestos;
Undocumented in source.
color_clouds
enum color_clouds;
Undocumented in source.
color_concrete
enum color_concrete;
Undocumented in source.
color_gray
enum color_gray;
Undocumented in source.
color_silver
enum color_silver;
Undocumented in source.
color_wet_asphalt
enum color_wet_asphalt;
Undocumented in source.
color_white
enum color_white;
Undocumented in source.
hoverColor
enum hoverColor;
Undocumented in source.

Mixin templates

ButtonClickLogic
mixintemplate ButtonClickLogic(Data)
Undocumented in source.
ButtonPointerLogic
mixintemplate ButtonPointerLogic(State)
Undocumented in source.

Structs

AutoMoveToTop
struct AutoMoveToTop
Undocumented in source.
BaseButton
struct BaseButton
Undocumented in source.
BoolBinding
struct BoolBinding
Undocumented in source.
ButtonState
struct ButtonState
Undocumented in source.
CheckButtonLogic
struct CheckButtonLogic
Undocumented in source.
CheckIconLogic
struct CheckIconLogic

Assumes that parent has ToggleButtonData data and uses its data and isChecked fields

ChildrenRange
struct ChildrenRange
Undocumented in source.
ChildrenStash
struct ChildrenStash

Used for widgets that hide some of the children, to store original list of children

CollapsableParts
struct CollapsableParts
Undocumented in source.
CollapsableWidget
struct CollapsableWidget

On user click toggles

Column
struct Column(Row)
Undocumented in source.
ColumnInfo
struct ColumnInfo
Undocumented in source.
ColumnListLogic
struct ColumnListLogic
Undocumented in source.
ConditionData
struct ConditionData
Undocumented in source.
DraggableLogic
struct DraggableLogic
Undocumented in source.
DraggableSettings
struct DraggableSettings
Undocumented in source.
DropDown
struct DropDown
Undocumented in source.
DropDownData
struct DropDownData
Undocumented in source.
Fill
struct Fill(bool horizontal)
Undocumented in source.
Frame
struct Frame
Undocumented in source.
FrameParts
struct FrameParts
Undocumented in source.
IconData
struct IconData
Undocumented in source.
IconLogic
struct IconLogic
Undocumented in source.
IconTextButtonLogic
struct IconTextButtonLogic
Undocumented in source.
ImageData
struct ImageData
Undocumented in source.
ImageLogic
struct ImageLogic
Undocumented in source.
Line
struct Line(bool horizontal)
Undocumented in source.
LinearLayout
struct LinearLayout(bool horizontal)
Undocumented in source.
LinearLayoutSettings
struct LinearLayoutSettings
Undocumented in source.
ListData
struct ListData
Undocumented in source.
ListInfo
struct ListInfo(Row)
Undocumented in source.
PagedWidget
struct PagedWidget
Undocumented in source.
PanelLogic
struct PanelLogic
Undocumented in source.
ScrollBarEvent
struct ScrollBarEvent
Undocumented in source.
ScrollBarLogic
struct ScrollBarLogic
Undocumented in source.
ScrollBarParts
struct ScrollBarParts
Undocumented in source.
ScrollableArea
struct ScrollableArea
Undocumented in source.
ScrollableAreaParts
struct ScrollableAreaParts
Undocumented in source.
ScrollableData
struct ScrollableData
Undocumented in source.
SingleLayout
struct SingleLayout

For layouting single child with alignment and padding.

SingleLayoutSettings
struct SingleLayoutSettings
Undocumented in source.
TextButtonLogic
struct TextButtonLogic
Undocumented in source.
TextData
struct TextData
Undocumented in source.
TextLogic
struct TextLogic
Undocumented in source.
UserCheckHandler
struct UserCheckHandler
Undocumented in source.
UserClickHandler
struct UserClickHandler
Undocumented in source.
WidgetIndex
struct WidgetIndex
Undocumented in source.
WidgetProxy
struct WidgetProxy
Undocumented in source.
WidgetReference
struct WidgetReference
Undocumented in source.

Variables

buttonColors
Color4ub[8] buttonColors;
Undocumented in source.

Meta

Authors

Andrey Penechko.