Table of Contents

Class IconPaintable

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class IconPaintable : Object, Paintable, SymbolicPaintable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
IconPaintable
Implements
Inherited Members

Constructors

IconPaintable(params ConstructArgument[])

public IconPaintable(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

IconPaintable(IconPaintableHandle)

public IconPaintable(IconPaintableHandle handle)

Parameters

handle IconPaintableHandle

Fields

FilePropertyDefinition

public static readonly Property<File, IconPaintable> FilePropertyDefinition

Field Value

Property<File, IconPaintable>

IconNamePropertyDefinition

public static readonly Property<string?, IconPaintable> IconNamePropertyDefinition

Field Value

Property<string, IconPaintable>

InvalidateContentsSignal

Signal Descriptor for OnInvalidateContents.

public static readonly Signal<Paintable> InvalidateContentsSignal

Field Value

Signal<Paintable>

InvalidateSizeSignal

Signal Descriptor for OnInvalidateSize.

public static readonly Signal<Paintable> InvalidateSizeSignal

Field Value

Signal<Paintable>

IsSymbolicPropertyDefinition

public static readonly Property<bool, IconPaintable> IsSymbolicPropertyDefinition

Field Value

Property<bool, IconPaintable>

ScalePropertyDefinition

public static readonly Property<int, IconPaintable> ScalePropertyDefinition

Field Value

Property<int, IconPaintable>

SizePropertyDefinition

public static readonly Property<int, IconPaintable> SizePropertyDefinition

Field Value

Property<int, IconPaintable>

Properties

File

public File File { get; }

Property Value

File

IconName

public string? IconName { get; }

Property Value

string

IsSymbolic

public bool IsSymbolic { get; set; }

Property Value

bool

Scale

public int Scale { get; set; }

Property Value

int

Size

public int Size { get; set; }

Property Value

int

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

GetCurrentImage()

public Paintable GetCurrentImage()

Returns

Paintable

GetFile()

public File? GetFile()

Returns

File

GetFlags()

public PaintableFlags GetFlags()

Returns

PaintableFlags

GetGType()

public static Type GetGType()

Returns

Type

GetIconName()

public string? GetIconName()

Returns

string

GetIntrinsicAspectRatio()

public double GetIntrinsicAspectRatio()

Returns

double

GetIntrinsicHeight()

public int GetIntrinsicHeight()

Returns

int

GetIntrinsicWidth()

public int GetIntrinsicWidth()

Returns

int

GetIsSymbolic()

public bool GetIsSymbolic()

Returns

bool

InvalidateContents()

public void InvalidateContents()

InvalidateSize()

public void InvalidateSize()

NewForFile(File, int, int)

public static IconPaintable NewForFile(File file, int size, int scale)

Parameters

file File
size int
scale int

Returns

IconPaintable

Snapshot(Snapshot, double, double)

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

Parameters

snapshot Snapshot
width double
height double

SnapshotSymbolic(Snapshot, double, double, RGBA[])

[Version("4.6")]
public void SnapshotSymbolic(Snapshot snapshot, double width, double height, RGBA[] colors)

Parameters

snapshot Snapshot
width double
height double
colors RGBA[]

Events

OnInvalidateContents

public event SignalHandler<Paintable> OnInvalidateContents

Event Type

SignalHandler<Paintable>

OnInvalidateSize

public event SignalHandler<Paintable> OnInvalidateSize

Event Type

SignalHandler<Paintable>