/usr/lib/ocaml/labltk/canvas.mli is in liblabltk-ocaml-dev 8.06.0+dfsg-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | (***********************************************************************)
(* *)
(* MLTk, Tcl/Tk interface of OCaml *)
(* *)
(* Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis *)
(* projet Cristal, INRIA Rocquencourt *)
(* Jacques Garrigue, Kyoto University RIMS *)
(* *)
(* Copyright 2002 Institut National de Recherche en Informatique et *)
(* en Automatique and Kyoto University. All rights reserved. *)
(* This file is distributed under the terms of the GNU Library *)
(* General Public License, with the special exception on linking *)
(* described in file LICENSE found in the OCaml source tree. *)
(* *)
(***********************************************************************)
(* The canvas widget *)
open StdLabels
open Tk
open Tkintf
open Widget
open Textvariable
val create :
?name:string ->
?background:color ->
?borderwidth:int ->
?closeenough:float ->
?confine:bool ->
?cursor:cursor ->
?height:int ->
?highlightbackground:color ->
?highlightcolor:color ->
?highlightthickness:int ->
?insertbackground:color ->
?insertborderwidth:int ->
?insertofftime:int ->
?insertontime:int ->
?insertwidth:int ->
?relief:relief ->
?scrollregion:(int * int * int * int) ->
?selectbackground:color ->
?selectborderwidth:int ->
?selectforeground:color ->
?takefocus:bool ->
?width:int ->
?xscrollcommand:(first:float -> last:float -> unit) ->
?xscrollincrement:int ->
?yscrollcommand:(first:float -> last:float -> unit) ->
?yscrollincrement:int ->
'a widget -> canvas widget
(** [create ?name parent options...] creates a new widget with
parent [parent] and new patch component [name], if specified. *)
val addtag : canvas widget -> tag:string -> specs:searchSpec list -> unit
val bbox : canvas widget -> tagOrId list -> int * int * int * int
val canvasx : x:int -> ?spacing:int -> canvas widget -> float
val canvasy : y:int -> ?spacing:int -> canvas widget -> float
val configure : ?background:color ->
?borderwidth:int ->
?closeenough:float ->
?confine:bool ->
?cursor:cursor ->
?height:int ->
?highlightbackground:color ->
?highlightcolor:color ->
?highlightthickness:int ->
?insertbackground:color ->
?insertborderwidth:int ->
?insertofftime:int ->
?insertontime:int ->
?insertwidth:int ->
?relief:relief ->
?scrollregion:(int*int*int*int) ->
?selectbackground:color ->
?selectborderwidth:int ->
?selectforeground:color ->
?takefocus:bool ->
?width:int ->
?xscrollcommand:(first:float -> last:float -> unit) ->
?xscrollincrement:int ->
?yscrollcommand:(first:float -> last:float -> unit) ->
?yscrollincrement:int -> canvas widget -> unit
val configure_arc : ?dash:string ->
?extent:float ->
?fill:color ->
?outline:color ->
?outlinestipple:bitmap ->
?start:float ->
?stipple:bitmap ->
?style:arcStyle ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId -> unit
val configure_bitmap : ?anchor:anchor ->
?background:color ->
?bitmap:bitmap ->
?foreground:color ->
?tags:string list -> canvas widget -> tagOrId -> unit
val configure_get : canvas widget -> string
val configure_image : ?anchor:anchor ->
?image:[< image] ->
?tags:string list -> canvas widget -> tagOrId -> unit
val configure_line : ?arrow:arrowStyle ->
?arrowshape:(int*int*int) ->
?capstyle:capStyle ->
?dash:string ->
?fill:color ->
?joinstyle:joinStyle ->
?smooth:bool ->
?splinesteps:int ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId -> unit
val configure_oval : ?dash:string ->
?fill:color ->
?outline:color ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId -> unit
val configure_polygon : ?dash:string ->
?fill:color ->
?outline:color ->
?smooth:bool ->
?splinesteps:int ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId -> unit
val configure_rectangle : ?dash:string ->
?fill:color ->
?outline:color ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId -> unit
val configure_text : ?anchor:anchor ->
?fill:color ->
?font:string ->
?justify:justification ->
?state:canvasTextState ->
?stipple:bitmap ->
?tags:string list ->
?text:string ->
?width:int -> canvas widget -> tagOrId -> unit
val configure_window : ?anchor:anchor ->
?dash:string ->
?height:int ->
?tags:string list ->
?width:int ->
?window:'a widget -> canvas widget -> tagOrId -> unit
val coords_get : canvas widget -> tagOrId -> float list
val coords_set : canvas widget -> tagOrId -> xys:(int * int) list -> unit
val create_arc : x1:int -> y1:int -> x2:int -> y2:int -> ?dash:string ->
?extent:float ->
?fill:color ->
?outline:color ->
?outlinestipple:bitmap ->
?start:float ->
?stipple:bitmap ->
?style:arcStyle ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId
val create_bitmap : x:int -> y:int -> ?anchor:anchor ->
?background:color ->
?bitmap:bitmap ->
?foreground:color ->
?tags:string list -> canvas widget -> tagOrId
val create_image : x:int -> y:int -> ?anchor:anchor ->
?image:[< image] ->
?tags:string list -> canvas widget -> tagOrId
val create_line : xys:(int * int) list -> ?arrow:arrowStyle ->
?arrowshape:(int*int*int) ->
?capstyle:capStyle ->
?dash:string ->
?fill:color ->
?joinstyle:joinStyle ->
?smooth:bool ->
?splinesteps:int ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId
val create_oval : x1:int -> y1:int -> x2:int -> y2:int -> ?dash:string ->
?fill:color ->
?outline:color ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId
val create_polygon : xys:(int * int) list -> ?dash:string ->
?fill:color ->
?outline:color ->
?smooth:bool ->
?splinesteps:int ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId
val create_rectangle : x1:int -> y1:int -> x2:int -> y2:int -> ?dash:string ->
?fill:color ->
?outline:color ->
?stipple:bitmap ->
?tags:string list ->
?width:int -> canvas widget -> tagOrId
val create_text : x:int -> y:int -> ?anchor:anchor ->
?fill:color ->
?font:string ->
?justify:justification ->
?state:canvasTextState ->
?stipple:bitmap ->
?tags:string list ->
?text:string ->
?width:int -> canvas widget -> tagOrId
val create_window : x:int -> y:int -> ?anchor:anchor ->
?dash:string ->
?height:int ->
?tags:string list ->
?width:int ->
?window:'a widget -> canvas widget -> tagOrId
val dchars : canvas widget -> tagOrId -> first:canvas_index -> last:canvas_index -> unit
val delete : canvas widget -> tagOrId list -> unit
val dtag : canvas widget -> tagOrId -> tag:string -> unit
val find : canvas widget -> specs:searchSpec list -> tagOrId list
val focus : canvas widget -> tagOrId -> unit
val focus_get : canvas widget -> tagOrId
val focus_reset : canvas widget -> unit
val gettags : canvas widget -> tagOrId -> string list
val icursor : canvas widget -> tagOrId -> index:canvas_index -> unit
val index : canvas widget -> tagOrId -> index:canvas_index -> int
val insert : canvas widget -> tagOrId -> before:canvas_index -> text:string -> unit
val itemconfigure_get : canvas widget -> tagOrId -> string
val lower : ?below:tagOrId -> canvas widget -> tagOrId -> unit
val move : canvas widget -> tagOrId -> x:int -> y:int -> unit
(* unsafe *)
val postscript : ?colormode:colorMode ->
?file:string ->
?height:int ->
?pageanchor:anchor ->
?pageheight:int ->
?pagewidth:int ->
?pagex:int ->
?pagey:int ->
?rotate:bool ->
?width:int ->
?x:int ->
?y:int -> canvas widget -> string
(* /unsafe *)
val raise : ?above:tagOrId -> canvas widget -> tagOrId -> unit
val scale : canvas widget -> tagOrId -> xorigin:int -> yorigin:int -> xscale:float -> yscale:float -> unit
val scan_dragto : canvas widget -> x:int -> y:int -> unit
val scan_mark : canvas widget -> x:int -> y:int -> unit
val select_adjust : canvas widget -> tagOrId -> index:canvas_index -> unit
val select_clear : canvas widget -> unit
val select_from : canvas widget -> tagOrId -> index:canvas_index -> unit
val select_item : canvas widget -> tagOrId
val select_to : canvas widget -> tagOrId -> index:canvas_index -> unit
val typeof : canvas widget -> tagOrId -> canvasItem
val xview : canvas widget -> scroll:scrollValue -> unit
val xview_get : canvas widget -> float * float
val yview : canvas widget -> scroll:scrollValue -> unit
val yview_get : canvas widget -> float * float
val bind :
events: event list ->
?extend: bool ->
?breakable: bool ->
?fields: eventField list ->
?action: (eventInfo -> unit) ->
canvas widget -> tagOrId -> unit
|