Table of Contents

Class MemoryTexture

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class MemoryTexture : Texture, IObject, INotifyPropertyChanged, IDisposable, Paintable, Icon, LoadableIcon, IHandle, GTypeProvider
Inheritance
MemoryTexture
Implements
Inherited Members

Constructors

MemoryTexture(bool, params ConstructArgument[])

protected MemoryTexture(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

MemoryTexture(IntPtr, bool)

protected MemoryTexture(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Methods

ComputeConcreteSize(double, double, double, double, out double, out double)

public void ComputeConcreteSize(double specifiedWidth, double specifiedHeight, double defaultWidth, double defaultHeight, out double concreteWidth, out double concreteHeight)

Parameters

specifiedWidth double
specifiedHeight double
defaultWidth double
defaultHeight double
concreteWidth double
concreteHeight double

Equal(Icon?)

public bool Equal(Icon? icon2)

Parameters

icon2 Icon

Returns

bool

GetCurrentImage()

public Paintable GetCurrentImage()

Returns

Paintable

GetFlags()

public PaintableFlags GetFlags()

Returns

PaintableFlags

GetGType()

public static Type GetGType()

Returns

Type

GetIntrinsicAspectRatio()

public double GetIntrinsicAspectRatio()

Returns

double

GetIntrinsicHeight()

public int GetIntrinsicHeight()

Returns

int

GetIntrinsicWidth()

public int GetIntrinsicWidth()

Returns

int

Hash()

public uint Hash()

Returns

uint

InvalidateContents()

public void InvalidateContents()

InvalidateSize()

public void InvalidateSize()

Load(int, out string, Cancellable?)

public InputStream Load(int size, out string type, Cancellable? cancellable)

Parameters

size int
type string
cancellable Cancellable

Returns

InputStream

LoadFinish(AsyncResult, out string)

public InputStream LoadFinish(AsyncResult res, out string type)

Parameters

res AsyncResult
type string

Returns

InputStream

New(int, int, MemoryFormat, Bytes, nuint)

public static MemoryTexture New(int width, int height, MemoryFormat format, Bytes bytes, nuint stride)

Parameters

width int
height int
format MemoryFormat
bytes Bytes
stride nuint

Returns

MemoryTexture

Serialize()

[Version("2.38")]
public Variant? Serialize()

Returns

Variant

Snapshot(Snapshot, double, double)

public void Snapshot(Snapshot snapshot, double width, double height)

Parameters

snapshot Snapshot
width double
height double

ToString()

[Version("2.20")]
public string? ToString()

Returns

string