| 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.Objects.TextureNode
Contents
Description
The TextNode structure is an opaque
 type whose members cannot be directly accessed.
Since: 1.10
Synopsis
- newtype TextureNode = TextureNode (ManagedPtr TextureNode)
 - class (BoxedPtr o, TypedObject o, IsDescendantOf TextureNode o) => IsTextureNode o
 - toTextureNode :: (MonadIO m, IsTextureNode o) => o -> m TextureNode
 - textureNodeNew :: (HasCallStack, MonadIO m, IsTexture a) => a -> Maybe Color -> ScalingFilter -> ScalingFilter -> m PaintNode
 
Exported types
newtype TextureNode Source #
Memory-managed wrapper type.
Constructors
| TextureNode (ManagedPtr TextureNode) | 
Instances
| Eq TextureNode Source # | |
Defined in GI.Clutter.Objects.TextureNode  | |
| BoxedPtr TextureNode Source # | |
Defined in GI.Clutter.Objects.TextureNode  | |
| ManagedPtrNewtype TextureNode Source # | |
Defined in GI.Clutter.Objects.TextureNode Methods toManagedPtr :: TextureNode -> ManagedPtr TextureNode  | |
| TypedObject TextureNode Source # | |
Defined in GI.Clutter.Objects.TextureNode  | |
| HasParentTypes TextureNode Source # | |
Defined in GI.Clutter.Objects.TextureNode  | |
| type ParentTypes TextureNode Source # | |
Defined in GI.Clutter.Objects.TextureNode  | |
class (BoxedPtr o, TypedObject o, IsDescendantOf TextureNode o) => IsTextureNode o Source #
Type class for types which can be safely cast to TextureNode, for instance with toTextureNode.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf TextureNode o) => IsTextureNode o Source # | |
Defined in GI.Clutter.Objects.TextureNode  | |
toTextureNode :: (MonadIO m, IsTextureNode o) => o -> m TextureNode Source #
Cast to TextureNode, for types for which this is known to be safe. For general casts, use castTo.
Methods
Click to display all available methods, including inherited ones
new
Arguments
| :: (HasCallStack, MonadIO m, IsTexture a) | |
| => a | 
  | 
| -> Maybe Color | |
| -> ScalingFilter | 
  | 
| -> ScalingFilter | 
  | 
| -> m PaintNode | Returns: the newly created   | 
Creates a new PaintNode that will paint the passed texture.
This function will take a reference on texture, so it is safe to
 call cogl_object_unref() on texture when it returns.
The color must not be pre-multiplied with its Color.alpha
 channel value; if color is Nothing, a fully opaque white color will
 be used for blending.
Since: 1.10