WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
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)

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: