My agentic slop goes here. Not intended for anyone else!
1(** Kitty Graphics Protocol - Placement *)
2
3type t = {
4 source_x : int option;
5 source_y : int option;
6 source_width : int option;
7 source_height : int option;
8 cell_x_offset : int option;
9 cell_y_offset : int option;
10 columns : int option;
11 rows : int option;
12 z_index : int option;
13 placement_id : int option;
14 cursor : Kgp_types.cursor option;
15 unicode_placeholder : bool;
16}
17
18val empty : t
19(** Empty placement with all defaults. *)
20
21val make :
22 ?source_x:int ->
23 ?source_y:int ->
24 ?source_width:int ->
25 ?source_height:int ->
26 ?cell_x_offset:int ->
27 ?cell_y_offset:int ->
28 ?columns:int ->
29 ?rows:int ->
30 ?z_index:int ->
31 ?placement_id:int ->
32 ?cursor:Kgp_types.cursor ->
33 ?unicode_placeholder:bool ->
34 unit ->
35 t
36(** Create a placement configuration.
37
38 @param source_x Left edge of source rectangle in pixels (default 0)
39 @param source_y Top edge of source rectangle in pixels (default 0)
40 @param source_width Width of source rectangle (default: full width)
41 @param source_height Height of source rectangle (default: full height)
42 @param cell_x_offset X offset within the first cell in pixels
43 @param cell_y_offset Y offset within the first cell in pixels
44 @param columns Number of columns to display over (scales image)
45 @param rows Number of rows to display over (scales image)
46 @param z_index Stacking order (negative = under text)
47 @param placement_id Unique ID for this placement
48 @param cursor Cursor movement policy after display
49 @param unicode_placeholder Create virtual placement for Unicode mode *)