D2D1_SVG_PATH_COMMAND enumeration (d2d1svg.h)

Represents a path commmand. Each command may reference floats from the segment data. Commands ending in _ABSOLUTE interpret data as absolute coordinate. Commands ending in _RELATIVE interpret data as being relative to the previous point.

Syntax

typedef enum D2D1_SVG_PATH_COMMAND {
  D2D1_SVG_PATH_COMMAND_CLOSE_PATH = 0,
  D2D1_SVG_PATH_COMMAND_MOVE_ABSOLUTE = 1,
  D2D1_SVG_PATH_COMMAND_MOVE_RELATIVE = 2,
  D2D1_SVG_PATH_COMMAND_LINE_ABSOLUTE = 3,
  D2D1_SVG_PATH_COMMAND_LINE_RELATIVE = 4,
  D2D1_SVG_PATH_COMMAND_CUBIC_ABSOLUTE = 5,
  D2D1_SVG_PATH_COMMAND_CUBIC_RELATIVE = 6,
  D2D1_SVG_PATH_COMMAND_QUADRADIC_ABSOLUTE = 7,
  D2D1_SVG_PATH_COMMAND_QUADRADIC_RELATIVE = 8,
  D2D1_SVG_PATH_COMMAND_ARC_ABSOLUTE = 9,
  D2D1_SVG_PATH_COMMAND_ARC_RELATIVE = 10,
  D2D1_SVG_PATH_COMMAND_HORIZONTAL_ABSOLUTE = 11,
  D2D1_SVG_PATH_COMMAND_HORIZONTAL_RELATIVE = 12,
  D2D1_SVG_PATH_COMMAND_VERTICAL_ABSOLUTE = 13,
  D2D1_SVG_PATH_COMMAND_VERTICAL_RELATIVE = 14,
  D2D1_SVG_PATH_COMMAND_CUBIC_SMOOTH_ABSOLUTE = 15,
  D2D1_SVG_PATH_COMMAND_CUBIC_SMOOTH_RELATIVE = 16,
  D2D1_SVG_PATH_COMMAND_QUADRADIC_SMOOTH_ABSOLUTE = 17,
  D2D1_SVG_PATH_COMMAND_QUADRADIC_SMOOTH_RELATIVE = 18,
  D2D1_SVG_PATH_COMMAND_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_SVG_PATH_COMMAND_CLOSE_PATH
Value: 0
Closes the current subpath. Uses no segment data.
D2D1_SVG_PATH_COMMAND_MOVE_ABSOLUTE
Value: 1
Starts a new subpath at the coordinate (x y). Uses 2 floats of segment data.
D2D1_SVG_PATH_COMMAND_MOVE_RELATIVE
Value: 2
Starts a new subpath at the coordinate (x y). Uses 2 floats of segment data.
D2D1_SVG_PATH_COMMAND_LINE_ABSOLUTE
Value: 3
Draws a line to the coordinate (x y). Uses 2 floats of segment data.
D2D1_SVG_PATH_COMMAND_LINE_RELATIVE
Value: 4
Draws a line to the coordinate (x y). Uses 2 floats of segment data.
D2D1_SVG_PATH_COMMAND_CUBIC_ABSOLUTE
Value: 5
Draws a cubic Bezier curve (x1 y1 x2 y2 x y). The curve ends at (x, y) and is defined by the two control points (x1, y1) and (x2, y2). Uses 6 floats of segment data.
D2D1_SVG_PATH_COMMAND_CUBIC_RELATIVE
Value: 6
Draws a cubic Bezier curve (x1 y1 x2 y2 x y). The curve ends at (x, y) and is defined by the two control points (x1, y1) and (x2, y2). Uses 6 floats of segment data.
D2D1_SVG_PATH_COMMAND_QUADRADIC_ABSOLUTE
Value: 7
Draws a quadratic Bezier curve (x1 y1 x y). The curve ends at (x, y) and is defined by the control point (x1 y1). Uses 4 floats of segment data.
D2D1_SVG_PATH_COMMAND_QUADRADIC_RELATIVE
Value: 8
Draws a quadratic Bezier curve (x1 y1 x y). The curve ends at (x, y) and is defined by the control point (x1 y1). Uses 4 floats of segment data.
D2D1_SVG_PATH_COMMAND_ARC_ABSOLUTE
Value: 9
Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). The curve ends at (x, y) and is defined by the arc parameters. The two flags are
considered set if their values are non-zero. Uses 7 floats of segment data.
D2D1_SVG_PATH_COMMAND_ARC_RELATIVE
Value: 10
Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). The curve ends at (x, y) and is defined by the arc parameters. The two flags are
considered set if their values are non-zero. Uses 7 floats of segment data.
D2D1_SVG_PATH_COMMAND_HORIZONTAL_ABSOLUTE
Value: 11
Draws a horizontal line to the coordinate (x). Uses 1 float of segment data.
D2D1_SVG_PATH_COMMAND_HORIZONTAL_RELATIVE
Value: 12
Draws a horizontal line to the coordinate (x). Uses 1 float of segment data.
D2D1_SVG_PATH_COMMAND_VERTICAL_ABSOLUTE
Value: 13
Draws a vertical line to the coordinate (y). Uses 1 float of segment data.
D2D1_SVG_PATH_COMMAND_VERTICAL_RELATIVE
Value: 14
Draws a vertical line to the coordinate (y). Uses 1 float of segment data.
D2D1_SVG_PATH_COMMAND_CUBIC_SMOOTH_ABSOLUTE
Value: 15
Draws a smooth cubic Bezier curve (x2 y2 x y). The curve ends at (x, y) and is defined by the control point (x2, y2). Uses 4 floats of segment data.
D2D1_SVG_PATH_COMMAND_CUBIC_SMOOTH_RELATIVE
Value: 16
Draws a smooth cubic Bezier curve (x2 y2 x y). The curve ends at (x, y) and is defined by the control point (x2, y2). Uses 4 floats of segment data.
D2D1_SVG_PATH_COMMAND_QUADRADIC_SMOOTH_ABSOLUTE
Value: 17
Draws a smooth quadratic Bezier curve ending at (x, y). Uses 2 floats of segment data.
D2D1_SVG_PATH_COMMAND_QUADRADIC_SMOOTH_RELATIVE
Value: 18
Draws a smooth quadratic Bezier curve ending at (x, y). Uses 2 floats of segment data.
D2D1_SVG_PATH_COMMAND_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1svg.h