Structures
The following structures are available globally.
-
Undocumented
See moreDeclaration
Swift
public struct Color : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct Colors
-
Describes pixel dimensions and encoding.
Bitmap
,Image
,Pixmap
, andSurface
can be created fromImageInfo
.ImageInfo
can be retrieved fromBitmap
andPixmap
, but not fromImage
andSurface
. For example,Image
andSurface
implementations may defer pixel depth, so may not completely specifyImageInfo
.
See moreImageInfo
contains dimensions, the pixel integral width and height. It encodes how pixel bits describe alpha, transparency; color components red, blue, and green; andColorSpace
, the range and linearity of colors.Declaration
Swift
public struct ImageInfo
-
Undocumented
See moreDeclaration
Swift
public struct Point : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct IPoint : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct Rect : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct IRect : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct Size : Equatable
-
Undocumented
See moreDeclaration
Swift
public struct ISize : Equatable
-
Matrix
holds a 3x3 matrix for transforming coordinates. This allows mappingPoint
and vectors with translation, scaling, skewing, rotation, and perspective.Matrix
elements are in row major order.Matrix
does not have a constructor, so it must be explicitly initialized. setIdentity() initializesMatrix
so it has no effect. setTranslate(), setScale(), setew
(), setRotate(), set9 and setAll() initializes allMatrix
elements with the corresponding mapping.Matrix
includes a hidden variable that classifies the type of matrix to improve performance.Matrix
is not thread safe unless getType() is called first.You can either create the matrix by using one of the constuctors, or using some of the convenience static methods that start with
See moremake
Declaration
Swift
public struct Matrix