GUIDOLib
1.7.7
Guido Engine Internal Documentation
|
1 #ifndef __DecoratorDevice__ 2 #define __DecoratorDevice__ 36 virtual void InvalidateRect(
float left,
float top,
float right,
float bottom );
39 virtual void MoveTo(
float x,
float y );
40 virtual void LineTo(
float x,
float y );
41 virtual void Line(
float x1,
float y1,
float x2,
float y2 );
42 virtual void Frame(
float left,
float top,
float right,
float bottom );
43 virtual void Arc(
float left,
float top,
44 float right,
float bottom,
45 float startX,
float startY,
46 float endX,
float endY );
47 virtual void FrameEllipse(
float x,
float y,
float width,
float height);
50 virtual void Ellipse(
float x,
float y,
float width,
float height,
const VGColor& color);
51 virtual void Triangle(
float x1,
float y1,
54 virtual void Polygon(
const float * xCoords,
const float * yCoords,
int count );
55 virtual void Rectangle(
float left,
float top,
float right,
float bottom );
81 int nSrcWidth,
int nSrcHeight,
float alpha = -1.0);
83 int dstWidth,
int dstHeight,
84 VGDevice* pSrcDC,
float alpha = -1.0);
86 int dstWidth,
int dstHeight,
89 int nSrcWidth,
int nSrcHeight,
float alpha = -1.0);
92 virtual void SetScale(
float x,
float y );
93 virtual void SetOrigin(
float x,
float y );
101 virtual void NotifySize(
int inWidth,
int inHeight );
108 unsigned int inSymbolID );
125 virtual const char*
GetImageData(
const char* & outDataPtr,
int& outLength);
176 inline void DecoratorDevice::Arc(
float left,
float top,
float right,
float bottom,
float startX,
float startY,
float endX,
float endY ) {
177 fDevice->
Arc (left, top, right, bottom, startX, startY, endX, endY);
253 int nSrcWidth,
int nSrcHeight,
float alpha) {
254 return fDevice->
CopyPixels(xDest, yDest, pSrcDC, xSrc, ySrc, nSrcWidth, nSrcHeight, alpha);
261 int xSrc,
int ySrc,
int nSrcWidth,
int nSrcHeight,
float alpha) {
262 return fDevice->
CopyPixels(xDest, yDest, dstWidth, dstHeight, pSrcDC, xSrc, ySrc, nSrcWidth, nSrcHeight, alpha);
virtual bool BeginDraw()
Definition: DecoratorDevice.h:148
virtual void Triangle(float x1, float y1, float x2, float y2, float x3, float y3)=0
virtual void ReleaseImageData(const char *) const =0
Release the pointer returned by GetImageData.
virtual void PushPenWidth(float width)
Definition: DecoratorDevice.h:216
virtual void Rectangle(float left, float top, float right, float bottom)
Definition: DecoratorDevice.h:185
virtual const VGFont * GetTextFont() const =0
Returns the currently selected text VGFont.
virtual void * GetBitMapPixels()
Allows pixels operations and returns a pointer to the bitmap pixels.
Definition: DecoratorDevice.h:336
virtual void LineTo(float x, float y)
Definition: DecoratorDevice.h:161
virtual int GetWidth() const =0
Returns the width (set via NotifySize) of the current VGDevice.
virtual bool IsValid() const
Returns the ability of the current VGdevice to be drawn into.
Definition: DecoratorDevice.h:143
virtual const char * GetImageData(const char *&outDataPtr, int &outLength)=0
Gives the current device data and returns the data associated mime type.
virtual void * GetNativeContext() const
Exports all graphical data to an image file.
Definition: DecoratorDevice.h:359
virtual float GetDPITag() const
Returns the printing resolution of the current VGDevice.
Definition: DecoratorDevice.h:333
virtual void SetTextFont(const VGFont *font)=0
virtual void SetRasterOpMode(VRasterOpMode ROpMode)
Definition: DecoratorDevice.h:241
virtual void * GetNativeContext() const =0
Exports all graphical data to an image file.
virtual void FrameEllipse(float x, float y, float width, float height)=0
Draws an ellipse.
virtual void EndDraw()
Definition: DecoratorDevice.h:151
virtual bool CopyPixels(VGDevice *pSrcDC, float alpha=-1.0)
Definition: DecoratorDevice.h:249
virtual void SelectPen(const VGColor &inColor, float witdh)
Definition: DecoratorDevice.h:204
virtual void PopFillColor()
Definition: DecoratorDevice.h:238
virtual VGColor GetFontColor() const =0
Returns the text/music color of the current VGDevice.
virtual void MoveTo(float x, float y)=0
Moves the current position to the point specified by (x,y).
virtual void DrawString(float x, float y, const char *s, int inCharCount)
Definition: DecoratorDevice.h:307
virtual void FrameEllipse(float x, float y, float width, float height)
Draws an ellipse.
Definition: DecoratorDevice.h:170
DecoratorDevice(VGDevice *dev, bool owner=true)
Definition: DecoratorDevice.h:28
virtual float GetXScale() const =0
virtual void PopPenColor()=0
virtual const VGFont * GetTextFont() const
Returns the currently selected text VGFont.
Definition: DecoratorDevice.h:199
virtual void SelectPenWidth(float witdh)
Creates a new VGPen object with the specified VGColor.
Definition: DecoratorDevice.h:210
virtual void InvalidateRect(float left, float top, float right, float bottom)
Definition: DecoratorDevice.h:154
virtual void ReleaseBitMapPixels()=0
Update bitmap pixels and ends pixels operations.
virtual int GetHeight() const
Returns the height (set via NotifySize) of the current VGDevice.
Definition: DecoratorDevice.h:299
virtual void InvalidateRect(float left, float top, float right, float bottom)=0
virtual void SetFontBackgroundColor(const VGColor &inColor)=0
Sets the text/music background color for the current VGDevice.
virtual void Frame(float left, float top, float right, float bottom)
Definition: DecoratorDevice.h:167
virtual float GetDPITag() const =0
Returns the printing resolution of the current VGDevice.
virtual const VGFont * GetMusicFont() const =0
Returns the currently selected music VGFont.
virtual bool IsValid() const =0
Returns the ability of the current VGdevice to be drawn into.
virtual float GetYScale() const
Definition: DecoratorDevice.h:284
virtual VGColor GetFontBackgroundColor() const
Returns the text/music background color of the current VGDevice.
Definition: DecoratorDevice.h:319
virtual void Triangle(float x1, float y1, float x2, float y2, float x3, float y3)
Definition: DecoratorDevice.h:179
virtual VGColor GetFontColor() const
Returns the text/music color of the current VGDevice.
Definition: DecoratorDevice.h:313
virtual void NotifySize(int inWidth, int inHeight)
Definition: DecoratorDevice.h:293
virtual void SetFontColor(const VGColor &inColor)
Sets the text/music color for the current VGDevice.
Definition: DecoratorDevice.h:310
virtual void SelectPenColor(const VGColor &inColor)
Creates a new VGPen object with the specified VGColor.
Definition: DecoratorDevice.h:207
virtual bool BeginDraw()=0
virtual void Polygon(const float *xCoords, const float *yCoords, int count)
Definition: DecoratorDevice.h:182
virtual void PushPen(const VGColor &inColor, float inWidth)=0
virtual VRasterOpMode GetRasterOpMode() const =0
virtual float GetYOrigin() const
Definition: DecoratorDevice.h:290
virtual unsigned int GetFontAlign() const =0
virtual float GetXOrigin() const =0
virtual void PopPenWidth()=0
virtual void PushFillColor(const VGColor &inColor)=0
VGDevice * fDevice
Definition: DecoratorDevice.h:24
virtual void SelectPenColor(const VGColor &inColor)=0
Creates a new VGPen object with the specified VGColor.
virtual VRasterOpMode GetRasterOpMode() const
Definition: DecoratorDevice.h:244
virtual void Ellipse(float x, float y, float width, float height, const VGColor &color)
Draws a filled ellipse.
Definition: DecoratorDevice.h:173
virtual void Ellipse(float x, float y, float width, float height, const VGColor &color)=0
Draws a filled ellipse.
virtual void SetScale(float x, float y)=0
Sets the scale factors of the current VGDevice to the input values.
virtual void SelectFillColor(const VGColor &c)=0
virtual void ReleaseBitMapPixels()
Update bitmap pixels and ends pixels operations.
Definition: DecoratorDevice.h:339
virtual void PushPenColor(const VGColor &inColor)
Definition: DecoratorDevice.h:213
virtual void PopPenWidth()
Definition: DecoratorDevice.h:222
virtual void Line(float x1, float y1, float x2, float y2)
Definition: DecoratorDevice.h:164
virtual int GetHeight() const =0
Returns the height (set via NotifySize) of the current VGDevice.
virtual void SetMusicFont(const VGFont *font)=0
virtual void SelectPenWidth(float witdh)=0
Creates a new VGPen object with the specified VGColor.
Generic pure virtual class for manipulating platform independant drawing devices and fonts.
Definition: VGSystem.h:61
virtual bool CopyPixels(VGDevice *pSrcDC, float alpha=-1.0)=0
virtual void SetDPITag(float inDPI)
Sets the printing resolution of the current VGDevice.
Definition: DecoratorDevice.h:330
virtual void PopPen()
Definition: DecoratorDevice.h:232
virtual void SetFontColor(const VGColor &inColor)=0
Sets the text/music color for the current VGDevice.
virtual void NotifySize(int inWidth, int inHeight)=0
virtual void LineTo(float x, float y)=0
virtual void SetFontAlign(unsigned int inAlign)
Definition: DecoratorDevice.h:322
virtual void SetFontBackgroundColor(const VGColor &inColor)
Sets the text/music background color for the current VGDevice.
Definition: DecoratorDevice.h:316
virtual void PopFillColor()=0
Generic platform independant drawing device.
Definition: VGDevice.h:68
Generic class to manipulate device independant colors.
Definition: VGColor.h:34
virtual void PopPenColor()
Definition: DecoratorDevice.h:219
bool fDevOwner
Definition: DecoratorDevice.h:23
virtual void Frame(float left, float top, float right, float bottom)=0
virtual void SetFontAlign(unsigned int inAlign)=0
VRasterOpMode
Raster operation modes (color fill, bit copy, etc.)
Definition: VGDevice.h:77
virtual void DrawMusicSymbol(float x, float y, unsigned int inSymbolID)
Definition: DecoratorDevice.h:304
virtual void SelectFillColor(const VGColor &c)
Definition: DecoratorDevice.h:226
virtual VGColor GetFontBackgroundColor() const =0
Returns the text/music background color of the current VGDevice.
virtual void SetMusicFont(const VGFont *font)
Definition: DecoratorDevice.h:190
virtual void PushPenColor(const VGColor &inColor)=0
virtual void DeviceToLogical(float *x, float *y) const =0
virtual void Rectangle(float left, float top, float right, float bottom)=0
virtual void PushPen(const VGColor &inColor, float inWidth)
Definition: DecoratorDevice.h:229
virtual float GetYScale() const =0
virtual void DeviceToLogical(float *x, float *y) const
Definition: DecoratorDevice.h:278
virtual void PushPenWidth(float width)=0
virtual void OffsetOrigin(float x, float y)=0
Offsets the current VGDevice's origin (see above).
virtual const VGFont * GetMusicFont() const
Returns the currently selected music VGFont.
Definition: DecoratorDevice.h:193
virtual void SetRasterOpMode(VRasterOpMode ROpMode)=0
virtual void PushFillColor(const VGColor &inColor)
Definition: DecoratorDevice.h:235
virtual void LogicalToDevice(float *x, float *y) const
Definition: DecoratorDevice.h:275
virtual void Arc(float left, float top, float right, float bottom, float startX, float startY, float endX, float endY)=0
virtual float GetYOrigin() const =0
virtual void SetDPITag(float inDPI)=0
Sets the printing resolution of the current VGDevice.
Generic pure virtual & device-independant font class.
Definition: VGFont.h:36
virtual void LogicalToDevice(float *x, float *y) const =0
virtual VGSystem * getVGSystem() const =0
temporary hack - must be removed asap
virtual void DrawMusicSymbol(float x, float y, unsigned int inSymbolID)=0
Definition: DecoratorDevice.h:20
virtual void ReleaseImageData(const char *) const
Release the pointer returned by GetImageData.
Definition: DecoratorDevice.h:345
virtual void SetOrigin(float x, float y)
Specifies which VGDevice point (x,y) maps to the window origin (0,0).
Definition: DecoratorDevice.h:269
virtual const char * GetImageData(const char *&outDataPtr, int &outLength)
Gives the current device data and returns the data associated mime type.
Definition: DecoratorDevice.h:342
virtual int GetWidth() const
Returns the width (set via NotifySize) of the current VGDevice.
Definition: DecoratorDevice.h:296
virtual unsigned int GetFontAlign() const
Definition: DecoratorDevice.h:325
virtual void SetScale(float x, float y)
Sets the scale factors of the current VGDevice to the input values.
Definition: DecoratorDevice.h:266
virtual void Line(float x1, float y1, float x2, float y2)=0
virtual void SetTextFont(const VGFont *font)
Definition: DecoratorDevice.h:196
virtual void MoveTo(float x, float y)
Moves the current position to the point specified by (x,y).
Definition: DecoratorDevice.h:158
virtual float GetXScale() const
Definition: DecoratorDevice.h:281
virtual void SelectPen(const VGColor &inColor, float witdh)=0
virtual void * GetBitMapPixels()=0
Allows pixels operations and returns a pointer to the bitmap pixels.
virtual VGSystem * getVGSystem() const
temporary hack - must be removed asap
Definition: DecoratorDevice.h:349
virtual ~DecoratorDevice()
Definition: DecoratorDevice.h:29
virtual void Arc(float left, float top, float right, float bottom, float startX, float startY, float endX, float endY)
Definition: DecoratorDevice.h:176
virtual void SetOrigin(float x, float y)=0
Specifies which VGDevice point (x,y) maps to the window origin (0,0).
virtual void OffsetOrigin(float x, float y)
Offsets the current VGDevice's origin (see above).
Definition: DecoratorDevice.h:272
virtual float GetXOrigin() const
Definition: DecoratorDevice.h:287
virtual void DrawString(float x, float y, const char *s, int inCharCount)=0
virtual void Polygon(const float *xCoords, const float *yCoords, int count)=0