Wt  3.3.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions
Wt::WPainterPath::Segment Class Reference

A segment. More...

List of all members.

Public Types

enum  Type {
  MoveTo = 0, LineTo = 1, CubicC1 = 2, CubicC2 = 3,
  CubicEnd = 4, QuadC = 5, QuadEnd = 6, ArcC = 7,
  ArcR = 8, ArcAngleSweep = 9
}

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

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.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Mar 22 2016 for the C++ Web Toolkit (Wt) by doxygen 1.7.6.1