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

This class outputs MetaFile graphics commands to file. More...

#include "../include/MetaFile.h"

Inheritance diagram for WXP::MetaFile:
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 outputs MetaFile graphics commands to file.

Author
Dan Vietor

Member Function Documentation

◆ addCallback()

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

Implements WXP::Device.

◆ allocColor()

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

Implements WXP::Device.

◆ bell()

int MetaFile::bell ( int  len)
virtual

Implements WXP::Device.

◆ callback()

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

Implements WXP::Device.

◆ clear()

int MetaFile::clear ( )
virtual

Implements WXP::Device.

◆ clearFrame()

int MetaFile::clearFrame ( int  ind)
virtual

Implements WXP::Device.

◆ clearRect()

int MetaFile::clearRect ( Rect rect)
virtual

Implements WXP::Device.

◆ close()

int MetaFile::close ( )
virtual

Implements WXP::Device.

◆ copyFrame()

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

Implements WXP::Device.

◆ deleteFrame()

int MetaFile::deleteFrame ( int  ind)
virtual

Implements WXP::Device.

◆ displayFrame()

int MetaFile::displayFrame ( int  ind)
virtual

Implements WXP::Device.

◆ doCallback()

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

Implements WXP::Device.

◆ drawFill()

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

Implements WXP::Device.

◆ drawImage() [1/2]

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

Implements WXP::Device.

◆ drawImage() [2/2]

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

Implements WXP::Device.

◆ drawLine() [1/2]

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

Implements WXP::Device.

◆ drawLine() [2/2]

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

Implements WXP::Device.

◆ drawText()

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

Implements WXP::Device.

◆ getClip()

Rect MetaFile::getClip ( )
virtual

Implements WXP::Device.

◆ getCoords() [1/2]

Rect MetaFile::getCoords ( )
virtual

Implements WXP::Device.

◆ getCoords() [2/2]

int MetaFile::getCoords ( Rect rect)
virtual

Implements WXP::Device.

◆ getDevice()

int MetaFile::getDevice ( String str)
virtual

Implements WXP::Device.

◆ getFrame()

int MetaFile::getFrame ( )
virtual

Implements WXP::Device.

◆ getHeight()

float WXP::MetaFile::getHeight ( )
inlinevirtual

Implements WXP::Device.

◆ getImage()

int MetaFile::getImage ( Image image)
virtual

Implements WXP::Device.

◆ getInverse()

bool MetaFile::getInverse ( )
virtual

Implements WXP::Device.

◆ getNumFrames()

int MetaFile::getNumFrames ( )
virtual

Implements WXP::Device.

◆ getOffset()

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

Implements WXP::Device.

◆ getSize()

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

Implements WXP::Device.

◆ getWidth()

float WXP::MetaFile::getWidth ( )
inlinevirtual

Implements WXP::Device.

◆ incFrame()

int MetaFile::incFrame ( int  step)
virtual

Implements WXP::Device.

◆ init()

int MetaFile::init ( )
virtual

Implements WXP::Device.

◆ isLooping()

bool MetaFile::isLooping ( )
virtual

Implements WXP::Device.

◆ manage()

int MetaFile::manage ( )
virtual

Implements WXP::Device.

◆ message()

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

Implements WXP::Device.

◆ newFrame() [1/2]

int MetaFile::newFrame ( )
virtual

Implements WXP::Device.

◆ newFrame() [2/2]

int MetaFile::newFrame ( int  ind)
virtual

Implements WXP::Device.

◆ open()

int MetaFile::open ( )
virtual

Implements WXP::Device.

◆ resize()

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

Implements WXP::Device.

◆ setBackground()

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

Implements WXP::Device.

◆ setClip() [1/2]

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

Implements WXP::Device.

◆ setClip() [2/2]

int MetaFile::setClip ( Rect  rect)
virtual

Implements WXP::Device.

◆ setColor()

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

Implements WXP::Device.

◆ setCursor()

int MetaFile::setCursor ( int  type)
virtual

Implements WXP::Device.

◆ setFillStyle()

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

Implements WXP::Device.

◆ setFixed()

int MetaFile::setFixed ( bool  val)
virtual

Implements WXP::Device.

◆ setFont()

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

Implements WXP::Device.

◆ setFrame()

int MetaFile::setFrame ( int  ind)
virtual

Implements WXP::Device.

◆ setIcon()

int MetaFile::setIcon ( bool  val)
virtual

Implements WXP::Device.

◆ setImageAlign()

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

Implements WXP::Device.

◆ setInverse()

int MetaFile::setInverse ( bool  val)
virtual

Implements WXP::Device.

◆ setLineStyle()

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

Implements WXP::Device.

◆ setLineWidth()

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

Implements WXP::Device.

◆ setOffset()

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

Implements WXP::Device.

◆ setParam()

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

Implements WXP::Device.

◆ setSize()

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

Implements WXP::Device.

◆ setTextAlign()

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

Implements WXP::Device.

◆ setTitle()

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

Implements WXP::Device.

◆ unmanage()

int MetaFile::unmanage ( )
virtual

Implements WXP::Device.

◆ update()

int MetaFile::update ( )
virtual

Implements WXP::Device.


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