Pattern.getLinearPoints

cairo.types.Status getLinearPoints(out double x0, out double y0, out double x1, out double y1)

Gets the gradient endpoints for a linear gradient.

Parameters

x0return value for the x coordinate of the first point, or null
y0return value for the y coordinate of the first point, or null
x1return value for the x coordinate of the second point, or null
y1return value for the y coordinate of the second point, or null

Returns

[cairo.types.Status.Success], or

[cairo.types.Status.PatternTypeMismatch] if pattern is not a linear gradient pattern.