Table of Contents

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

constructArguments ConstructArgument[]

Tooltip(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Tooltip(CreationData data)

Parameters

data CreationData

Tooltip(TooltipHandle)

protected Tooltip(TooltipHandle handle)

Parameters

handle TooltipHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed Tooltip instance for a given pointer.

public static Tooltip NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Tooltip

NewWithProperties(ConstructArgument[])

Creates a new Tooltip and sets the properties specified by the construct arguments.

public static Tooltip NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Tooltip

SetCustom(Widget?)

public void SetCustom(Widget? customWidget)

Parameters

customWidget Widget

SetIcon(Paintable?)

public void SetIcon(Paintable? paintable)

Parameters

paintable Paintable

SetIconFromGicon(Icon?)

public void SetIconFromGicon(Icon? gicon)

Parameters

gicon Icon

SetIconFromIconName(string?)

public void SetIconFromIconName(string? iconName)

Parameters

iconName string

SetMarkup(string?)

public void SetMarkup(string? markup)

Parameters

markup string

SetText(string?)

public void SetText(string? text)

Parameters

text string

SetTipArea(Rectangle)

public void SetTipArea(Rectangle rect)

Parameters

rect Rectangle