ConstraintTargetRef

public struct ConstraintTargetRef : ConstraintTargetProtocol

The GtkConstraintTarget interface is implemented by objects that can be used as source or target in GtkConstraints.

Besides GtkWidget, it is also implemented by GtkConstraintGuide.

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

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

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

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

ConstraintTarget Interface