Table of Contents

Class Path

Namespace
Gsk
Assembly
Gsk-4.0.dll
public sealed class Path : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Path>, IDisposable
Inheritance
Path
Implements
Inherited Members

Constructors

Path(PathOwnedHandle)

public Path(PathOwnedHandle handle)

Parameters

handle PathOwnedHandle

Properties

Handle

public PathOwnedHandle Handle { get; }

Property Value

PathOwnedHandle

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(Path?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Path? other)

Parameters

other Path

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Foreach(PathForeachFlags, PathForeachFunc)

[Version("4.14")]
public bool Foreach(PathForeachFlags flags, PathForeachFunc func)

Parameters

flags PathForeachFlags
func PathForeachFunc

Returns

bool

ForeachIntersection(Path?, PathIntersectionFunc)

[Version("4.20")]
public bool ForeachIntersection(Path? path2, PathIntersectionFunc func)

Parameters

path2 Path
func PathIntersectionFunc

Returns

bool

GetBounds(out Rect)

[Version("4.14")]
public bool GetBounds(out Rect bounds)

Parameters

bounds Rect

Returns

bool

GetClosestPoint(Point, float, out PathPoint, out float)

[Version("4.14")]
public bool GetClosestPoint(Point point, float threshold, out PathPoint result, out float distance)

Parameters

point Point
threshold float
result PathPoint
distance float

Returns

bool

GetEndPoint(out PathPoint)

[Version("4.14")]
public bool GetEndPoint(out PathPoint result)

Parameters

result PathPoint

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetStartPoint(out PathPoint)

[Version("4.14")]
public bool GetStartPoint(out PathPoint result)

Parameters

result PathPoint

Returns

bool

GetStrokeBounds(Stroke, out Rect)

[Version("4.14")]
public bool GetStrokeBounds(Stroke stroke, out Rect bounds)

Parameters

stroke Stroke
bounds Rect

Returns

bool

InFill(Point, FillRule)

[Version("4.14")]
public bool InFill(Point point, FillRule fillRule)

Parameters

point Point
fillRule FillRule

Returns

bool

IsClosed()

[Version("4.14")]
public bool IsClosed()

Returns

bool

IsEmpty()

[Version("4.14")]
public bool IsEmpty()

Returns

bool

Parse(string)

[Version("4.14")]
public static Path? Parse(string @string)

Parameters

string string

Returns

Path

Print(String)

[Version("4.14")]
public void Print(String @string)

Parameters

string String

Ref()

[Version("4.14")]
public Path Ref()

Returns

Path

ToCairo(Context)

[Version("4.14")]
public void ToCairo(Context cr)

Parameters

cr Context

ToString()

[Version("4.14")]
public string ToString()

Returns

string

Unref()

[Version("4.14")]
public void Unref()