Skip to content

Commit 433bc55

Browse files
committed
ocamlformat
1 parent 8362a64 commit 433bc55

File tree

7 files changed

+623
-318
lines changed

7 files changed

+623
-318
lines changed

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
profile = default
2-
version = 0.26.2
2+
version = 0.28.1

examples/core/core_window_letterbox.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ let draw (target, colors) =
6565
draw_text
6666
"If executed inside a window\n\
6767
you can resize the window\n\
68-
and see the screen scaling!" 10 25 20 Color.white;
68+
and see the screen scaling!"
69+
10 25 20 Color.white;
6970

7071
draw_text
7172
(Printf.sprintf "Default Mouse: [%i , %i]" (Int.of_float mouse_x)

examples/models/models_animation.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
let width = 800
22
let height = 450
33
let position = Raylib.Vector3.create 0.0 0.0 0.0
4-
let asset_path (filename: string) =
5-
Raylib.get_application_directory() ^ filename
4+
5+
let asset_path (filename : string) =
6+
Raylib.get_application_directory () ^ filename
67

78
let setup () =
89
let open Raylib in
@@ -14,7 +15,7 @@ let setup () =
1415
(Vector3.create 0.0 1.0 0.0)
1516
45.0 CameraProjection.Perspective
1617
in
17-
let path = asset_path("") in
18+
let path = asset_path "" in
1819
let model = load_model (path ^ "./resources/guy/guy.iqm") in
1920
let texture = load_texture (path ^ "./resources/guy/guytex.png") in
2021
set_material_texture

src/raygui/raygui.mli

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module Control : sig
114114
| StatusBar of prop
115115
end
116116

117-
(** {1 State modification functions } *)
117+
(** {1 State modification functions} *)
118118

119119
val enable : unit -> unit
120120
(** [enable ()] Enable gui controls (global state) *)
@@ -129,34 +129,36 @@ val unlock : unit -> unit
129129
(** [unlock ()] Unlock gui controls (global state) *)
130130

131131
val fade : float -> unit
132-
(** [fade alpha] Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f *)
132+
(** [fade alpha] Set gui controls alpha (global state), alpha goes from 0.0f to
133+
1.0f *)
133134

134135
val set_state : ControlState.t -> unit
135136
(** [set_state state] Set gui state (global state) *)
136137

137138
val get_state : unit -> ControlState.t
138139
(** [get_state ()] Get gui state (global state) *)
139140

140-
(** {1 Font set/get functions } *)
141+
(** {1 Font set/get functions} *)
141142

142143
val set_font : Raylib.Font.t -> unit
143144
(** [set_font font] Set gui custom font (global state) *)
144145

145146
val get_font : unit -> Raylib.Font.t
146147
(** [get_font ()] Get gui custom font (global state) *)
147148

148-
(** {1 Style set/get functions } *)
149+
(** {1 Style set/get functions} *)
149150

150151
val set_style : Control.t -> int -> unit
151152
(** [set_style control value] Set one style property *)
152153

153154
val get_style : Control.t -> int
154155
(** [get_style control] Get one style property *)
155156

156-
(** {1 Container/separator controls, useful for controls organization } *)
157+
(** {1 Container/separator controls, useful for controls organization} *)
157158

158159
val window_box : Raylib.Rectangle.t -> string -> bool
159-
(** [window_box bounds title] Window Box control, shows a window that can be closed *)
160+
(** [window_box bounds title] Window Box control, shows a window that can be
161+
closed *)
160162

161163
val group_box : Raylib.Rectangle.t -> string -> unit
162164
(** [group_box bounds text] Group Box control with text name *)
@@ -174,7 +176,7 @@ val scroll_panel :
174176
Raylib.Rectangle.t
175177
(** [scroll_panel bounds content scroll] Scroll Panel control *)
176178

177-
(** {1 Basic controls set } *)
179+
(** {1 Basic controls set} *)
178180

179181
val label : Raylib.Rectangle.t -> string -> unit
180182
(** [label bounds text] Label control, shows text *)
@@ -186,19 +188,24 @@ val label_button : Raylib.Rectangle.t -> string -> bool
186188
(** [label_button bounds text] Label button control, show true when clicked *)
187189

188190
val toggle : Raylib.Rectangle.t -> string -> bool -> bool
189-
(** [toggle bounds text active] Toggle Button control, returns true when active *)
191+
(** [toggle bounds text active] Toggle Button control, returns true when active
192+
*)
190193

191194
val toggle_group : Raylib.Rectangle.t -> string -> int -> int
192-
(** [toggle_group bounds text active] Toggle Group control, returns active toggle index *)
195+
(** [toggle_group bounds text active] Toggle Group control, returns active
196+
toggle index *)
193197

194198
val check_box : Raylib.Rectangle.t -> string -> bool -> bool
195-
(** [check_box bounds text checked] Check Box control, returns true when active *)
199+
(** [check_box bounds text checked] Check Box control, returns true when active
200+
*)
196201

197202
val combo_box : Raylib.Rectangle.t -> string -> int -> int
198-
(** [combo_box bounds text active] Combo Box control, returns selected item index *)
203+
(** [combo_box bounds text active] Combo Box control, returns selected item
204+
index *)
199205

200206
val dropdown_box : Raylib.Rectangle.t -> string -> int -> bool -> int * bool
201-
(** [dropdown_box bounds text active] Dropdown Box control, returns selected item, active *)
207+
(** [dropdown_box bounds text active] Dropdown Box control, returns selected
208+
item, active *)
202209

203210
val spinner :
204211
Raylib.Rectangle.t ->
@@ -208,7 +215,8 @@ val spinner :
208215
max:int ->
209216
bool ->
210217
int * bool
211-
(** [spinner bounds text valute ~min ~max edit_mode] Spinner control, returns selected value, edit_mode *)
218+
(** [spinner bounds text valute ~min ~max edit_mode] Spinner control, returns
219+
selected value, edit_mode *)
212220

213221
val value_box :
214222
Raylib.Rectangle.t ->
@@ -218,13 +226,16 @@ val value_box :
218226
max:int ->
219227
bool ->
220228
int * bool
221-
(** [value_box bounds text value ~min ~max edit_mode] Value Box control, updates input text with numbers, returns value, edit_mode *)
229+
(** [value_box bounds text value ~min ~max edit_mode] Value Box control, updates
230+
input text with numbers, returns value, edit_mode *)
222231

223232
val text_box : Raylib.Rectangle.t -> string -> bool -> string * bool
224-
(** [text_box bounds text edit_mode] Text Box control, returns text, edit_mode *)
233+
(** [text_box bounds text edit_mode] Text Box control, returns text, edit_mode
234+
*)
225235

226236
val text_box_multi : Raylib.Rectangle.t -> string -> bool -> string * bool
227-
(** [text_box_multi bounds text edit_mode] Text Box control with multiple lines,returns text, edit_mode *)
237+
(** [text_box_multi bounds text edit_mode] Text Box control with multiple
238+
lines,returns text, edit_mode *)
228239

229240
val slider :
230241
Raylib.Rectangle.t ->
@@ -234,7 +245,8 @@ val slider :
234245
min:float ->
235246
max:float ->
236247
float
237-
(** [slider bounds text_left text_right value ~min ~max] Slider control, returns selected value *)
248+
(** [slider bounds text_left text_right value ~min ~max] Slider control, returns
249+
selected value *)
238250

239251
val slider_bar :
240252
Raylib.Rectangle.t ->
@@ -244,7 +256,8 @@ val slider_bar :
244256
min:float ->
245257
max:float ->
246258
float
247-
(** [slider_bar bounds text_left text_right value ~min ~max] Slider Bar control, returns selected value *)
259+
(** [slider_bar bounds text_left text_right value ~min ~max] Slider Bar control,
260+
returns selected value *)
248261

249262
val progress_bar :
250263
Raylib.Rectangle.t ->
@@ -254,7 +267,8 @@ val progress_bar :
254267
min:float ->
255268
max:float ->
256269
float
257-
(** [progress_bar bounds text_left text_right value ~min ~max] Progress Bar control, shows current progress value *)
270+
(** [progress_bar bounds text_left text_right value ~min ~max] Progress Bar
271+
control, shows current progress value *)
258272

259273
val status_bar : Raylib.Rectangle.t -> string -> unit
260274
(** [status_bar bounds text] Status Bar control, shows info text *)
@@ -268,7 +282,7 @@ val scroll_bar : Raylib.Rectangle.t -> int -> min:int -> max:int -> int
268282
val grid : Raylib.Rectangle.t -> float -> int -> Raylib.Vector2.t
269283
(** [grid bounds spacing subdivs] Grid control *)
270284

271-
(** {1 Advance controls set } *)
285+
(** {1 Advance controls set} *)
272286

273287
val list_view : Raylib.Rectangle.t -> string -> int -> int -> int * int
274288
(** [list_view bounds text scroll_index active] List View control, returns
@@ -277,17 +291,21 @@ val list_view : Raylib.Rectangle.t -> string -> int -> int -> int * int
277291
val list_view_ex :
278292
Raylib.Rectangle.t -> string list -> int -> int -> int -> int * int * int
279293
(** [list_view_ex bounds text_list focus scroll_index active] List View with
280-
extended parameters, returns selected list item index, focus, scroll index *)
294+
extended parameters, returns selected list item index, focus, scroll index
295+
*)
281296

282297
val message_box : Raylib.Rectangle.t -> string -> string -> string -> int
283-
(** [message_box bounds title message buttons] Message Box control, displays a message *)
298+
(** [message_box bounds title message buttons] Message Box control, displays a
299+
message *)
284300

285301
val text_input_box :
286302
Raylib.Rectangle.t -> string -> string -> string -> string -> string * int
287-
(** [text_input_box bounds title message buttons text] Text Input Box control, returns text, state *)
303+
(** [text_input_box bounds title message buttons text] Text Input Box control,
304+
returns text, state *)
288305

289306
val color_picker : Raylib.Rectangle.t -> Raylib.Color.t -> Raylib.Color.t
290-
(** [color_picker bounds color] Color Picker control (multiple color controls) *)
307+
(** [color_picker bounds color] Color Picker control (multiple color controls)
308+
*)
291309

292310
val color_panel : Raylib.Rectangle.t -> Raylib.Color.t -> Raylib.Color.t
293311
(** [color_panel bounds color] Color Panel control *)

0 commit comments

Comments
 (0)