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
AtkRectangle
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
rectangle_ptr
Default implementationTyped pointer to the underlying
AtkRectangle
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkRectangle
instance.Declaration
Swift
var rectangle_ptr: UnsafeMutablePointer<AtkRectangle>! { get }
-
Required Initialiser for types conforming to
RectangleProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
x
Extension methodX coordinate of the left side of the rectangle.
Declaration
Swift
@inlinable var x: gint { get set }
-
y
Extension methodY coordinate of the top side of the rectangle.
Declaration
Swift
@inlinable var y: gint { get set }
-
width
Extension methodwidth of the rectangle.
Declaration
Swift
@inlinable var width: gint { get set }
-
height
Extension methodheight of the rectangle.
Declaration
Swift
@inlinable var height: gint { get set }