package raygui
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ace92b528632084ef1467e97aa14e772cdca10e8f3f26f3445473f7c1dbdba88
sha512=9aa37cd17f88f251cf9ce79dc4f8e0df61113f88f6b3a0ee05bb75b734847ce4393093df8a98b2c41103cc3e741fc75baeda8ffc5ec66b2c6f49c5576de80872
doc/raygui/Raygui/index.html
Module Raygui
Source
module ControlState : sig ... end
module TextAlignment : sig ... end
State modification functions
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)
Font set/get functions
set_font font
Set gui custom font (global state)
get_font ()
Get gui custom font (global state)
Style set/get functions
Container/separator controls, useful for controls organization
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
Basic controls set
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 text_size edit_mode
Text Box control, returns text, edit_mode
text_box_multi bounds text text_size 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
Advance controls set
list_view bounds text scross_index active
List View control, returns selected list item index, active
list_view_ex bounds text_list focus scroll_index active
List View with extended parameters, returns selected list item index, focus, active
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