lib/gtk: renamed to gtk3_4
[nit.git] / lib / gtk3_4 / gdk_enums.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2011-2013 Alexis Laferrière <alexis.laf@xymus.net>
4 # Copyright 2013 Nathan Heu <heu.nathan@courrier.uqam.ca>
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 module gdk_enums
19
20 in "C Header" `{
21 #include <gtk/gtk.h>
22
23 `}
24
25 #enum GdkGravity
26 #Defines the reference point of a window and the meaning of coordinates passed to gtk_window_move().
27 #@https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkGravity
28 extern GdkGravity `{GdkGravity`}
29 #The reference point is at the top left corner.
30 new north_west `{ return GDK_GRAVITY_NORTH_WEST; `}
31
32 #The reference point is in the middle of the top edge.
33 new north `{ return GDK_GRAVITY_NORTH; `}
34
35 #The reference point is at the top right corner.
36 new north_east `{ return GDK_GRAVITY_NORTH_EAST; `}
37
38 #The reference point is at the middle of the left edge.
39 new west `{ return GDK_GRAVITY_WEST; `}
40
41 #The reference point is at the center of the window
42 new center `{ return GDK_GRAVITY_CENTER; `}
43
44 #The reference point is at the middle of the right edge.
45 new east `{ return GDK_GRAVITY_EAST; `}
46
47 #The reference point is at the lower left corner.
48 new south_west `{ return GDK_GRAVITY_SOUTH_WEST; `}
49
50 #The reference point is at the middle of the lower edge.
51 new south `{ return GDK_GRAVITY_SOUTH; `}
52
53 #The reference point is at the lower right corner.
54 new south_east `{ return GDK_GRAVITY_SOUTH_EAST; `}
55
56 #The reference point is at the top left corner of the window itself, ignoring window manager decorations.
57 new static `{ return GDK_GRAVITY_STATIC; `}
58 end
59
60 #enum GdkGWindowEdge
61 #Determines a window edge or corner.
62 #@https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkWindowEdge
63 extern GdkWindowEdge `{GdkWindowEdge`}
64 #The top left corner.
65 new north_west `{ return GDK_WINDOW_EDGE_NORTH_WEST; `}
66
67 #The top edge.
68 new north `{ return GDK_WINDOW_EDGE_NORTH; `}
69
70 #The top right corner.
71 new north_east `{ return GDK_WINDOW_EDGE_NORTH_EAST; `}
72
73 #The left edge.
74 new west `{ return GDK_WINDOW_EDGE_WEST; `}
75
76 #The right edge.
77 new east `{ return GDK_WINDOW_EDGE_EAST; `}
78
79 #The lower left corner.
80 new south_west `{ return GDK_WINDOW_EDGE_SOUTH_WEST; `}
81
82 #The lower edge.
83 new south `{ return GDK_WINDOW_EDGE_SOUTH; `}
84
85 #The lower right corner.
86 new south_east `{ return GDK_WINDOW_EDGE_SOUTH_EAST; `}
87 end
88