enum Gsk::PathOperation

Overview

Describes the segments of a Gsk::Path.

More values may be added in the future.

Defined in:

lib/gi-crystal/src/auto/gsk-4.0/gsk.cr

Enum Members

Move = 0_u32

A move-to operation, with 1 point describing the target point.

Close = 1_u32

A close operation ending the current contour with a line back to the starting point. Two points describe the start and end of the line.

Line = 2_u32

A line-to operation, with 2 points describing the start and end point of a straight line.

Quad = 3_u32

A curve-to operation describing a quadratic Bézier curve with 3 points describing the start point, the control point and the end point of the curve.

Cubic = 4_u32

A curve-to operation describing a cubic Bézier curve with 4 points describing the start point, the two control points and the end point of the curve.

Conic = 5_u32

A rational quadratic Bézier curve with 3 points describing the start point, control point and end point of the curve. A weight for the curve will be passed, too.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def close? #

def conic? #

def cubic? #

def line? #

def move? #

def quad? #