Wt  3.3.8
Public Types | Public Member Functions | List of all members
Wt::WPainterPath::Segment Class Reference

A segment. More...

Public Types

Public Member Functions

double x () const
 
double y () const
 
Type type () const
 

Detailed Description

A segment.

Member Enumeration Documentation

The segment type

Enumerator
MoveTo 

moveTo segment

LineTo 

lineTo segment

CubicC1 

first control point of cubic bezier curve, always followed by a CubicC2 and CubicEnd segment

CubicC2 

second control point of cubic bezier curve, always followed by a CubicEnd segment

CubicEnd 

end point of cubic bezier curve

QuadC 

control point of quadratic bezier curve

QuadEnd 

end point of quadratic bezier curve

ArcC 

center of an arc, always followed by an ArcR and ArcAngleSweep segment

ArcR 

radius of an arc, always followed by an ArcAngleSweep segment

ArcAngleSweep 

the sweep of an arc, x = startAngle, y = spanAngle

Member Function Documentation

Type Wt::WPainterPath::Segment::type ( ) const

The type of the segment

double Wt::WPainterPath::Segment::x ( ) const

The x parameter

Depending on the type(), this is either the x position of the point, or something else.

double Wt::WPainterPath::Segment::y ( ) const

The y parameter

Depending on the type(), this is either the y position of the point, or something else.


Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11