Table of Contents

Class WidgetPaintable

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

Constructors

WidgetPaintable(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

WidgetPaintable(IntPtr, bool)

protected WidgetPaintable(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

WidgetPropertyDefinition

public static readonly Property<Widget?, WidgetPaintable> WidgetPropertyDefinition

Field Value

Property<Widget, WidgetPaintable>

Properties

Widget

public Widget? Widget { get; set; }

Property Value

Widget

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

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

GetWidget()

public Widget? GetWidget()

Returns

Widget

InvalidateContents()

public void InvalidateContents()

InvalidateSize()

public void InvalidateSize()

New(Widget?)

public static WidgetPaintable New(Widget? widget)

Parameters

widget Widget

Returns

WidgetPaintable

SetWidget(Widget?)

public void SetWidget(Widget? widget)

Parameters

widget Widget

Snapshot(Snapshot, double, double)

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

Parameters

snapshot Snapshot
width double
height double