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.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
- 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
Eq MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture Methods (==) :: MemoryTexture -> MemoryTexture -> Bool # (/=) :: MemoryTexture -> MemoryTexture -> Bool # | |
GObject MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture | |
ManagedPtrNewtype MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture Methods toManagedPtr :: MemoryTexture -> ManagedPtr MemoryTexture | |
TypedObject MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture | |
HasParentTypes MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture | |
IsGValue (Maybe MemoryTexture) Source # | Convert |
Defined in GI.Gdk.Objects.MemoryTexture Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe MemoryTexture -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe MemoryTexture) | |
type ParentTypes MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture |
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
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.