Class Tooltip
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Tooltip : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Tooltip
- Implements
- Inherited Members
Constructors
Tooltip(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 Tooltip(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Tooltip(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Tooltip(CreationData data)
Parameters
dataCreationData
Tooltip(TooltipHandle)
protected Tooltip(TooltipHandle handle)
Parameters
handleTooltipHandle
Methods
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed Tooltip instance for a given pointer.
public static Tooltip NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Tooltip and sets the properties specified by the construct arguments.
public static Tooltip NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetCustom(Widget?)
public void SetCustom(Widget? customWidget)
Parameters
customWidgetWidget
SetIcon(Paintable?)
public void SetIcon(Paintable? paintable)
Parameters
paintablePaintable
SetIconFromGicon(Icon?)
public void SetIconFromGicon(Icon? gicon)
Parameters
giconIcon
SetIconFromIconName(string?)
public void SetIconFromIconName(string? iconName)
Parameters
iconNamestring
SetMarkup(string?)
public void SetMarkup(string? markup)
Parameters
markupstring
SetText(string?)
public void SetText(string? text)
Parameters
textstring
SetTipArea(Rectangle)
public void SetTipArea(Rectangle rect)
Parameters
rectRectangle