| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Clutter.Structs.Vertex
Description
A point in 3D space, expressed in pixels
Since: 0.4
Synopsis
- newtype Vertex = Vertex (ManagedPtr Vertex)
 - newZeroVertex :: MonadIO m => m Vertex
 - vertexAlloc :: (HasCallStack, MonadIO m) => m Vertex
 - vertexCopy :: (HasCallStack, MonadIO m) => Vertex -> m Vertex
 - vertexEqual :: (HasCallStack, MonadIO m) => Vertex -> Vertex -> m Bool
 - vertexFree :: (HasCallStack, MonadIO m) => Vertex -> m ()
 - vertexInit :: (HasCallStack, MonadIO m) => Vertex -> Float -> Float -> Float -> m Vertex
 - vertexNew :: (HasCallStack, MonadIO m) => Float -> Float -> Float -> m Vertex
 - getVertexX :: MonadIO m => Vertex -> m Float
 - setVertexX :: MonadIO m => Vertex -> Float -> m ()
 - getVertexY :: MonadIO m => Vertex -> m Float
 - setVertexY :: MonadIO m => Vertex -> Float -> m ()
 - getVertexZ :: MonadIO m => Vertex -> m Float
 - setVertexZ :: MonadIO m => Vertex -> Float -> m ()
 
Exported types
Memory-managed wrapper type.
Instances
| Eq Vertex Source # | |
| GBoxed Vertex Source # | |
Defined in GI.Clutter.Structs.Vertex  | |
| ManagedPtrNewtype Vertex Source # | |
Defined in GI.Clutter.Structs.Vertex Methods toManagedPtr :: Vertex -> ManagedPtr Vertex  | |
| TypedObject Vertex Source # | |
Defined in GI.Clutter.Structs.Vertex  | |
| HasParentTypes Vertex Source # | |
Defined in GI.Clutter.Structs.Vertex  | |
| tag ~ 'AttrSet => Constructible Vertex tag Source # | |
| IsGValue (Maybe Vertex) Source # | Convert   | 
Defined in GI.Clutter.Structs.Vertex Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Vertex -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Vertex)  | |
| type ParentTypes Vertex Source # | |
Defined in GI.Clutter.Structs.Vertex  | |
Methods
Click to display all available methods, including inherited ones
alloc
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Vertex | Returns: the newly allocated   | 
Allocates a new, empty Vertex.
Since: 1.12
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Vertex | 
  | 
| -> m Vertex | Returns: a newly allocated copy of   | 
Copies vertex
Since: 1.0
equal
Compares vertexA and vertexB for equality
Since: 1.0
free
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Vertex | 
  | 
| -> m () | 
Frees a Vertex allocated using vertexAlloc or
 vertexCopy.
Since: 1.0
init
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Vertex | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> m Vertex | Returns: the initialized   | 
Initializes vertex with the given coordinates.
Since: 1.10
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Float | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> m Vertex | Returns: the newly allocated   | 
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
setvertex [ #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
setvertex [ #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
setvertex [ #z:=value ]