Table of Contents

Class IconPaintable

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

Constructors

IconPaintable(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

IconPaintable(IntPtr, bool)

protected IconPaintable(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

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>

IsSymbolicPropertyDefinition

public static readonly Property<bool, IconPaintable> IsSymbolicPropertyDefinition

Field Value

Property<bool, IconPaintable>

Properties

File

public File File { get; }

Property Value

File

IconName

public string? IconName { get; }

Property Value

string

IsSymbolic

public bool IsSymbolic { get; }

Property Value

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

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[]