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
protected WidgetPaintable(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
protected WidgetPaintable(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
public static readonly Property<Widget?, WidgetPaintable> WidgetPropertyDefinition
Field Value
- Property<Widget, WidgetPaintable>
Properties
public Widget? Widget { get; set; }
Property Value
- Widget
Methods
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
public Paintable GetCurrentImage()
Returns
- Paintable
public PaintableFlags GetFlags()
Returns
- PaintableFlags
public static Type GetGType()
Returns
- Type
public double GetIntrinsicAspectRatio()
Returns
- double
public int GetIntrinsicHeight()
Returns
- int
public int GetIntrinsicWidth()
Returns
- int
public Widget? GetWidget()
Returns
- Widget
InvalidateContents()
public void InvalidateContents()
public void InvalidateSize()
public static WidgetPaintable New(Widget? widget)
Parameters
widget
Widget
Returns
- WidgetPaintable
public void SetWidget(Widget? widget)
Parameters
widget
Widget
public void Snapshot(Snapshot snapshot, double width, double height)
Parameters
snapshot
Snapshot
width
double
height
double