Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | Class Members

QS_PenWrapper Class Reference

Wrapper class for pens. More...

#include <qs_penwrapper.h>

List of all members.

Public Slots

void test ()

Public Member Functions

 QS_PenWrapper (RS_Pen *p)
 QS_PenWrapper (int r, int g, int b)
 Constructor for a pen with a color and default width.
 QS_PenWrapper (int r, int g, int b, int w)
 Constructor for a pen with a color and a width.
virtual RS_Pen * getPen ()


Detailed Description

Wrapper class for pens.


Constructor & Destructor Documentation

QS_PenWrapper::QS_PenWrapper int  r,
int  g,
int  b
[inline]
 

Constructor for a pen with a color and default width.

This example script creates a new red pen and activates it:

 var doc = new Document;
 var pen = new Pen(255,0,0);
 doc.setActivePen(pen);
 

QS_PenWrapper::QS_PenWrapper int  r,
int  g,
int  b,
int  w
[inline]
 

Constructor for a pen with a color and a width.

This example script creates a new red 1mm pen and activates it:

 var doc = new Document;
 var pen = new Pen(255,0,0, 100);
 doc.setActivePen(pen);
 


The documentation for this class was generated from the following file:
Generated on Sat May 6 04:36:12 2006 for qcadscripting by  doxygen 1.4.4