summaryrefslogtreecommitdiff
path: root/otherlibs/labltk/builtin/builtin_index.ml
blob: 917ac410a38899e7b5ecc0309d9db1b9f1fc0704 (plain)
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
(* Various indexes
    canvas
    entry
    listbox
*)

type canvas_index = [
    `Num(int)		
  | `End		        
  | `Insert		
  | `Selfirst		
  | `Sellast		
  | `Atxy(int * int)         
]

type entry_index = [
    `Num(int)		
  | `End
  | `Insert		
  | `Selfirst		
  | `Sellast		
  | `At(int)
  | `Anchor
]

type listbox_index = [
    `Num(int)		
  | `Active
  | `Anchor
  | `End
  | `Atxy(int * int)
]

type menu_index = [
    `Num(int)		
  | `Active
  | `End
  | `Last			
  | `None		
  | `At(int)
  | `Pattern(string)
]

type text_index = [
    `Linechar(int * int)   
  | `Atxy(int * int)
  | `End
  | `Mark(string)
  | `Tagfirst(string)
  | `Taglast(string)
  | `Window(any widget)
  | `Image(string) 
]

type linechar_index = int * int
type num_index = int