RaylibGuiD class
- Inheritance
-
- Object
- RaylibModule<Raylib>
- RaylibGuiModuleBase<Raylib, ColorD, FontD, GlyphInfoD, ImageD, MatrixD, QuaternionD, RectangleD, TextureD, Vector2D, Vector3D, Vector4D>
- RaylibGuiD
Methods
-
debug(bool v)
→ void
-
Enables or disables debug logging for this module.
inherited
-
debugError(String message)
→ void
-
Logs
message at error level if debug is enabled and message passes all filters.
inherited
-
debugFilter(bool filter(String))
→ void
-
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
inherited
-
debugInfo(String message)
→ void
-
Logs
message at info level if debug is enabled and message passes all filters.
inherited
-
debugTime(bool v)
→ void
-
Enables or disables per-call timing output alongside debug logs.
inherited
-
debugWarn(String message)
→ void
-
Logs
message at warn level if debug is enabled and message passes all filters.
inherited
-
disableSync<T>(T f())
→ T
-
Executes
f with RaylibTempBase syncing temporarily disabled,
restoring the previous sync state afterward.
inherited
-
dispose()
→ void
-
Calls all registered onDispose callbacks and clears them.
inherited
-
doLoad()
→ void
-
Ensures load is called exactly once, regardless of how many times doLoad is invoked.
inherited
-
GuiButton(RectangleD bounds, String? text)
→ int
-
Button control, returns true when clicked
override
-
GuiCheckBox(RectangleD bounds, String? text, bool checked)
→ (int, bool)
-
Check Box control, returns true when active
override
-
GuiColorBarAlpha(RectangleD bounds, num alpha)
→ (int, double)
-
Color Bar Alpha control
override
-
GuiColorBarHue(RectangleD bounds, num value)
→ (int, double)
-
Color Bar Hue control
override
-
GuiColorPanel(RectangleD bounds, ColorD color)
→ (int, ColorD)
-
Color Panel control
override
-
GuiColorPanelHSV(RectangleD bounds, [Vector3D? colorHsv])
→ (int, Vector3D)
-
Color Panel control that updates Hue-Saturation-Value color value, used by GuiColorPickerHSV()
override
-
GuiColorPicker(RectangleD bounds, ColorD? color)
→ (int, ColorD)
-
Color Picker control (multiple color controls)
override
-
GuiColorPickerHSV(RectangleD bounds, [Vector3D? colorHsv])
→ (int, Vector3D)
-
Color Picker control that avoids conversion to RGB on each call (multiple color controls)
override
-
GuiComboBox(RectangleD bounds, String? text, num active)
→ (int, int)
-
Combo Box control
override
-
GuiDisable()
→ void
-
Disable gui controls (global state
override
-
GuiDisableTooltip()
→ void
-
Disable gui tooltips (global state)
override
-
GuiDrawIcon(GuiIconName iconId, num posX, num posY, num pixelSize, ColorD color)
→ void
-
Draw icon using pixel size at specified position
override
-
GuiDropdownBox(RectangleD bounds, String? text, num active, bool editMode)
→ (int, int)
-
Dropdown Box control
override
-
GuiDummyRec(RectangleD bounds, String? text)
→ int
-
Dummy control for placeholders
override
-
GuiEnable()
→ void
-
Enable gui controls (global state)
override
-
GuiEnableTooltip()
→ void
-
Enable gui tooltips (global state)
override
-
GuiGetFont()
→ FontD
-
Get gui custom font (global state)
override
-
GuiGetIcons()
→ List<int>
-
Get raygui icons data
override
-
GuiGetState()
→ int
-
Get gui state (global state)
override
-
GuiGetStyle(GuiControl control, GuiProperty property)
→ int
-
Get one style property
override
-
GuiGetTextWidth(String? text)
→ int
-
Get text width considering gui style and icon size (if required)
override
-
GuiGrid(RectangleD bounds, num spacing, num subdivs, [Vector2D? mouseCell])
→ int
-
Grid control
override
-
GuiGroupBox(RectangleD bounds, String? text)
→ int
-
Group Box control with text name
override
-
GuiIconText(GuiIconName iconId, String? text)
→ String
-
Get text with icon id prepended (if supported)
override
-
GuiIsLocked()
→ bool
-
Check if gui is locked (global state)
override
-
GuiLabel(RectangleD bounds, String? text)
→ int
-
Label control
override
-
GuiLabelButton(RectangleD bounds, String? text)
→ int
-
Label button control, returns true when clicked
override
-
GuiLine(RectangleD bounds, String? text)
→ int
-
Line separator control, could contain text
override
-
GuiListView(RectangleD bounds, String? text, {int? scrollIndex, int? active})
→ (int, int?, int?)
-
List View control
override
-
GuiListViewEx(RectangleD bounds, List<String>? text, {int? scrollIndex, int? active, int? focus})
→ (int, int?, int?, int?)
-
List View with extended parameters
override
-
GuiLoadIcons(String fileName, bool loadIconsName)
→ List<String>
-
Load raygui icons file (.rgi) into internal icons data
override
-
GuiLoadStyle(String fileName)
→ void
-
Load style file over global style variable (.rgs)
override
-
GuiLoadStyleDefault()
→ void
-
Load style default over global style
override
-
GuiLock()
→ void
-
Lock gui controls (global state)
override
-
GuiMessageBox(RectangleD bounds, String? title, String message, String buttons)
→ int
-
Message Box control, displays a message
override
-
GuiPanel(RectangleD bounds, String? text)
→ int
-
Panel control, useful to group controls
override
-
GuiProgressBar(RectangleD bounds, String? textLeft, String? textRight, num value, num minValue, num maxValue)
→ (int, double)
-
Progress Bar control
override
-
GuiScrollPanel(RectangleD bounds, String? text, RectangleD content, Vector2D scroll, [RectangleD? view])
→ int
-
Scroll Panel control
override
-
GuiSetAlpha(num alpha)
→ void
-
Set gui controls alpha (global state), alpha goes from 0.0 to 1.0
override
-
GuiSetFont(FontD font)
→ void
-
Set gui custom font (global state)
override
-
GuiSetIconScale(num scale)
→ void
-
Set default icon drawing size
override
-
GuiSetState(GuiState state)
→ void
-
Set gui state (global state)
override
-
GuiSetStyle(GuiControl control, GuiProperty property, num value)
→ void
-
Set one style property
override
-
GuiSetTooltip(String? tooltip)
→ void
-
Set tooltip string
override
-
GuiSlider(RectangleD bounds, String? textLeft, String? textRight, num value, num minValue, num maxValue)
→ (int, double)
-
Slider control
override
-
GuiSliderBar(RectangleD bounds, String? textLeft, String? textRight, num value, num minValue, num maxValue)
→ (int, double)
-
Slider Bar control
override
-
GuiSpinner(RectangleD bounds, String? text, num value, num minValue, num maxValue, bool editMode)
→ (int, int)
-
Spinner control
override
-
GuiStatusBar(RectangleD bounds, String? text)
→ int
-
Status Bar control, shows info text
override
-
GuiTabBar(RectangleD bounds, List<String> text)
→ (int, int)
-
Tab Bar control, returns TAB to be closed or -1
override
-
GuiTextBox(RectangleD bounds, String? text, num textSize, bool editMode)
→ (int, String)
-
Text Box control, updates input text
override
-
GuiTextInputBox(RectangleD bounds, String? title, String? message, String buttons, String? text, num textMaxSize, bool? secretViewActive)
→ (int, String, bool?)
-
Text Input Box control, ask for text, supports secret
override
-
GuiToggle(RectangleD bounds, String? text, bool active)
→ (int, bool)
-
Toggle Button control
override
-
GuiToggleGroup(RectangleD bounds, String? text, num active)
→ (int, int)
-
Toggle Group control
override
-
GuiToggleSlider(RectangleD bounds, String? text, num active)
→ (int, int)
-
Toggle Slider control
override
-
GuiUnlock()
→ void
-
Unlock gui controls (global state)
override
-
GuiValueBox(RectangleD bounds, String? text, num value, num minValue, num maxValue, bool editMode)
→ (int, int)
-
Value Box control, updates input text with numbers
override
-
GuiValueBoxFloat(RectangleD bounds, String? text, String textValue, num value, bool editMode)
→ (int, double)
-
Value box control for float values
override
-
GuiWindowBox(RectangleD bounds, String? title)
→ int
-
Window Box control, shows a window that can be closed
override
-
load()
→ void
-
Override to perform one-time module initialization. Called by doLoad.
inherited
-
logError(Object? message)
→ void
-
inherited
-
logInfo(Object? message)
→ void
-
inherited
-
logWarn(Object? message)
→ void
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose(void fn())
→ void
-
Registers
fn to be called when this module is disposed.
inherited
-
run<T>(String name(), T f())
→ T
-
Executes
f, logging its label (and optionally timing it) when debug is enabled
and the label passes all filters.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited