ConstraintTargetProtocol
public protocol ConstraintTargetProtocol
The GtkConstraintTarget
interface is implemented by objects that
can be used as source or target in GtkConstraint
s.
Besides GtkWidget
, it is also implemented by GtkConstraintGuide
.
The ConstraintTargetProtocol
protocol exposes the methods and properties of an underlying GtkConstraintTarget
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see ConstraintTarget
.
Alternatively, use ConstraintTargetRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkConstraintTarget
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
constraint_target_ptr
Default implementationTyped pointer to the underlying
GtkConstraintTarget
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkConstraintTarget
instance.Declaration
Swift
var constraint_target_ptr: UnsafeMutablePointer<GtkConstraintTarget>! { get }
-
Required Initialiser for types conforming to
ConstraintTargetProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)