Class WidgetPaintable
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class WidgetPaintable : Object, Paintable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
WidgetPaintable
- Implements
- Inherited Members
Constructors
WidgetPaintable(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public WidgetPaintable(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
WidgetPaintable(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WidgetPaintable(CreationData data)
Parameters
dataCreationData
WidgetPaintable(WidgetPaintableHandle)
protected WidgetPaintable(WidgetPaintableHandle handle)
Parameters
handleWidgetPaintableHandle
Fields
InvalidateContentsSignal
Signal Descriptor for OnInvalidateContents.
public static readonly Signal<Paintable> InvalidateContentsSignal
Field Value
InvalidateSizeSignal
Signal Descriptor for OnInvalidateSize.
public static readonly Signal<Paintable> InvalidateSizeSignal
Field Value
WidgetPropertyDefinition
public static readonly Property<Widget?, WidgetPaintable> WidgetPropertyDefinition
Field Value
Properties
Widget
public Widget? Widget { get; set; }
Property Value
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
specifiedWidthdoublespecifiedHeightdoubledefaultWidthdoubledefaultHeightdoubleconcreteWidthdoubleconcreteHeightdouble
GetCurrentImage()
public Paintable GetCurrentImage()
Returns
GetFlags()
public PaintableFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetIntrinsicAspectRatio()
public double GetIntrinsicAspectRatio()
Returns
GetIntrinsicHeight()
public int GetIntrinsicHeight()
Returns
GetIntrinsicWidth()
public int GetIntrinsicWidth()
Returns
GetWidget()
public Widget? GetWidget()
Returns
InvalidateContents()
public void InvalidateContents()
InvalidateSize()
public void InvalidateSize()
New(Widget?)
public static WidgetPaintable New(Widget? widget)
Parameters
widgetWidget
Returns
NewFromPointer(nint, bool)
Creates a new managed WidgetPaintable instance for a given pointer.
public static WidgetPaintable NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new WidgetPaintable and sets the properties specified by the construct arguments.
public static WidgetPaintable NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetWidget(Widget?)
public void SetWidget(Widget? widget)
Parameters
widgetWidget
Snapshot(Snapshot, double, double)
public void Snapshot(Snapshot snapshot, double width, double height)
Parameters
Events
OnInvalidateContents
public event SignalHandler<Paintable> OnInvalidateContents
Event Type
OnInvalidateSize
public event SignalHandler<Paintable> OnInvalidateSize