Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gdk.Objects.MemoryTexture
Contents
Description
A GdkTexture
representing image data in memory.
Synopsis
- newtype MemoryTexture = MemoryTexture (ManagedPtr MemoryTexture)
- class (GObject o, IsDescendantOf MemoryTexture o) => IsMemoryTexture o
- toMemoryTexture :: (MonadIO m, IsMemoryTexture o) => o -> m MemoryTexture
- type family ResolveMemoryTextureMethod (t :: Symbol) o where ...
- memoryTextureNew :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> MemoryFormat -> Bytes -> CSize -> m MemoryTexture
Exported types
newtype MemoryTexture Source #
Memory-managed wrapper type.
Constructors
MemoryTexture (ManagedPtr MemoryTexture) |
Instances
class (GObject o, IsDescendantOf MemoryTexture o) => IsMemoryTexture o Source #
Type class for types which can be safely cast to MemoryTexture
, for instance with toMemoryTexture
.
Instances
(GObject o, IsDescendantOf MemoryTexture o) => IsMemoryTexture o Source # | |
Defined in GI.Gdk.Objects.MemoryTexture |
toMemoryTexture :: (MonadIO m, IsMemoryTexture o) => o -> m MemoryTexture Source #
Cast to MemoryTexture
, 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
bindProperty, bindPropertyFull, computeConcreteSize, download, equal, forceFloating, freezeNotify, getv, hash, invalidateContents, invalidateSize, isFloating, load, loadAsync, loadFinish, notify, notifyByPspec, ref, refSink, runDispose, saveToPng, saveToPngBytes, saveToTiff, saveToTiffBytes, serialize, snapshot, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getCurrentImage, getData, getFlags, getFormat, getHeight, getIntrinsicAspectRatio, getIntrinsicHeight, getIntrinsicWidth, getProperty, getQdata, getWidth.
Setters
type family ResolveMemoryTextureMethod (t :: Symbol) o where ... Source #
Equations
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> MemoryFormat |
|
-> Bytes |
|
-> CSize |
|
-> m MemoryTexture | Returns: A newly-created |
Creates a new texture for a blob of image data.
The GBytes
must contain stride
× height
pixels
in the given format.