Merge: nitx: start migration to `doc_phases`
[nit.git] / lib / gtk / v3_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 is pkgconfig "gtk+-3.0"
19
20 in "C Header" `{
21 #include <gtk/gtk.h>
22 `}
23
24 # enum GdkGravity
25 # Defines the reference point of a window and the meaning of coordinates passed to gtk_window_move().
26 # See: https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkGravity
27 extern class GdkGravity `{GdkGravity`}
28 # The reference point is at the top left corner.
29 new north_west `{ return GDK_GRAVITY_NORTH_WEST; `}
30
31 # The reference point is in the middle of the top edge.
32 new north `{ return GDK_GRAVITY_NORTH; `}
33
34 # The reference point is at the top right corner.
35 new north_east `{ return GDK_GRAVITY_NORTH_EAST; `}
36
37 # The reference point is at the middle of the left edge.
38 new west `{ return GDK_GRAVITY_WEST; `}
39
40 # The reference point is at the center of the window
41 new center `{ return GDK_GRAVITY_CENTER; `}
42
43 # The reference point is at the middle of the right edge.
44 new east `{ return GDK_GRAVITY_EAST; `}
45
46 # The reference point is at the lower left corner.
47 new south_west `{ return GDK_GRAVITY_SOUTH_WEST; `}
48
49 # The reference point is at the middle of the lower edge.
50 new south `{ return GDK_GRAVITY_SOUTH; `}
51
52 # The reference point is at the lower right corner.
53 new south_east `{ return GDK_GRAVITY_SOUTH_EAST; `}
54
55 # The reference point is at the top left corner of the window itself, ignoring window manager decorations.
56 new static `{ return GDK_GRAVITY_STATIC; `}
57 end
58
59 # enum GdkGWindowEdge
60 # Determines a window edge or corner.
61 # See: https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkWindowEdge
62 extern class GdkWindowEdge `{GdkWindowEdge`}
63 # The top left corner.
64 new north_west `{ return GDK_WINDOW_EDGE_NORTH_WEST; `}
65
66 # The top edge.
67 new north `{ return GDK_WINDOW_EDGE_NORTH; `}
68
69 # The top right corner.
70 new north_east `{ return GDK_WINDOW_EDGE_NORTH_EAST; `}
71
72 # The left edge.
73 new west `{ return GDK_WINDOW_EDGE_WEST; `}
74
75 # The right edge.
76 new east `{ return GDK_WINDOW_EDGE_EAST; `}
77
78 # The lower left corner.
79 new south_west `{ return GDK_WINDOW_EDGE_SOUTH_WEST; `}
80
81 # The lower edge.
82 new south `{ return GDK_WINDOW_EDGE_SOUTH; `}
83
84 # The lower right corner.
85 new south_east `{ return GDK_WINDOW_EDGE_SOUTH_EAST; `}
86 end
87