summaryrefslogtreecommitdiff
path: root/iup/srclua5/constants.lua
blob: 2a1e76fe8196eff6bb8c06608731d7a9b93a2917 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
-- This file is executed with the "iup" table already as the globalindex

----------------------------------------------------------------------------
--  Common return values              
----------------------------------------------------------------------------
iup.ERROR   =  1
iup.NOERROR =  0
iup.OPENED  = -1
iup.INVALID = -1

----------------------------------------------------------------------------
--  Callback return values              
----------------------------------------------------------------------------
iup.IGNORE   = -1
iup.DEFAULT  = -2
iup.CLOSE    = -3
iup.CONTINUE = -4

----------------------------------------------------------------------------
--  IupPopup e IupShowXY        
----------------------------------------------------------------------------
iup.CENTER       = 65535
iup.LEFT         = 65534
iup.RIGHT        = 65533
iup.MOUSEPOS     = 65532
iup.CURRENT      = 65531
iup.CENTERPARENT = 65530
iup.TOP = LEFT
iup.BOTTOM = RIGHT

----------------------------------------------------------------------------
--  Scrollbar
----------------------------------------------------------------------------
iup.SBUP      = 0  
iup.SBDN      = 1  
iup.SBPGUP    = 2  
iup.SBPGDN    = 3  
iup.SBPOSV    = 4  
iup.SBDRAGV   = 5  
iup.SBLEFT    = 6  
iup.SBRIGHT   = 7  
iup.SBPGLEFT  = 8  
iup.SBPGRIGHT = 9  
iup.SBPOSH    = 10 
iup.SBDRAGH   = 11 

----------------------------------------------------------------------------
--  SHOW_CB                      
----------------------------------------------------------------------------
iup.SHOW     = 0
iup.RESTORE  = 1
iup.MINIMIZE = 2
iup.MAXIMIZE = 3
iup.HIDE     = 4

----------------------------------------------------------------------------
--  BUTTON_CB        
----------------------------------------------------------------------------
iup.BUTTON1 = string.byte('1')
iup.BUTTON2 = string.byte('2')
iup.BUTTON3 = string.byte('3')
iup.BUTTON4 = string.byte('4')
iup.BUTTON5 = string.byte('5')

----------------------------------------------------------------------------
--  Pre-Defined Masks        
----------------------------------------------------------------------------
iup.MASK_FLOAT   = "[+/-]?(/d+/.?/d*|/./d+)"
iup.MASK_UFLOAT  = "(/d+/.?/d*|/./d+)"
iup.MASK_EFLOAT  = "[+/-]?(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?"
iup.MASK_INT     = "[+/-]?/d+"
iup.MASK_UINT    = "/d+"