-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimagetypes.ml
More file actions
31 lines (27 loc) · 933 Bytes
/
imagetypes.ml
File metadata and controls
31 lines (27 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(*
* "THE BEER-WARE LICENSE" (Revision 42):
* <sebastian.benque@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return Sebastian Benque
*)
(* Type Declarations
********************)
type pos = int * int
type view_mode =
Fit | Zoom of float | Full
type text_type =
Help | Info | None
type config_state =
{
screen : Sdlvideo.surface;
mutable current_image : Sdlvideo.surface;
mutable current_image_id : int;
image_list : string array;
font : Sdlttf.font;
mutable window_w : int;
mutable window_h : int;
mutable fit_ratio : float;
mutable mode : view_mode;
mutable text : text_type;
mutable offset : pos;
}