Class IconPaintable
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class IconPaintable : Object, Paintable, SymbolicPaintable, 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>
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()
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[]