gi-clutter-1.0.5: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Structs.Matrix

Description

A type representing a 4x4 matrix.

It is identicaly to Matrix.

Since: 1.12

Synopsis

Exported types

newtype Matrix Source #

Memory-managed wrapper type.

Constructors

Matrix (ManagedPtr Matrix) 

Instances

Instances details
Eq Matrix Source # 
Instance details

Defined in GI.Clutter.Structs.Matrix

Methods

(==) :: Matrix -> Matrix -> Bool #

(/=) :: Matrix -> Matrix -> Bool #

GBoxed Matrix Source # 
Instance details

Defined in GI.Clutter.Structs.Matrix

ManagedPtrNewtype Matrix Source # 
Instance details

Defined in GI.Clutter.Structs.Matrix

Methods

toManagedPtr :: Matrix -> ManagedPtr Matrix

TypedObject Matrix Source # 
Instance details

Defined in GI.Clutter.Structs.Matrix

Methods

glibType :: IO GType

HasParentTypes Matrix Source # 
Instance details

Defined in GI.Clutter.Structs.Matrix

IsGValue (Maybe Matrix) Source #

Convert Matrix to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Structs.Matrix

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Matrix -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Matrix)

type ParentTypes Matrix Source # 
Instance details

Defined in GI.Clutter.Structs.Matrix

type ParentTypes Matrix = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

free, initFromArray, initFromMatrix, initIdentity.

Getters

None.

Setters

None.

alloc

matrixAlloc Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Matrix

Returns: the newly allocated Matrix

Allocates enough memory to hold a Matrix.

Since: 1.12

free

matrixFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Matrix

matrix: a Matrix

-> m () 

Frees the memory allocated by matrixAlloc.

Since: 1.12

initFromArray

matrixInitFromArray Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Matrix

matrix: a Matrix

-> [Float]

values: a C array of 16 floating point values, representing a 4x4 matrix, with column-major order

-> m Matrix

Returns: the initialzed Matrix

Initializes matrix with the contents of a C array of floating point values.

Since: 1.12

initFromMatrix

matrixInitFromMatrix Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Matrix

a: the Matrix to initialize

-> Matrix

b: the Matrix to copy

-> m Matrix

Returns: the initialized Matrix

Initializes the Matrix a with the contents of the Matrix b.

Since: 1.12

initIdentity

matrixInitIdentity Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Matrix

matrix: a Matrix

-> m Matrix

Returns: the initialized Matrix

Initializes matrix with the identity matrix, i.e.:

 .xx = 1.0, .xy = 0.0, .xz = 0.0, .xw = 0.0
 .yx = 0.0, .yy = 1.0, .yz = 0.0, .yw = 0.0
 .zx = 0.0, .zy = 0.0, .zz = 1.0, .zw = 0.0
 .wx = 0.0, .wy = 0.0, .wz = 0.0, .ww = 1.0

Since: 1.12