WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::Hpgl Class Reference

This class plots to HPGL printers. More...

#include "../include/Hpgl.h"

Inheritance diagram for WXP::Hpgl:
WXP::Device WXP::Listener

Public Member Functions

int init ()
 
int setParam (const char *str)
 
int open ()
 
int getDevice (String &str)
 
int resize (float rwidth, float rheight)
 
int manage ()
 
int unmanage ()
 
int addCallback (const char *event, Listener *list, const void *data)
 
int doCallback (const char *ev_str, const char *ev_data)
 
void callback (const char *ev_str, const char *ev_data, const void *data)
 
int close ()
 
int setFocus ()
 
int unsetFocus ()
 
int update ()
 
int clear ()
 
int clearRect (Rect &rect)
 
int setTitle (const char *str)
 
int setIcon (bool val)
 
int setFixed (bool val)
 
int setInverse (bool val)
 
bool getInverse ()
 
int setBackground (const char *str)
 
int setSize (float rwidth, float rheight)
 
int getSize (float &width, float &height)
 
float getWidth ()
 
float getHeight ()
 
int setOffset (float rx, float ry)
 
int getOffset (float &x, float &y)
 
int getCoords (Rect &rect)
 
Rect getCoords ()
 
int allocColor (float red, float grn, float blu)
 
int setColor (int type, int ind)
 
int outputColor (int color)
 
int setLineWidth (int type, float width)
 
int setLineStyle (int type, int style)
 
int setFillStyle (int type, int style)
 
int drawLine (int type, float x1, float y1, float x2, float y2)
 
int drawLine (int type, Points &pts)
 
int drawFill (int type, Points &pts)
 
int setImageAlign (int h, int v)
 
int drawImage (Image &image, float x, float y)
 
int drawImage (Image &image, int color, float x, float y)
 
int getImage (Image &image)
 
int setFont (const char *name)
 
int setTextAlign (int h, int v)
 
int drawText (Point &pt, const char *str)
 
Rect getClip ()
 
int setClip (float x1, float y1, float x2, float y2)
 
int setClip (Rect rect)
 
int setCursor (int type)
 
int copyFrame (int dest, int src)
 
int displayFrame (int ind)
 
int clearFrame (int ind)
 
int newFrame (int ind)
 
int newFrame ()
 
bool isLooping ()
 
int getFrame ()
 
int setFrame (int ind)
 
int deleteFrame (int ind)
 
int incFrame (int step)
 
int getNumFrames ()
 
int message (const char *str)
 
int bell (int len)
 
virtual int init ()=0
 
virtual int setParam (const char *str)=0
 
virtual int open ()=0
 
virtual int getDevice (String &str)=0
 
virtual int resize (float rwidth, float rheight)=0
 
virtual int manage ()=0
 
virtual int unmanage ()=0
 
virtual int addCallback (const char *event, Listener *list, const void *data)=0
 
virtual int doCallback (const char *ev_str, const char *ev_data)=0
 
virtual void callback (const char *ev_str, const char *ev_data, const void *data)=0
 
virtual int close ()=0
 
virtual int update ()=0
 
virtual int clear ()=0
 
virtual int clearRect (Rect &rect)=0
 
virtual int setTitle (const char *str)=0
 
virtual int setIcon (bool val)=0
 
virtual int setFixed (bool val)=0
 
virtual int setInverse (bool val)=0
 
virtual bool getInverse ()=0
 
virtual int setBackground (const char *str)=0
 
virtual int setSize (float rwidth, float rheight)=0
 
virtual int getSize (float &width, float &height)=0
 
virtual float getWidth ()=0
 
virtual float getHeight ()=0
 
virtual int setOffset (float rx, float ry)=0
 
virtual int getOffset (float &x, float &y)=0
 
virtual int getCoords (Rect &rect)=0
 
virtual Rect getCoords ()=0
 
virtual int allocColor (float red, float grn, float blu)=0
 
virtual int setColor (int type, int ind)=0
 
virtual int setLineWidth (int type, float width)=0
 
virtual int setLineStyle (int type, int style)=0
 
virtual int setFillStyle (int type, int style)=0
 
virtual int drawLine (int type, float x1, float y1, float x2, float y2)=0
 
virtual int drawLine (int type, Points &pts)=0
 
virtual int drawFill (int type, Points &pts)=0
 
virtual int setImageAlign (int h, int v)=0
 
virtual int drawImage (Image &image, float x, float y)=0
 
virtual int drawImage (Image &image, int bgcolor, float x, float y)=0
 
virtual int getImage (Image &image)=0
 
virtual int setFont (const char *name)=0
 
virtual int setTextAlign (int h, int v)=0
 
virtual int drawText (Point &pt, const char *str)=0
 
virtual Rect getClip ()=0
 
virtual int setClip (float x1, float y1, float x2, float y2)=0
 
virtual int setClip (Rect rect)=0
 
virtual int setCursor (int type)=0
 
virtual int copyFrame (int dest, int src)=0
 
virtual int displayFrame (int ind)=0
 
virtual int clearFrame (int ind)=0
 
virtual int newFrame (int ind)=0
 
virtual int newFrame ()=0
 
virtual bool isLooping ()=0
 
virtual int getFrame ()=0
 
virtual int setFrame (int ind)=0
 
virtual int incFrame (int step)=0
 
virtual int deleteFrame (int ind)=0
 
virtual int getNumFrames ()=0
 
virtual int message (const char *str)=0
 
virtual int bell (int len)=0
 
virtual void callback (const char *ev_str, const char *ev_data, const void *data)=0
 

Additional Inherited Members

- Static Public Attributes inherited from WXP::Device
static const int BASE = 0
 
static const int LINE = 1
 
static const int MARK = 2
 
static const int FILL = 3
 
static const int TEXT = 4
 
static const int LAST = -1
 
static const int CUR = -2
 
static const int WIN = -3
 
static const int ALL = -4
 
static const int CURSOR_X = 0
 
static const int CURSOR_PTR = 1
 
static const int CURSOR_MOVE = 2
 
static const int CURSOR_LOOP = 3
 
static const int CURSOR_STOP = 4
 
static const int CURSOR_DRAW = 5
 
static const int CURSOR_RECT = 6
 
static const int CURSOR_PLUS = 6
 
static const int CURSOR_TEXT = 7
 
static const int CURSOR_WAIT = 8
 
static const int ALIGN_HLEFT = 1
 
static const int ALIGN_HCENTER = 2
 
static const int ALIGN_HRIGHT = 3
 
static const int ALIGN_VBOTTOM = 1
 
static const int ALIGN_VCENTER = 2
 
static const int ALIGN_VTOP = 3
 

Detailed Description

This class plots to HPGL printers.

Author
Dan Vietor

Member Function Documentation

◆ addCallback()

int Hpgl::addCallback ( const char *  event,
Listener list,
const void *  data 
)
virtual

Implements WXP::Device.

◆ allocColor()

int Hpgl::allocColor ( float  red,
float  grn,
float  blu 
)
virtual

Implements WXP::Device.

◆ bell()

int Hpgl::bell ( int  len)
virtual

Implements WXP::Device.

◆ callback()

void Hpgl::callback ( const char *  ev_str,
const char *  ev_data,
const void *  data 
)
virtual

Implements WXP::Device.

◆ clear()

int Hpgl::clear ( )
virtual

Implements WXP::Device.

◆ clearFrame()

int Hpgl::clearFrame ( int  ind)
virtual

Implements WXP::Device.

◆ clearRect()

int Hpgl::clearRect ( Rect rect)
virtual

Implements WXP::Device.

◆ close()

int Hpgl::close ( )
virtual

Implements WXP::Device.

◆ copyFrame()

int Hpgl::copyFrame ( int  dest,
int  src 
)
virtual

Implements WXP::Device.

◆ deleteFrame()

int Hpgl::deleteFrame ( int  ind)
virtual

Implements WXP::Device.

◆ displayFrame()

int Hpgl::displayFrame ( int  ind)
virtual

Implements WXP::Device.

◆ doCallback()

int Hpgl::doCallback ( const char *  ev_str,
const char *  ev_data 
)
virtual

Implements WXP::Device.

◆ drawFill()

int Hpgl::drawFill ( int  type,
Points pts 
)
virtual

Implements WXP::Device.

◆ drawImage() [1/2]

int Hpgl::drawImage ( Image image,
float  x,
float  y 
)
virtual

Implements WXP::Device.

◆ drawImage() [2/2]

int Hpgl::drawImage ( Image image,
int  color,
float  x,
float  y 
)
virtual

Implements WXP::Device.

◆ drawLine() [1/2]

int Hpgl::drawLine ( int  type,
float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

Implements WXP::Device.

◆ drawLine() [2/2]

int Hpgl::drawLine ( int  type,
Points pts 
)
virtual

Implements WXP::Device.

◆ drawText()

int Hpgl::drawText ( Point pt,
const char *  str 
)
virtual

Implements WXP::Device.

◆ getClip()

Rect Hpgl::getClip ( )
virtual

Implements WXP::Device.

◆ getCoords() [1/2]

Rect Hpgl::getCoords ( )
virtual

Implements WXP::Device.

◆ getCoords() [2/2]

int Hpgl::getCoords ( Rect rect)
virtual

Implements WXP::Device.

◆ getDevice()

int Hpgl::getDevice ( String str)
virtual

Implements WXP::Device.

◆ getFrame()

int Hpgl::getFrame ( )
virtual

Implements WXP::Device.

◆ getHeight()

float WXP::Hpgl::getHeight ( )
inlinevirtual

Implements WXP::Device.

◆ getImage()

int Hpgl::getImage ( Image image)
virtual

Implements WXP::Device.

◆ getInverse()

bool Hpgl::getInverse ( )
virtual

Implements WXP::Device.

◆ getNumFrames()

int Hpgl::getNumFrames ( )
virtual

Implements WXP::Device.

◆ getOffset()

int Hpgl::getOffset ( float &  x,
float &  y 
)
virtual

Implements WXP::Device.

◆ getSize()

int Hpgl::getSize ( float &  width,
float &  height 
)
virtual

Implements WXP::Device.

◆ getWidth()

float WXP::Hpgl::getWidth ( )
inlinevirtual

Implements WXP::Device.

◆ incFrame()

int Hpgl::incFrame ( int  step)
virtual

Implements WXP::Device.

◆ init()

int Hpgl::init ( )
virtual

Implements WXP::Device.

◆ isLooping()

bool Hpgl::isLooping ( )
virtual

Implements WXP::Device.

◆ manage()

int Hpgl::manage ( )
virtual

Implements WXP::Device.

◆ message()

int Hpgl::message ( const char *  str)
virtual

Implements WXP::Device.

◆ newFrame() [1/2]

int Hpgl::newFrame ( )
virtual

Implements WXP::Device.

◆ newFrame() [2/2]

int Hpgl::newFrame ( int  ind)
virtual

Implements WXP::Device.

◆ open()

int Hpgl::open ( )
virtual

Implements WXP::Device.

◆ resize()

int Hpgl::resize ( float  rwidth,
float  rheight 
)
virtual

Implements WXP::Device.

◆ setBackground()

int Hpgl::setBackground ( const char *  str)
virtual

Implements WXP::Device.

◆ setClip() [1/2]

int Hpgl::setClip ( float  x1,
float  y1,
float  x2,
float  y2 
)
virtual

Implements WXP::Device.

◆ setClip() [2/2]

int Hpgl::setClip ( Rect  rect)
virtual

Implements WXP::Device.

◆ setColor()

int Hpgl::setColor ( int  type,
int  ind 
)
virtual

Implements WXP::Device.

◆ setCursor()

int Hpgl::setCursor ( int  type)
virtual

Implements WXP::Device.

◆ setFillStyle()

int Hpgl::setFillStyle ( int  type,
int  style 
)
virtual

Implements WXP::Device.

◆ setFixed()

int Hpgl::setFixed ( bool  val)
virtual

Implements WXP::Device.

◆ setFont()

int Hpgl::setFont ( const char *  name)
virtual

Implements WXP::Device.

◆ setFrame()

int Hpgl::setFrame ( int  ind)
virtual

Implements WXP::Device.

◆ setIcon()

int Hpgl::setIcon ( bool  val)
virtual

Implements WXP::Device.

◆ setImageAlign()

int Hpgl::setImageAlign ( int  h,
int  v 
)
virtual

Implements WXP::Device.

◆ setInverse()

int Hpgl::setInverse ( bool  val)
virtual

Implements WXP::Device.

◆ setLineStyle()

int Hpgl::setLineStyle ( int  type,
int  style 
)
virtual

Implements WXP::Device.

◆ setLineWidth()

int Hpgl::setLineWidth ( int  type,
float  width 
)
virtual

Implements WXP::Device.

◆ setOffset()

int Hpgl::setOffset ( float  rx,
float  ry 
)
virtual

Implements WXP::Device.

◆ setParam()

int Hpgl::setParam ( const char *  str)
virtual

Implements WXP::Device.

◆ setSize()

int Hpgl::setSize ( float  rwidth,
float  rheight 
)
virtual

Implements WXP::Device.

◆ setTextAlign()

int Hpgl::setTextAlign ( int  h,
int  v 
)
virtual

Implements WXP::Device.

◆ setTitle()

int Hpgl::setTitle ( const char *  str)
virtual

Implements WXP::Device.

◆ unmanage()

int Hpgl::unmanage ( )
virtual

Implements WXP::Device.

◆ update()

int Hpgl::update ( )
virtual

Implements WXP::Device.


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