ConstraintGuideRef

public struct ConstraintGuideRef : ConstraintGuideProtocol, GWeakCapturing

A GtkConstraintGuide is an invisible layout element in a GtkConstraintLayout.

The GtkConstraintLayout treats guides like widgets. They can be used as the source or target of a GtkConstraint.

Guides have a minimum, maximum and natural size. Depending on the constraints that are applied, they can act like a guideline that widgets can be aligned to, or like flexible space.

Unlike a GtkWidget, a GtkConstraintGuide will not be drawn.

The ConstraintGuideRef type acts as a lightweight Swift reference to an underlying GtkConstraintGuide instance. It exposes methods that can operate on this data type through ConstraintGuideProtocol conformance. Use ConstraintGuideRef only as an unowned reference to an existing GtkConstraintGuide instance.

  • ptr
    Untyped pointer to the underlying `GtkConstraintGuide` instance.
    

    For type-safe access, use the generated, typed pointer constraint_guide_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

ConstraintGuide Class