Page
Library
Module
Module type
Parameter
Class
Class type
Source
Raygui
Sourcemodule ControlState : sig ... end
module TextAlignment : sig ... end
fade alpha
Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
val set_state : ControlState.t -> unit
set_state state
Set gui state (global state)
val get_state : unit -> ControlState.t
get_state ()
Get gui state (global state)
set_font font
Set gui custom font (global state)
get_font ()
Get gui custom font (global state)
window_box bounds title
Window Box control, shows a window that can be closed
group_box bounds text
Group Box control with text name
line bounds text
Line separator control, could contain text
panel bounds
Panel control, useful to group controls
val scroll_panel :
Raylib.Rectangle.t ->
Raylib.Rectangle.t ->
Raylib.Vector2.t Raylib.ptr ->
Raylib.Rectangle.t
scroll_panel bounds content scroll
Scroll Panel control
label bounds text
Label control, shows text
button bounds text
Button control, returns true when clicked
label_button bounds text
Label button control, show true when clicked
toggle bounds text active
Toggle Button control, returns true when active
toggle_group bounds text active
Toggle Group control, returns active toggle index
check_box bounds text checked
Check Box control, returns true when active
combo_box bounds text active
Combo Box control, returns selected item index
dropdown_box bounds text active
Dropdown Box control, returns selected item, active
spinner bounds text valute ~min ~max edit_mode
Spinner control, returns selected value, edit_mode
val value_box :
Raylib.Rectangle.t ->
string ->
int ->
min:int ->
max:int ->
bool ->
int * bool
value_box bounds text value ~min ~max edit_mode
Value Box control, updates input text with numbers, returns value, edit_mode
text_box bounds text edit_mode
Text Box control, returns text, edit_mode
text_box_multi bounds text edit_mode
Text Box control with multiple lines,returns text, edit_mode
val slider :
Raylib.Rectangle.t ->
string ->
string ->
float ->
min:float ->
max:float ->
float
slider bounds text_left text_right value ~min ~max
Slider control, returns selected value
val slider_bar :
Raylib.Rectangle.t ->
string ->
string ->
float ->
min:float ->
max:float ->
float
slider_bar bounds text_left text_right value ~min ~max
Slider Bar control, returns selected value
val progress_bar :
Raylib.Rectangle.t ->
string ->
string ->
float ->
min:float ->
max:float ->
float
progress_bar bounds text_left text_right value ~min ~max
Progress Bar control, shows current progress value
status_bar bounds text
Status Bar control, shows info text
dummy_rec bounds text
Dummy control for placeholders
scroll_bar bounds value ~min ~max
Scroll Bar control
grid bounds spacing subdivs
Grid control
list_view bounds text scroll_index active
List View control, returns selected list item index, scroll index
list_view_ex bounds text_list focus scroll_index active
List View with extended parameters, returns selected list item index, focus, scroll index
message_box bounds title message buttons
Message Box control, displays a message
val text_input_box :
Raylib.Rectangle.t ->
string ->
string ->
string ->
string ->
string * int
text_input_box bounds title message buttons text
Text Input Box control, returns text, state
color_picker bounds color
Color Picker control (multiple color controls)
color_panel bounds color
Color Panel control
color_bar_alpha bounds alpha
Color Bar Alpha control
color_bar_hue bounds value
Color Bar Hue control