ConstraintAttribute

public extension ConstraintAttribute
  • Cast constructor, converting any binary integer to a ConstraintAttribute.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • No attribute, used for constant relations

    Declaration

    Swift

    static let none: GtkConstraintAttribute
  • The left edge of a widget, regardless of text direction

    Declaration

    Swift

    static let left: GtkConstraintAttribute
  • The right edge of a widget, regardless of text direction

    Declaration

    Swift

    static let right: GtkConstraintAttribute
  • top

    The top edge of a widget

    Declaration

    Swift

    static let top: GtkConstraintAttribute
  • The bottom edge of a widget

    Declaration

    Swift

    static let bottom: GtkConstraintAttribute
  • The leading edge of a widget, depending on text direction; equivalent to GTK_CONSTRAINT_ATTRIBUTE_LEFT for LTR languages, and GTK_CONSTRAINT_ATTRIBUTE_RIGHT for RTL ones

    Declaration

    Swift

    static let start: GtkConstraintAttribute
  • end

    The trailing edge of a widget, depending on text direction; equivalent to GTK_CONSTRAINT_ATTRIBUTE_RIGHT for LTR languages, and GTK_CONSTRAINT_ATTRIBUTE_LEFT for RTL ones

    Declaration

    Swift

    static let end: GtkConstraintAttribute
  • The width of a widget

    Declaration

    Swift

    static let width: GtkConstraintAttribute
  • The height of a widget

    Declaration

    Swift

    static let height: GtkConstraintAttribute
  • The center of a widget, on the horizontal axis

    Declaration

    Swift

    static let centerX: GtkConstraintAttribute
  • The center of a widget, on the vertical axis

    Declaration

    Swift

    static let centerY: GtkConstraintAttribute
  • The baseline of a widget

    Declaration

    Swift

    static let baseline: GtkConstraintAttribute