enum Gdk::Gravity

Overview

Defines the reference point of a surface and is used in Gdk::PopupLayout.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/gdk.cr

Enum Members

NorthWest = 1_u32

the reference point is at the top left corner.

North = 2_u32

the reference point is in the middle of the top edge.

NorthEast = 3_u32

the reference point is at the top right corner.

West = 4_u32

the reference point is at the middle of the left edge.

Center = 5_u32

the reference point is at the center of the surface.

East = 6_u32

the reference point is at the middle of the right edge.

SouthWest = 7_u32

the reference point is at the lower left corner.

South = 8_u32

the reference point is at the middle of the lower edge.

SouthEast = 9_u32

the reference point is at the lower right corner.

Static = 10_u32

the reference point is at the top left corner of the surface itself, ignoring window manager decorations.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def center? #

def east? #

def north? #

def north_east? #

def north_west? #

def south? #

def south_east? #

def south_west? #

def static? #

def west? #