| 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.Gsk.Objects.TextureNode
Contents
Description
A render node for a GdkTexture.
Synopsis
- newtype TextureNode = TextureNode (ManagedPtr TextureNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf TextureNode o) => IsTextureNode o
- toTextureNode :: (MonadIO m, IsTextureNode o) => o -> m TextureNode
- textureNodeGetTexture :: (HasCallStack, MonadIO m, IsTextureNode a) => a -> m Texture
- textureNodeNew :: (HasCallStack, MonadIO m, IsTexture a) => a -> Rect -> m TextureNode
Exported types
newtype TextureNode Source #
Memory-managed wrapper type.
Constructors
| TextureNode (ManagedPtr TextureNode) |
Instances
| Eq TextureNode Source # | |
Defined in GI.Gsk.Objects.TextureNode | |
| BoxedPtr TextureNode Source # | |
Defined in GI.Gsk.Objects.TextureNode | |
| ManagedPtrNewtype TextureNode Source # | |
Defined in GI.Gsk.Objects.TextureNode Methods toManagedPtr :: TextureNode -> ManagedPtr TextureNode | |
| TypedObject TextureNode Source # | |
Defined in GI.Gsk.Objects.TextureNode | |
| HasParentTypes TextureNode Source # | |
Defined in GI.Gsk.Objects.TextureNode | |
| type ParentTypes TextureNode Source # | |
Defined in GI.Gsk.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.Gsk.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
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getNodeType, getTexture.
Setters
None.
getTexture
textureNodeGetTexture Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextureNode a) | |
| => a |
|
| -> m Texture | Returns: the |
Retrieves the GdkTexture used when creating this GskRenderNode.
new
Arguments
| :: (HasCallStack, MonadIO m, IsTexture a) | |
| => a |
|
| -> Rect |
|
| -> m TextureNode | Returns: A new |
Creates a GskRenderNode that will render the given
texture into the area given by bounds.
Note that GSK applies linear filtering when textures are
scaled and transformed. See TextureScaleNode
for a way to influence filtering.