-
Cast constructor, converting any binary integer to a
Gravity
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
the reference point is at the top left corner.
Declaration
Swift
static let northWest: GdkGravity
-
the reference point is in the middle of the top edge.
Declaration
Swift
static let north: GdkGravity
-
the reference point is at the top right corner.
Declaration
Swift
static let northEast: GdkGravity
-
the reference point is at the middle of the left edge.
Declaration
Swift
static let west: GdkGravity
-
the reference point is at the center of the surface.
Declaration
Swift
static let center: GdkGravity
-
the reference point is at the middle of the right edge.
Declaration
Swift
static let east: GdkGravity
-
the reference point is at the lower left corner.
Declaration
Swift
static let southWest: GdkGravity
-
the reference point is at the middle of the lower edge.
Declaration
Swift
static let south: GdkGravity
-
the reference point is at the lower right corner.
Declaration
Swift
static let southEast: GdkGravity
-
the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
Declaration
Swift
static let `static`: GdkGravity