1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Copyright 2011-2013 Alexis Laferrière <alexis.laf@xymus.net>
4 # Copyright 2013 Nathan Heu <heu.nathan@courrier.uqam.ca>
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 module gdk_enums
is pkgconfig
("gtk+-3.0")
25 #Defines the reference point of a window and the meaning of coordinates passed to gtk_window_move().
26 #@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; `}
31 #The reference point is in the middle of the top edge.
32 new north
`{ return GDK_GRAVITY_NORTH; `}
34 #The reference point is at the top right corner.
35 new north_east `{ return GDK_GRAVITY_NORTH_EAST; `}
37 #The reference point is at the middle of the left edge.
38 new west
`{ return GDK_GRAVITY_WEST; `}
40 #The reference point is at the center of the window
41 new center `{ return GDK_GRAVITY_CENTER; `}
43 #The reference point is at the middle of the right edge.
44 new east
`{ return GDK_GRAVITY_EAST; `}
46 #The reference point is at the lower left corner.
47 new south_west `{ return GDK_GRAVITY_SOUTH_WEST; `}
49 #The reference point is at the middle of the lower edge.
50 new south
`{ return GDK_GRAVITY_SOUTH; `}
52 #The reference point is at the lower right corner.
53 new south_east `{ return GDK_GRAVITY_SOUTH_EAST; `}
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; `}
60 #Determines a window edge or corner.
61 #@https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkWindowEdge
62 extern class GdkWindowEdge `{GdkWindowEdge`}
64 new north_west
`{ return GDK_WINDOW_EDGE_NORTH_WEST; `}
67 new north `{ return GDK_WINDOW_EDGE_NORTH; `}
69 #The top right corner.
70 new north_east
`{ return GDK_WINDOW_EDGE_NORTH_EAST; `}
73 new west `{ return GDK_WINDOW_EDGE_WEST; `}
76 new east
`{ return GDK_WINDOW_EDGE_EAST; `}
78 #The lower left corner.
79 new south_west `{ return GDK_WINDOW_EDGE_SOUTH_WEST; `}
82 new south
`{ return GDK_WINDOW_EDGE_SOUTH; `}
84 #The lower right corner.
85 new south_east `{ return GDK_WINDOW_EDGE_SOUTH_EAST; `}