Table of Contents

Class WebHitTestResult

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

WebHitTestResult(CreationData)

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

Parameters

data CreationData

WebHitTestResult(WebHitTestResultHandle)

protected WebHitTestResult(WebHitTestResultHandle handle)

Parameters

handle WebHitTestResultHandle

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()

public bool ContextIsSelection()

Returns

bool

GetContext()

public uint GetContext()

Returns

uint

GetGType()

public static Type GetGType()

Returns

Type

GetImageUri()

public string GetImageUri()

Returns

string

GetJsNode(ScriptWorld?)

[Version("2.40")]
public Value? GetJsNode(ScriptWorld? world)

Parameters

world ScriptWorld

Returns

Value

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 WebHitTestResult instance for a given pointer.

public static WebHitTestResult NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WebHitTestResult

NewWithProperties(ConstructArgument[])

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

public static WebHitTestResult NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WebHitTestResult