WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
WXP::Device Class Referenceabstract

This virtual class defines methods for output to generic device. More...

#include "../include/Device.h"

Inheritance diagram for WXP::Device:
WXP::Hpgl WXP::MetaFile WXP::Postscript WXP::XWindow

Public Member Functions

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
 

Static Public Attributes

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 virtual class defines methods for output to generic device.

Author
Dan Vietor

Member Function Documentation

◆ addCallback()

virtual int WXP::Device::addCallback ( const char *  event,
Listener list,
const void *  data 
)
pure virtual

Implemented in WXP::XWindow.

◆ allocColor()

virtual int WXP::Device::allocColor ( float  red,
float  grn,
float  blu 
)
pure virtual

Implemented in WXP::XWindow.

◆ bell()

virtual int WXP::Device::bell ( int  len)
pure virtual

Implemented in WXP::XWindow.

◆ callback()

virtual void WXP::Device::callback ( const char *  ev_str,
const char *  ev_data,
const void *  data 
)
pure virtual

Implemented in WXP::XWindow.

◆ clear()

virtual int WXP::Device::clear ( )
pure virtual

Implemented in WXP::XWindow.

◆ clearFrame()

virtual int WXP::Device::clearFrame ( int  ind)
pure virtual

Implemented in WXP::XWindow.

◆ close()

virtual int WXP::Device::close ( )
pure virtual

Implemented in WXP::XWindow.

◆ copyFrame()

virtual int WXP::Device::copyFrame ( int  dest,
int  src 
)
pure virtual

Implemented in WXP::XWindow.

◆ deleteFrame()

virtual int WXP::Device::deleteFrame ( int  ind)
pure virtual

Implemented in WXP::XWindow.

◆ displayFrame()

virtual int WXP::Device::displayFrame ( int  ind)
pure virtual

Implemented in WXP::XWindow.

◆ drawFill()

virtual int WXP::Device::drawFill ( int  type,
Points pts 
)
pure virtual

Implemented in WXP::XWindow.

◆ drawImage() [1/2]

virtual int WXP::Device::drawImage ( Image image,
float  x,
float  y 
)
pure virtual

Implemented in WXP::XWindow.

◆ drawImage() [2/2]

virtual int WXP::Device::drawImage ( Image image,
int  bgcolor,
float  x,
float  y 
)
pure virtual

Implemented in WXP::XWindow.

◆ drawLine() [1/2]

virtual int WXP::Device::drawLine ( int  type,
float  x1,
float  y1,
float  x2,
float  y2 
)
pure virtual

Implemented in WXP::XWindow.

◆ drawLine() [2/2]

virtual int WXP::Device::drawLine ( int  type,
Points pts 
)
pure virtual

Implemented in WXP::XWindow.

◆ drawText()

virtual int WXP::Device::drawText ( Point pt,
const char *  str 
)
pure virtual

Implemented in WXP::XWindow.

◆ getClip()

virtual Rect WXP::Device::getClip ( )
pure virtual

Implemented in WXP::XWindow.

◆ getCoords() [1/2]

virtual Rect WXP::Device::getCoords ( )
pure virtual

Implemented in WXP::XWindow.

◆ getCoords() [2/2]

virtual int WXP::Device::getCoords ( Rect rect)
pure virtual

Implemented in WXP::XWindow.

◆ getDevice()

virtual int WXP::Device::getDevice ( String str)
pure virtual

Implemented in WXP::XWindow.

◆ getFrame()

virtual int WXP::Device::getFrame ( )
pure virtual

Implemented in WXP::XWindow.

◆ getImage()

virtual int WXP::Device::getImage ( Image image)
pure virtual

Implemented in WXP::XWindow.

◆ getInverse()

virtual bool WXP::Device::getInverse ( )
pure virtual

Implemented in WXP::XWindow.

◆ getNumFrames()

virtual int WXP::Device::getNumFrames ( )
pure virtual

Implemented in WXP::XWindow.

◆ getOffset()

virtual int WXP::Device::getOffset ( float &  x,
float &  y 
)
pure virtual

Implemented in WXP::XWindow.

◆ getSize()

virtual int WXP::Device::getSize ( float &  width,
float &  height 
)
pure virtual

Implemented in WXP::XWindow.

◆ incFrame()

virtual int WXP::Device::incFrame ( int  step)
pure virtual

Implemented in WXP::XWindow.

◆ init()

virtual int WXP::Device::init ( )
pure virtual

Implemented in WXP::XWindow.

◆ isLooping()

virtual bool WXP::Device::isLooping ( )
pure virtual

Implemented in WXP::XWindow.

◆ manage()

virtual int WXP::Device::manage ( )
pure virtual

Implemented in WXP::XWindow.

◆ message()

virtual int WXP::Device::message ( const char *  str)
pure virtual

Implemented in WXP::XWindow.

◆ newFrame() [1/2]

virtual int WXP::Device::newFrame ( )
pure virtual

Implemented in WXP::XWindow.

◆ newFrame() [2/2]

virtual int WXP::Device::newFrame ( int  ind)
pure virtual

Implemented in WXP::XWindow.

◆ open()

virtual int WXP::Device::open ( )
pure virtual

Implemented in WXP::XWindow.

◆ resize()

virtual int WXP::Device::resize ( float  rwidth,
float  rheight 
)
pure virtual

Implemented in WXP::XWindow.

◆ setBackground()

virtual int WXP::Device::setBackground ( const char *  str)
pure virtual

Implemented in WXP::XWindow.

◆ setClip() [1/2]

virtual int WXP::Device::setClip ( float  x1,
float  y1,
float  x2,
float  y2 
)
pure virtual

Implemented in WXP::XWindow.

◆ setClip() [2/2]

virtual int WXP::Device::setClip ( Rect  rect)
pure virtual

Implemented in WXP::XWindow.

◆ setColor()

virtual int WXP::Device::setColor ( int  type,
int  ind 
)
pure virtual

Implemented in WXP::XWindow.

◆ setCursor()

virtual int WXP::Device::setCursor ( int  type)
pure virtual

Implemented in WXP::XWindow.

◆ setFillStyle()

virtual int WXP::Device::setFillStyle ( int  type,
int  style 
)
pure virtual

Implemented in WXP::XWindow.

◆ setFixed()

virtual int WXP::Device::setFixed ( bool  val)
pure virtual

Implemented in WXP::XWindow.

◆ setFont()

virtual int WXP::Device::setFont ( const char *  name)
pure virtual

Implemented in WXP::XWindow.

◆ setFrame()

virtual int WXP::Device::setFrame ( int  ind)
pure virtual

Implemented in WXP::XWindow.

◆ setIcon()

virtual int WXP::Device::setIcon ( bool  val)
pure virtual

Implemented in WXP::XWindow.

◆ setImageAlign()

virtual int WXP::Device::setImageAlign ( int  h,
int  v 
)
pure virtual

Implemented in WXP::XWindow.

◆ setInverse()

virtual int WXP::Device::setInverse ( bool  val)
pure virtual

Implemented in WXP::XWindow.

◆ setLineStyle()

virtual int WXP::Device::setLineStyle ( int  type,
int  style 
)
pure virtual

Implemented in WXP::XWindow.

◆ setLineWidth()

virtual int WXP::Device::setLineWidth ( int  type,
float  width 
)
pure virtual

Implemented in WXP::XWindow.

◆ setOffset()

virtual int WXP::Device::setOffset ( float  rx,
float  ry 
)
pure virtual

Implemented in WXP::XWindow.

◆ setParam()

virtual int WXP::Device::setParam ( const char *  str)
pure virtual

Implemented in WXP::XWindow.

◆ setSize()

virtual int WXP::Device::setSize ( float  rwidth,
float  rheight 
)
pure virtual

Implemented in WXP::XWindow.

◆ setTextAlign()

virtual int WXP::Device::setTextAlign ( int  h,
int  v 
)
pure virtual

Implemented in WXP::XWindow.

◆ setTitle()

virtual int WXP::Device::setTitle ( const char *  str)
pure virtual

Implemented in WXP::XWindow.

◆ unmanage()

virtual int WXP::Device::unmanage ( )
pure virtual

Implemented in WXP::XWindow.

◆ update()

virtual int WXP::Device::update ( )
pure virtual

Implemented in WXP::XWindow.


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