gi-gdk-4.0.5: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Objects.MemoryTexture

Description

A GdkTexture representing image data in memory.

Synopsis

Exported types

newtype MemoryTexture Source #

Memory-managed wrapper type.

Constructors

MemoryTexture (ManagedPtr MemoryTexture) 

Instances

Instances details
Eq MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

GObject MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

ManagedPtrNewtype MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

Methods

toManagedPtr :: MemoryTexture -> ManagedPtr MemoryTexture

TypedObject MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

Methods

glibType :: IO GType

HasParentTypes MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

IsGValue (Maybe MemoryTexture) Source #

Convert MemoryTexture to and from GValue. See toGValue and fromGValue.

Instance details

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 # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

type ParentTypes MemoryTexture = '[Texture, Object, Paintable, Icon, LoadableIcon]

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

Instances details
(GObject o, IsDescendantOf MemoryTexture o) => IsMemoryTexture o Source # 
Instance details

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

new

memoryTextureNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

width: the width of the texture

-> Int32

height: the height of the texture

-> MemoryFormat

format: the format of the data

-> Bytes

bytes: the GBytes containing the pixel data

-> Word64

stride: rowstride for the data

-> m MemoryTexture

Returns: A newly-created GdkTexture

Creates a new texture for a blob of image data.

The GBytes must contain stride × height pixels in the given format.