gi-gdk-4.0.4: 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

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 x height pixels in the given format.