vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKPen Class Reference

This class provides a Pen to customize drawing. More...

#include <vdkdrawarea.h>

Inheritance diagram for VDKPen:
Inheritance graph
[legend]
Collaboration diagram for VDKPen:
Collaboration graph
[legend]

Public Member Functions

 VDKPen (VDKDrawingArea *owner)
 
virtual ~VDKPen ()
 
- Public Member Functions inherited from VDKDrawTool
 VDKDrawTool (VDKDrawingArea *owner)
 
virtual ~VDKDrawTool ()
 
void SetTile (const char *tfile)
 
void SetTile (char **tdata)
 
void SetTile (GdkPixmap *tile)
 
GdkPixmap * Tile (char **tdata)
 
GdkPixmap * Tile (const char *tfile)
 

Public Attributes

VDKReadWriteValueProp< VDKPen, VDKRgbColor
 
VDKReadWriteValueProp< VDKPen, gint > Thickness
 
VDKReadWriteValueProp< VDKPen, GdkLineStyle > Style
 
VDKReadWriteValueProp< VDKPen, GdkCapStyle > Cap
 
VDKReadWriteValueProp< VDKPen, GdkJoinStyle > Join
 
- Public Attributes inherited from VDKDrawTool
VDKReadWriteValueProp< VDKDrawTool, GdkFill > Fill
 
VDKReadWriteValueProp< VDKDrawTool, GdkFunction > Function
 

Detailed Description

This class provides a Pen to customize drawing.

Constructor & Destructor Documentation

◆ VDKPen()

VDKPen::VDKPen ( VDKDrawingArea owner)

Constructor

◆ ~VDKPen()

virtual VDKPen::~VDKPen ( )
inlinevirtual

Destructor

Member Data Documentation

◆ Cap

VDKReadWriteValueProp<VDKPen, GdkCapStyle> VDKPen::Cap

Sets/gets pen cap style, supported modes:

  • GDK_CAP_NOT_LAST the same as GDK_CAP_BUTT for lines of non-zero width. for zero width lines, the final point on the line will not be drawn.
  • GDK_CAP_BUTT the ends of the lines are drawn squared off and extending to the coordinates of the end point.
  • GDK_CAP_ROUND the ends of the lines are drawn as semicircles with the diameter equal to the line width and centered at the end point.
  • GDK_CAP_PROJECTING the ends of the lines are drawn squared off and extending half the width of the line beyond the end point.

◆ Color

VDKReadWriteValueProp<VDKPen, VDKRgb> VDKPen::Color

Sets/gets pen drawing color, valid only on GDK_SOLID fill mode

◆ Join

VDKReadWriteValueProp<VDKPen, GdkJoinStyle> VDKPen::Join

Sets/gets pen join style, supported modes:

  • GDK_JOIN_MITER the sides of each line are extended to meet at an angle.
  • GDK_JOIN_ROUND the sides of the two lines are joined by a circular arc.
  • GDK_JOIN_BEVEL the sides of the two lines are joined by a straight line which makes an equal angle with each line.

◆ Style

VDKReadWriteValueProp<VDKPen, GdkLineStyle> VDKPen::Style

Sets/gets pen line style, supported modes:

  • GDK_LINE_SOLID
  • GDK_LINE_ON_OFF_DASH
  • GDK_LINE_DOUBLE_DASH

◆ Thickness

VDKReadWriteValueProp<VDKPen, gint> VDKPen::Thickness

Sets/gets pen thickness


The documentation for this class was generated from the following files: