package raygui

  1. Overview
  2. Docs
OCaml bindings for raygui

Install

Dune Dependency

Authors

Maintainers

Sources

raygui-0.5.1.tbz
sha256=ace92b528632084ef1467e97aa14e772cdca10e8f3f26f3445473f7c1dbdba88
sha512=9aa37cd17f88f251cf9ce79dc4f8e0df61113f88f6b3a0ee05bb75b734847ce4393093df8a98b2c41103cc3e741fc75baeda8ffc5ec66b2c6f49c5576de80872

doc/raygui/Raygui/index.html

Module RayguiSource

module ControlState : sig ... end
module TextAlignment : sig ... end
Sourcemodule Default : sig ... end
Sourcemodule Toggle : sig ... end
Sourcemodule Slider : sig ... end
Sourcemodule ProgressBar : sig ... end
Sourcemodule CheckBox : sig ... end
Sourcemodule ComboBox : sig ... end
Sourcemodule DropdownBox : sig ... end
Sourcemodule TextBox : sig ... end
Sourcemodule Spinner : sig ... end
Sourcemodule ScrollBar : sig ... end
Sourcemodule ListView : sig ... end
Sourcemodule ColorPicker : sig ... end
Sourcemodule Control : sig ... end

State modification functions

val enable : unit -> unit

enable () Enable gui controls (global state)

val disable : unit -> unit

disable () Disable gui controls (global state)

val lock : unit -> unit

lock () Lock gui controls (global state)

val unlock : unit -> unit

unlock () Unlock gui controls (global state)

val fade : float -> unit

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

Sourceval set_font : Raylib.Font.t -> unit

set_font font Set gui custom font (global state)

Sourceval get_font : unit -> Raylib.Font.t

get_font () Get gui custom font (global state)

Style set/get functions

Sourceval set_style : Control.t -> int -> unit

set_style control value Set one style property

Sourceval get_style : Control.t -> int

get_style control Get one style property

Container/separator controls, useful for controls organization

Sourceval window_box : Raylib.Rectangle.t -> string -> bool

window_box bounds title Window Box control, shows a window that can be closed

Sourceval group_box : Raylib.Rectangle.t -> string -> unit

group_box bounds text Group Box control with text name

Sourceval line : Raylib.Rectangle.t -> string -> unit

line bounds text Line separator control, could contain text

Sourceval panel : Raylib.Rectangle.t -> unit

panel bounds Panel control, useful to group controls

scroll_panel bounds content scroll Scroll Panel control

Basic controls set

Sourceval label : Raylib.Rectangle.t -> string -> unit

label bounds text Label control, shows text

Sourceval button : Raylib.Rectangle.t -> string -> bool

button bounds text Button control, returns true when clicked

Sourceval label_button : Raylib.Rectangle.t -> string -> bool

label_button bounds text Label button control, show true when clicked

Sourceval toggle : Raylib.Rectangle.t -> string -> bool -> bool

toggle bounds text active Toggle Button control, returns true when active

Sourceval toggle_group : Raylib.Rectangle.t -> string -> int -> int

toggle_group bounds text active Toggle Group control, returns active toggle index

Sourceval check_box : Raylib.Rectangle.t -> string -> bool -> bool

check_box bounds text checked Check Box control, returns true when active

Sourceval combo_box : Raylib.Rectangle.t -> string -> int -> int

combo_box bounds text active Combo Box control, returns selected item index

Sourceval dropdown_box : Raylib.Rectangle.t -> string -> int -> bool -> int * bool

dropdown_box bounds text active Dropdown Box control, returns selected item, active

Sourceval spinner : Raylib.Rectangle.t -> string -> int -> min:int -> max:int -> bool -> int * bool

spinner bounds text valute ~min ~max edit_mode Spinner control, returns selected value, edit_mode

Sourceval 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

Sourceval text_box : Raylib.Rectangle.t -> string -> bool -> string * bool

text_box bounds text text_size edit_mode Text Box control, returns text, edit_mode

Sourceval text_box_multi : Raylib.Rectangle.t -> string -> bool -> string * bool

text_box_multi bounds text text_size edit_mode Text Box control with multiple lines,returns text, edit_mode

Sourceval 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

Sourceval 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

Sourceval 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

Sourceval status_bar : Raylib.Rectangle.t -> string -> unit

status_bar bounds text Status Bar control, shows info text

Sourceval dummy_rec : Raylib.Rectangle.t -> string -> unit

dummy_rec bounds text Dummy control for placeholders

Sourceval scroll_bar : Raylib.Rectangle.t -> int -> min:int -> max:int -> int

scroll_bar bounds value ~min ~max Scroll Bar control

Sourceval grid : Raylib.Rectangle.t -> float -> int -> Raylib.Vector2.t

grid bounds spacing subdivs Grid control

Advance controls set

Sourceval list_view : Raylib.Rectangle.t -> string -> int -> int -> int * int

list_view bounds text scross_index active List View control, returns selected list item index, active

Sourceval list_view_ex : Raylib.Rectangle.t -> string list -> int -> int -> int -> int * int * int

list_view_ex bounds text_list focus scroll_index active List View with extended parameters, returns selected list item index, focus, active

Sourceval message_box : Raylib.Rectangle.t -> string -> string -> string -> int

message_box bounds title message buttons Message Box control, displays a message

Sourceval 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

Sourceval color_bar_alpha : Raylib.Rectangle.t -> float -> float

color_bar_alpha bounds alpha Color Bar Alpha control

Sourceval color_bar_hue : Raylib.Rectangle.t -> float -> float

color_bar_hue bounds value Color Bar Hue control

val load_style : string -> unit

Styles loading functions

load_style filename Load style file (.rgs)

val load_style_default : unit -> unit

load_style_default () Load style default over global style

OCaml

Innovation. Community. Security.