RectangleProtocol
public protocol RectangleProtocol
A data structure for holding a rectangle. Those coordinates are relative to the component top-level parent.
The RectangleProtocol protocol exposes the methods and properties of an underlying AtkRectangle 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 Rectangle.
Alternatively, use RectangleRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkRectangleinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
rectangle_ptrDefault implementationTyped pointer to the underlying
AtkRectangleinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkRectangleinstance.Declaration
Swift
var rectangle_ptr: UnsafeMutablePointer<AtkRectangle>! { get } -
Required Initialiser for types conforming to
RectangleProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
xExtension methodX coordinate of the left side of the rectangle.
Declaration
Swift
@inlinable var x: gint { get set } -
yExtension methodY coordinate of the top side of the rectangle.
Declaration
Swift
@inlinable var y: gint { get set } -
widthExtension methodwidth of the rectangle.
Declaration
Swift
@inlinable var width: gint { get set } -
heightExtension methodheight of the rectangle.
Declaration
Swift
@inlinable var height: gint { get set }
View on GitHub
Install in Dash
RectangleProtocol Protocol Reference