Rayguimodule ControlState : sig ... endmodule TextAlignment : sig ... endmodule Default : sig ... endmodule Toggle : sig ... endmodule Slider : sig ... endmodule ProgressBar : sig ... endmodule CheckBox : sig ... endmodule ComboBox : sig ... endmodule DropdownBox : sig ... endmodule TextBox : sig ... endmodule Spinner : sig ... endmodule ScrollBar : sig ... endmodule ListView : sig ... endmodule ColorPicker : sig ... endmodule Control : 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)
val set_font : Raylib.Font.t -> unitset_font font Set gui custom font (global state)
val get_font : unit -> Raylib.Font.tget_font () Get gui custom font (global state)
val set_style : Control.t -> int -> unitset_style control value Set one style property
val get_style : Control.t -> intget_style control Get one style property
val window_box : Raylib.Rectangle.t -> string -> boolwindow_box bounds title Window Box control, shows a window that can be closed
val group_box : Raylib.Rectangle.t -> string -> unitgroup_box bounds text Group Box control with text name
val line : Raylib.Rectangle.t -> string -> unitline bounds text Line separator control, could contain text
val panel : Raylib.Rectangle.t -> unitpanel 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
val label : Raylib.Rectangle.t -> string -> unitlabel bounds text Label control, shows text
val button : Raylib.Rectangle.t -> string -> boolbutton bounds text Button control, returns true when clicked
val label_button : Raylib.Rectangle.t -> string -> boollabel_button bounds text Label button control, show true when clicked
val toggle : Raylib.Rectangle.t -> string -> bool -> booltoggle bounds text active Toggle Button control, returns true when active
val toggle_group : Raylib.Rectangle.t -> string -> int -> inttoggle_group bounds text active Toggle Group control, returns active toggle index
val check_box : Raylib.Rectangle.t -> string -> bool -> boolcheck_box bounds text checked Check Box control, returns true when active
val combo_box : Raylib.Rectangle.t -> string -> int -> intcombo_box bounds text active Combo Box control, returns selected item index
val dropdown_box : Raylib.Rectangle.t -> string -> int -> bool -> int * booldropdown_box bounds text active Dropdown Box control, returns selected item, active
val spinner :
Raylib.Rectangle.t ->
string ->
int ->
min:int ->
max:int ->
bool ->
int * boolspinner 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
val text_box : Raylib.Rectangle.t -> string -> bool -> string * booltext_box bounds text text_size edit_mode Text Box control, returns text, edit_mode
val text_box_multi : Raylib.Rectangle.t -> string -> bool -> string * booltext_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 ->
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
val status_bar : Raylib.Rectangle.t -> string -> unitstatus_bar bounds text Status Bar control, shows info text
val dummy_rec : Raylib.Rectangle.t -> string -> unitdummy_rec bounds text Dummy control for placeholders
val scroll_bar : Raylib.Rectangle.t -> int -> min:int -> max:int -> intscroll_bar bounds value ~min ~max Scroll Bar control
val grid : Raylib.Rectangle.t -> float -> int -> Raylib.Vector2.tgrid bounds spacing subdivs Grid control
val list_view : Raylib.Rectangle.t -> string -> int -> int -> int * intlist_view bounds text scross_index active List View control, returns selected list item index, active
val list_view_ex :
Raylib.Rectangle.t ->
string list ->
int ->
int ->
int ->
int * int * intlist_view_ex bounds text_list focus scroll_index active List View with extended parameters, returns selected list item index, focus, active
val message_box : Raylib.Rectangle.t -> string -> string -> string -> intmessage_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
val color_picker : Raylib.Rectangle.t -> Raylib.Color.t -> Raylib.Color.tcolor_picker bounds color Color Picker control (multiple color controls)
val color_panel : Raylib.Rectangle.t -> Raylib.Color.t -> Raylib.Color.tcolor_panel bounds color Color Panel control
val color_bar_alpha : Raylib.Rectangle.t -> float -> floatcolor_bar_alpha bounds alpha Color Bar Alpha control
val color_bar_hue : Raylib.Rectangle.t -> float -> floatcolor_bar_hue bounds value Color Bar Hue control