HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Enumerations

Data Structures

class  hi::v1::widget_layout
 The layout of a widget. More...
 

Enumerations

enum class  hi::v1::widget_mode {
  hi::v1::widget_mode::collapse = 0 , hi::v1::widget_mode::invisible = 1 , hi::v1::widget_mode::disabled = 2 , hi::v1::widget_mode::display = 3 ,
  hi::v1::widget_mode::select = 4 , hi::v1::widget_mode::partial = 5 , hi::v1::widget_mode::enabled = 6
}
 The mode that the widget is operating at. More...
 

Detailed Description

Utility types used widgets.

Enumeration Type Documentation

◆ widget_mode

enum class hi::v1::widget_mode
strong

The mode that the widget is operating at.

The enumeration here increases visibility and interactivity at each step and you may use operator<=>() to compare modes.

Enumerator
collapse 

The widget is collapsed.

This means:

  • The widget has zero size and zero margins.
  • The widget does not draw itself or its children.
  • The widget will not accept any events.
invisible 

The widget is invisible.

This means:

  • The widget has size and margins so that it will reserve space in a container.
disabled 

The widget is disabled.

This means:

  • The widget "grayed-out"; drawn with less contrast and saturation.
display 

The widget is in display-only mode.

This means:

  • The widget is drawn normally.
select 

The widget is selectable.

This means:

  • The widget or its contents such as text may be selected.
  • The widget or its contents may be dragged by the mouse.
partial 

A widget is partially enabled.

This means:

  • The widget will accept keyboard focus.
  • A widget has an extra mode where it limits the amount of control. such as a text-widget which has a mode where only a single line can be edited.
enabled 

The widget is fully enabled.

This means:

  • The widget will accept keyboard focus.
  • The widget's state is controllable.