Table of Contents

Class HitTestResult

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class HitTestResult : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
HitTestResult
Implements
Inherited Members

Constructors

HitTestResult(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 HitTestResult(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

HitTestResult(CreationData)

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

Parameters

data CreationData

HitTestResult(HitTestResultHandle)

protected HitTestResult(HitTestResultHandle handle)

Parameters

handle HitTestResultHandle

Fields

ContextPropertyDefinition

public static readonly Property<uint, HitTestResult> ContextPropertyDefinition

Field Value

Property<uint, HitTestResult>

ImageUriPropertyDefinition

public static readonly Property<string?, HitTestResult> ImageUriPropertyDefinition

Field Value

Property<string, HitTestResult>

LinkLabelPropertyDefinition

public static readonly Property<string?, HitTestResult> LinkLabelPropertyDefinition

Field Value

Property<string, HitTestResult>

LinkTitlePropertyDefinition

public static readonly Property<string?, HitTestResult> LinkTitlePropertyDefinition

Field Value

Property<string, HitTestResult>

LinkUriPropertyDefinition

public static readonly Property<string?, HitTestResult> LinkUriPropertyDefinition

Field Value

Property<string, HitTestResult>

MediaUriPropertyDefinition

public static readonly Property<string?, HitTestResult> MediaUriPropertyDefinition

Field Value

Property<string, HitTestResult>

Properties

Context

public uint Context { get; }

Property Value

uint

ImageUri

public string? ImageUri { get; }

Property Value

string

LinkLabel

public string? LinkLabel { get; }

Property Value

string

LinkTitle

public string? LinkTitle { get; }

Property Value

string

LinkUri

public string? LinkUri { get; }

Property Value

string

MediaUri

public string? MediaUri { get; }

Property Value

string

Methods

ContextIsEditable()

public bool ContextIsEditable()

Returns

bool

ContextIsImage()

public bool ContextIsImage()

Returns

bool
public bool ContextIsLink()

Returns

bool

ContextIsMedia()

public bool ContextIsMedia()

Returns

bool

ContextIsScrollbar()

public bool ContextIsScrollbar()

Returns

bool

ContextIsSelection()

[Version("2.8")]
public bool ContextIsSelection()

Returns

bool

GetContext()

public uint GetContext()

Returns

uint

GetGType()

public static Type GetGType()

Returns

Type

GetImageUri()

public string GetImageUri()

Returns

string

GetLinkLabel()

public string GetLinkLabel()

Returns

string

GetLinkTitle()

public string GetLinkTitle()

Returns

string

GetLinkUri()

public string GetLinkUri()

Returns

string

GetMediaUri()

public string GetMediaUri()

Returns

string

NewFromPointer(nint, bool)

Creates a new managed HitTestResult instance for a given pointer.

public static HitTestResult NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

HitTestResult

NewWithProperties(ConstructArgument[])

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

public static HitTestResult NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

HitTestResult