draygui.raygui

Members

Enums

GuiCheckBoxProperty
enum GuiCheckBoxProperty

CheckBox

GuiColorPickerProperty
enum GuiColorPickerProperty

ColorPicker

GuiComboBoxProperty
enum GuiComboBoxProperty

ComboBox

GuiControl
enum GuiControl

Gui controls

GuiControlProperty
enum GuiControlProperty

Gui base properties for every control

GuiControlState
enum GuiControlState

Gui control state

GuiDefaultProperty
enum GuiDefaultProperty

DEFAULT properties

GuiDropdownBoxProperty
enum GuiDropdownBoxProperty

DropdownBox

GuiListViewProperty
enum GuiListViewProperty

ListView

GuiScrollBarProperty
enum GuiScrollBarProperty

ScrollBar

GuiScrollBarSide
enum GuiScrollBarSide

ScrollBar side

GuiSliderProperty
enum GuiSliderProperty

Slider / SliderBar

GuiTextAlignment
enum GuiTextAlignment

Gui control text alignment

GuiTextBoxProperty
enum GuiTextBoxProperty

TextBox / TextBoxMulti / ValueBox / Spinner

GuiToggleProperty
enum GuiToggleProperty

Toggle / ToggleGroup

Functions

GetTextIcon
string GetTextIcon(string text, out int iconId)

Get text icon if provided and move text cursor

GuiButton
bool GuiButton(Rectangle bounds, string text)

Button control

GuiCheckBox
bool GuiCheckBox(Rectangle bounds, string text, bool checked)

Check Box control, returns true when active

GuiComboBox
int GuiComboBox(Rectangle bounds, string text, int active)

Combo Box control, returns selected item index

GuiDisable
void GuiDisable()

Disable gui global state

GuiDrawText
void GuiDrawText(string text, Rectangle bounds, int alignment, Color tint)

Gui draw text using default font

GuiDropdownBox
bool GuiDropdownBox(Rectangle bounds, string text, ref int active, bool editMode)

Dropdown Box control, returns selected item

GuiDummyRec
void GuiDummyRec(Rectangle bounds, string text)

Dummy rectangle control, intended for placeholding

GuiEnable
void GuiEnable()

Enable gui global state

GuiFade
void GuiFade(float alpha)

Set gui controls alpha global state

GuiFont
void GuiFont(Font font)

Define custom gui font

GuiGetStyle
int GuiGetStyle(int control, int property)

Get control style property value

GuiGrid
Vector2 GuiGrid(Rectangle bounds, float spacing, int subdivs)

Grid control NOTE: Returns grid mouse-hover selected cell About drawing lines at subpixel spacing, simple put, not easy solution: https://stackoverflow.com/questions/4435450/2d-opengl-drawing-lines-that-dont-exactly-fit-pixel-raster

GuiGroupBox
void GuiGroupBox(Rectangle bounds, string text)

Group Box control with title name

GuiIconText
string GuiIconText(int iconId, string text)

Get text with icon id prepended NOTE: Useful to add icons by name id (enum) instead of a number that can change between ricon versions

GuiImageButton
bool GuiImageButton(Rectangle bounds, Texture2D texture)

Image button control, returns true when clicked

GuiImageButtonEx
bool GuiImageButtonEx(Rectangle bounds, Texture2D texture, Rectangle texSource, string text)

Image button control, returns true when clicked

GuiLabel
void GuiLabel(Rectangle bounds, string text)

Label control

GuiLabelButton
bool GuiLabelButton(Rectangle bounds, string text)

Label button control

GuiLine
void GuiLine(Rectangle bounds, string text)

Line control

GuiListElement
bool GuiListElement(Rectangle bounds, string text, bool active, bool editMode)

List Element control, returns element state

GuiListView
bool GuiListView(Rectangle bounds, string text, ref int active, ref int scrollIndex, bool editMode)

List View control

GuiListViewEx
bool GuiListViewEx(Rectangle bounds, string[] text, int count, ref int enabled, ref int active, ref int focus, ref int scrollIndex, bool editMode)

List View control extended parameters NOTE: Elements could be disabled individually and focused element could be obtained: int *enabled defines an array with enabled elements inside the list int *focus returns focused element (may be not pressed)

GuiLoadStyle
void GuiLoadStyle(string fileName)

Load raygui style file (.rgs) TEXT ONLY FOR NOW.

GuiLoadStyleDefault
void GuiLoadStyleDefault()

Load style default over global style

GuiLoadStyleProps
void GuiLoadStyleProps(in int[] props, int count)

Load style from a palette values array

GuiLock
void GuiLock()

Lock gui global state

GuiMessageBox
int GuiMessageBox(Rectangle bounds, string windowTitle, string message, string buttons)

Message Box control

GuiPanel
void GuiPanel(Rectangle bounds)

Panel control

GuiProgressBar
float GuiProgressBar(Rectangle bounds, string text, float value, float minValue, float maxValue, bool showValue)

Progress Bar control extended, shows current progress value

GuiScrollBar
int GuiScrollBar(Rectangle bounds, int value, int minValue, int maxValue)

Scroll Bar control

GuiScrollPanel
Rectangle GuiScrollPanel(Rectangle bounds, Rectangle content, ref Vector2 scroll)

Scroll Panel control

GuiSetStyle
void GuiSetStyle(int control, int property, int value)

Set control style property value

GuiSlider
float GuiSlider(Rectangle bounds, string text, float value, float minValue, float maxValue, bool showValue)

Slider control extended, returns selected value and has text

GuiSliderBar
float GuiSliderBar(Rectangle bounds, string text, float value, float minValue, float maxValue, bool showValue)

Slider Bar control extended, returns selected value

GuiSliderPro
float GuiSliderPro(Rectangle bounds, string text, float value, float minValue, float maxValue, int sliderWidth, bool showValue)

Slider control with pro parameters NOTE: Other GuiSlider*() controls use this one

GuiSpinner
bool GuiSpinner(Rectangle bounds, ref int value, int minValue, int maxValue, bool editMode)

Spinner control, returns selected value

GuiState
void GuiState(int state)

Set gui state (global state)

GuiTextBox
bool GuiTextBox(Rectangle bounds, ref string text, int textSize, bool editMode)

Text Box control, updates input text

GuiTextBoxMulti
bool GuiTextBoxMulti(Rectangle bounds, ref string text, int textSize, bool editMode)

Text Box control with multiple lines

GuiTextInputBox
int GuiTextInputBox(Rectangle bounds, string windowTitle, string message, string text, string buttons)

Text Input Box control, ask for text

GuiToggle
bool GuiToggle(Rectangle bounds, string text, bool active)

Toggle Button control, returns true when active

GuiToggleGroup
int GuiToggleGroup(Rectangle bounds, string text, int active)

Toggle Group control, returns toggled button index

GuiUnlock
void GuiUnlock()

Unlock gui global state

GuiUpdateStyleComplete
void GuiUpdateStyleComplete()

Updates controls style with default values

GuiValueBox
bool GuiValueBox(Rectangle bounds, ref int value, int minValue, int maxValue, bool editMode)

Value Box control, updates input text with numbers

GuiWindowBox
bool GuiWindowBox(Rectangle bounds, string text)

Window Box control

VALIGN_OFFSET
auto VALIGN_OFFSET(auto ref T h)

Vertical alignment for pixel perfect

Manifest constants

NUM_CONTROLS
enum NUM_CONTROLS;

Number of standard controls

NUM_PROPS_DEFAULT
enum NUM_PROPS_DEFAULT;

Number of standard properties

NUM_PROPS_EXTENDED
enum NUM_PROPS_EXTENDED;

Number of extended properties

RAYGUI_VERSION
enum RAYGUI_VERSION;

Current Raygui version.

TEXTEDIT_CURSOR_BLINK_FRAMES
enum TEXTEDIT_CURSOR_BLINK_FRAMES;

Text edit controls cursor blink timming

Meta