gi-gdk4
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Objects.MemoryTexture

Description

A GdkTexture representing image data in memory.

Synopsis

Exported types

newtype MemoryTexture Source #

Memory-managed wrapper type.

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

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

HasAttributeList MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

(info ~ ResolveMemoryTextureMethod t MemoryTexture, OverloadedMethod info MemoryTexture p, HasField t MemoryTexture p) => HasField (t :: Symbol) MemoryTexture (p :: Type) Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

Methods

getField :: MemoryTexture -> p #

(info ~ ResolveMemoryTextureMethod t MemoryTexture, OverloadedMethodInfo info MemoryTexture) => IsLabel t (MethodProxy info MemoryTexture) Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

(info ~ ResolveMemoryTextureMethod t MemoryTexture, OverloadedMethod info MemoryTexture p) => IsLabel t (MemoryTexture -> p) Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

Methods

fromLabel :: MemoryTexture -> p #

IsGValue (Maybe MemoryTexture) Source #

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

Instance details

Defined in GI.Gdk.Objects.MemoryTexture

type AttributeList MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

type ParentTypes MemoryTexture Source # 
Instance details

Defined in GI.Gdk.Objects.MemoryTexture

type SignalList MemoryTexture Source # 
Instance details

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

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

type family ResolveMemoryTextureMethod (t :: Symbol) o where ... Source #

Equations

ResolveMemoryTextureMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveMemoryTextureMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveMemoryTextureMethod "computeConcreteSize" o = PaintableComputeConcreteSizeMethodInfo 
ResolveMemoryTextureMethod "download" o = TextureDownloadMethodInfo 
ResolveMemoryTextureMethod "equal" o = IconEqualMethodInfo 
ResolveMemoryTextureMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveMemoryTextureMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveMemoryTextureMethod "getv" o = ObjectGetvMethodInfo 
ResolveMemoryTextureMethod "hash" o = IconHashMethodInfo 
ResolveMemoryTextureMethod "invalidateContents" o = PaintableInvalidateContentsMethodInfo 
ResolveMemoryTextureMethod "invalidateSize" o = PaintableInvalidateSizeMethodInfo 
ResolveMemoryTextureMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveMemoryTextureMethod "load" o = LoadableIconLoadMethodInfo 
ResolveMemoryTextureMethod "loadAsync" o = LoadableIconLoadAsyncMethodInfo 
ResolveMemoryTextureMethod "loadFinish" o = LoadableIconLoadFinishMethodInfo 
ResolveMemoryTextureMethod "notify" o = ObjectNotifyMethodInfo 
ResolveMemoryTextureMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveMemoryTextureMethod "ref" o = ObjectRefMethodInfo 
ResolveMemoryTextureMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveMemoryTextureMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveMemoryTextureMethod "saveToPng" o = TextureSaveToPngMethodInfo 
ResolveMemoryTextureMethod "saveToPngBytes" o = TextureSaveToPngBytesMethodInfo 
ResolveMemoryTextureMethod "saveToTiff" o = TextureSaveToTiffMethodInfo 
ResolveMemoryTextureMethod "saveToTiffBytes" o = TextureSaveToTiffBytesMethodInfo 
ResolveMemoryTextureMethod "serialize" o = IconSerializeMethodInfo 
ResolveMemoryTextureMethod "snapshot" o = PaintableSnapshotMethodInfo 
ResolveMemoryTextureMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveMemoryTextureMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveMemoryTextureMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveMemoryTextureMethod "toString" o = IconToStringMethodInfo 
ResolveMemoryTextureMethod "unref" o = ObjectUnrefMethodInfo 
ResolveMemoryTextureMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveMemoryTextureMethod "getCurrentImage" o = PaintableGetCurrentImageMethodInfo 
ResolveMemoryTextureMethod "getData" o = ObjectGetDataMethodInfo 
ResolveMemoryTextureMethod "getFlags" o = PaintableGetFlagsMethodInfo 
ResolveMemoryTextureMethod "getFormat" o = TextureGetFormatMethodInfo 
ResolveMemoryTextureMethod "getHeight" o = TextureGetHeightMethodInfo 
ResolveMemoryTextureMethod "getIntrinsicAspectRatio" o = PaintableGetIntrinsicAspectRatioMethodInfo 
ResolveMemoryTextureMethod "getIntrinsicHeight" o = PaintableGetIntrinsicHeightMethodInfo 
ResolveMemoryTextureMethod "getIntrinsicWidth" o = PaintableGetIntrinsicWidthMethodInfo 
ResolveMemoryTextureMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveMemoryTextureMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveMemoryTextureMethod "getWidth" o = TextureGetWidthMethodInfo 
ResolveMemoryTextureMethod "setData" o = ObjectSetDataMethodInfo 
ResolveMemoryTextureMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveMemoryTextureMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveMemoryTextureMethod l o = MethodResolutionFailed l o :: Type 

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

-> CSize

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.