Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype MemoryTexture = MemoryTexture (ManagedPtr MemoryTexture)
- class (GObject o, IsDescendantOf MemoryTexture o) => IsMemoryTexture o
- toMemoryTexture :: (MonadIO m, IsMemoryTexture o) => o -> m MemoryTexture
- noMemoryTexture :: Maybe MemoryTexture
- memoryTextureNew :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> MemoryFormat -> Bytes -> Word64 -> m MemoryTexture
Exported types
newtype MemoryTexture Source #
Memory-managed wrapper type.
Instances
Eq MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture (==) :: MemoryTexture -> MemoryTexture -> Bool # (/=) :: MemoryTexture -> MemoryTexture -> Bool # | |
GObject MemoryTexture Source # | |
Defined in GI.Gdk.Objects.MemoryTexture gobjectType :: IO GType # | |
IsGValue MemoryTexture Source # | Convert |
Defined in GI.Gdk.Objects.MemoryTexture toGValue :: MemoryTexture -> IO GValue # fromGValue :: GValue -> IO MemoryTexture # | |
HasParentTypes MemoryTexture Source # | |
Defined in GI.Gdk.Objects.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
.
noMemoryTexture :: Maybe MemoryTexture Source #
A convenience alias for Nothing
:: Maybe
MemoryTexture
.
Methods
Overloaded methods
new
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> MemoryFormat |
|
-> Bytes |
|
-> Word64 |
|
-> m MemoryTexture | Returns: A newly-created |
Creates a new texture for a blob of image data.
The Bytes
must contain stride
x height
pixels
in the given format.