Page
Library
Module
Module type
Parameter
Class
Class type
Source
RayguiSourcemodule ControlState : sig ... endmodule TextAlignment : sig ... endfade alpha Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
val set_state : ControlState.t -> unitset_state state Set gui state (global state)
val get_state : unit -> ControlState.tget_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.tscroll_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 * boolvalue_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 ->
floatslider 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 ->
floatslider_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 ->
floatprogress_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 * inttext_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