AnchorHints
public struct AnchorHints : OptionSet
Positioning hints for aligning a surface relative to a rectangle.
These hints determine how the surface should be positioned in the case that the surface would fall off-screen if placed in its ideal position.
For example, GDK_ANCHOR_FLIP_X
will replace GDK_GRAVITY_NORTH_WEST
with
GDK_GRAVITY_NORTH_EAST
and vice versa if the surface extends beyond the left
or right edges of the monitor.
If GDK_ANCHOR_SLIDE_X
is set, the surface can be shifted horizontally to fit
on-screen. If GDK_ANCHOR_RESIZE_X
is set, the surface can be shrunken
horizontally to fit.
In general, when multiple flags are set, flipping should take precedence over sliding, which should take precedence over resizing.
-
The corresponding value of the raw type
Declaration
Swift
public var rawValue: UInt32
-
The equivalent raw Int value
Declaration
Swift
@inlinable public var intValue: Int { get set }
-
The equivalent raw
gint
valueDeclaration
Swift
@inlinable public var int: gint { get set }
-
The equivalent underlying
GdkAnchorHints
enum valueDeclaration
Swift
@inlinable public var value: GdkAnchorHints { get set }
-
Creates a new instance with the specified raw value
Declaration
Swift
@inlinable public init(rawValue: UInt32)
-
Creates a new instance with the specified
GdkAnchorHints
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GdkAnchorHints)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
allow flipping anchors horizontally
Declaration
Swift
public static let flipX: AnchorHints
-
allow flipping anchors vertically
Declaration
Swift
public static let flipY: AnchorHints
-
allow sliding surface horizontally
Declaration
Swift
public static let slideX: AnchorHints
-
allow sliding surface vertically
Declaration
Swift
public static let slideY: AnchorHints
-
allow resizing surface horizontally
Declaration
Swift
public static let resizeX: AnchorHints
-
allow resizing surface vertically
Declaration
Swift
public static let resizeY: AnchorHints
-
allow flipping anchors on both axes
Declaration
Swift
public static let flip: AnchorHints
-
allow sliding surface on both axes
Declaration
Swift
public static let slide: AnchorHints
-
allow resizing surface on both axes
Declaration
Swift
public static let resize: AnchorHints