Table of Contents

Class Path

Namespace
Gsk.Internal
Assembly
Gsk-4.0.dll
public class Path
Inheritance
Path
Inherited Members

Methods

Foreach(PathHandle, PathForeachFlags, PathForeachFunc, nint)

Calls native method gsk_path_foreach. Version: 4.14

[Version("4.14")]
public static extern bool Foreach(PathHandle self, PathForeachFlags flags, PathForeachFunc func, nint userData)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

flags PathForeachFlags

Transfer ownership: None Nullable: False

func PathForeachFunc

Transfer ownership: None Nullable: False

userData nint

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

ForeachIntersection(PathHandle, PathHandle, PathIntersectionFunc, nint)

Calls native method gsk_path_foreach_intersection. Version: 4.20

[Version("4.20")]
public static extern bool ForeachIntersection(PathHandle path1, PathHandle path2, PathIntersectionFunc func, nint userData)

Parameters

path1 PathHandle

Transfer ownership: None Nullable: False

path2 PathHandle

Transfer ownership: None Nullable: True

func PathIntersectionFunc

Transfer ownership: None Nullable: False

userData nint

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

GetBounds(PathHandle, RectHandle)

Calls native method gsk_path_get_bounds. Version: 4.14

[Version("4.14")]
public static extern bool GetBounds(PathHandle self, RectHandle bounds)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetClosestPoint(PathHandle, PointHandle, float, PathPointHandle, out float)

Calls native method gsk_path_get_closest_point. Version: 4.14

[Version("4.14")]
public static extern bool GetClosestPoint(PathHandle self, PointHandle point, float threshold, PathPointHandle result, out float distance)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

point PointHandle

Transfer ownership: None Nullable: False

threshold float

Transfer ownership: None Nullable: False

result PathPointHandle

Transfer ownership: None Nullable: False

distance float

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetEndPoint(PathHandle, PathPointHandle)

Calls native method gsk_path_get_end_point. Version: 4.14

[Version("4.14")]
public static extern bool GetEndPoint(PathHandle self, PathPointHandle result)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

result PathPointHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetGType()

Calls native function gsk_path_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetStartPoint(PathHandle, PathPointHandle)

Calls native method gsk_path_get_start_point. Version: 4.14

[Version("4.14")]
public static extern bool GetStartPoint(PathHandle self, PathPointHandle result)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

result PathPointHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetStrokeBounds(PathHandle, StrokeHandle, RectHandle)

Calls native method gsk_path_get_stroke_bounds. Version: 4.14

[Version("4.14")]
public static extern bool GetStrokeBounds(PathHandle self, StrokeHandle stroke, RectHandle bounds)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

stroke StrokeHandle

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

InFill(PathHandle, PointHandle, FillRule)

Calls native method gsk_path_in_fill. Version: 4.14

[Version("4.14")]
public static extern bool InFill(PathHandle self, PointHandle point, FillRule fillRule)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

point PointHandle

Transfer ownership: None Nullable: False

fillRule FillRule

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsClosed(PathHandle)

Calls native method gsk_path_is_closed. Version: 4.14

[Version("4.14")]
public static extern bool IsClosed(PathHandle self)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsEmpty(PathHandle)

Calls native method gsk_path_is_empty. Version: 4.14

[Version("4.14")]
public static extern bool IsEmpty(PathHandle self)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Parse(NonNullableUtf8StringHandle)

Calls native function gsk_path_parse. Version: 4.14

[Version("4.14")]
public static extern PathOwnedHandle Parse(NonNullableUtf8StringHandle @string)

Parameters

string NonNullableUtf8StringHandle

Returns

PathOwnedHandle

Transfer ownership: Full Nullable: True

Print(PathHandle, StringHandle)

Calls native method gsk_path_print. Version: 4.14

[Version("4.14")]
public static extern void Print(PathHandle self, StringHandle @string)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

string StringHandle

Ref(PathHandle)

Calls native method gsk_path_ref. Version: 4.14

[Version("4.14")]
public static extern PathOwnedHandle Ref(PathHandle self)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

Returns

PathOwnedHandle

Transfer ownership: Full Nullable: False

ToCairo(PathHandle, ContextHandle)

Calls native method gsk_path_to_cairo. Version: 4.14

[Version("4.14")]
public static extern void ToCairo(PathHandle self, ContextHandle cr)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

cr ContextHandle

Transfer ownership: None Nullable: False

ToString(PathHandle)

Calls native method gsk_path_to_string. Version: 4.14

[Version("4.14")]
public static extern NonNullableUtf8StringOwnedHandle ToString(PathHandle self)

Parameters

self PathHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

Unref(PathHandle)

Calls native method gsk_path_unref. Version: 4.14

[Version("4.14")]
public static extern void Unref(PathHandle self)

Parameters

self PathHandle

Transfer ownership: None Nullable: False