gi-clutter-1.0.2: 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.Vertex

Description

A point in 3D space, expressed in pixels

Since: 0.4

Synopsis

Exported types

newtype Vertex Source #

Memory-managed wrapper type.

Constructors

Vertex (ManagedPtr Vertex) 

Instances

Instances details
Eq Vertex Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

Methods

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

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

GBoxed Vertex Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

ManagedPtrNewtype Vertex Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

TypedObject Vertex Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

Methods

glibType :: IO GType #

HasParentTypes Vertex Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

tag ~ 'AttrSet => Constructible Vertex tag Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

Methods

new :: MonadIO m => (ManagedPtr Vertex -> Vertex) -> [AttrOp Vertex tag] -> m Vertex #

IsGValue (Maybe Vertex) Source #

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

Instance details

Defined in GI.Clutter.Structs.Vertex

type ParentTypes Vertex Source # 
Instance details

Defined in GI.Clutter.Structs.Vertex

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

newZeroVertex :: MonadIO m => m Vertex Source #

Construct a Vertex struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, equal, free, init.

Getters

None.

Setters

None.

alloc

vertexAlloc Source #

Arguments

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

Returns: the newly allocated Vertex. Use vertexFree to free its resources

Allocates a new, empty Vertex.

Since: 1.12

copy

vertexCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Vertex

vertex: a Vertex

-> m Vertex

Returns: a newly allocated copy of Vertex. Use vertexFree to free the allocated resources

Copies vertex

Since: 1.0

equal

vertexEqual Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Vertex

vertexA: a Vertex

-> Vertex

vertexB: a Vertex

-> m Bool

Returns: True if the passed Vertex are equal

Compares vertexA and vertexB for equality

Since: 1.0

free

vertexFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Vertex

vertex: a Vertex

-> m () 

Frees a Vertex allocated using vertexAlloc or vertexCopy.

Since: 1.0

init

vertexInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Vertex

vertex: a Vertex

-> Float

x: X coordinate

-> Float

y: Y coordinate

-> Float

z: Z coordinate

-> m Vertex

Returns: the initialized Vertex

Initializes vertex with the given coordinates.

Since: 1.10

new

vertexNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Float

x: X coordinate

-> Float

y: Y coordinate

-> Float

z: Z coordinate

-> m Vertex

Returns: the newly allocated Vertex. Use vertexFree to free the resources

Creates a new Vertex for the point in 3D space identified by the 3 coordinates x, y, z.

This function is the logical equivalent of:

 clutter_vertex_init (clutter_vertex_alloc (), x, y, z);

Since: 1.0

Properties

x

X coordinate of the vertex

getVertexX :: MonadIO m => Vertex -> m Float Source #

Get the value of the “x” field. When overloading is enabled, this is equivalent to

get vertex #x

setVertexX :: MonadIO m => Vertex -> Float -> m () Source #

Set the value of the “x” field. When overloading is enabled, this is equivalent to

set vertex [ #x := value ]

y

Y coordinate of the vertex

getVertexY :: MonadIO m => Vertex -> m Float Source #

Get the value of the “y” field. When overloading is enabled, this is equivalent to

get vertex #y

setVertexY :: MonadIO m => Vertex -> Float -> m () Source #

Set the value of the “y” field. When overloading is enabled, this is equivalent to

set vertex [ #y := value ]

z

Z coordinate of the vertex

getVertexZ :: MonadIO m => Vertex -> m Float Source #

Get the value of the “z” field. When overloading is enabled, this is equivalent to

get vertex #z

setVertexZ :: MonadIO m => Vertex -> Float -> m () Source #

Set the value of the “z” field. When overloading is enabled, this is equivalent to

set vertex [ #z := value ]