GUIDOLib
1.7.7
Guido Engine Internal Documentation
|
29 #include "NullGFont.h" 36 : mSys(sys), mCurrTextFont(
"textFont", 10, 0), mCurrMusicFont(
"musicFont", 10, 0) {}
38 : mSys(sys), mCurrTextFont(
"textFont", 10, 0), mCurrMusicFont(
"musicFont", 10, 0) {}
41 virtual bool IsValid()
const {
return true; }
46 virtual void InvalidateRect(
float left,
float top,
float right,
float bottom ) {}
49 virtual void MoveTo(
float x,
float y ) {}
50 virtual void LineTo(
float x,
float y ) {}
51 virtual void Line(
float x1,
float y1,
float x2,
float y2 ) {}
52 virtual void Frame(
float left,
float top,
float right,
float bottom ) {}
53 virtual void Arc(
float left,
float top,
float right,
float bottom,
float startX,
float startY,
float endX,
float endY ) {}
54 virtual void FrameEllipse(
float x,
float y,
float width,
float height) {}
57 virtual void Ellipse(
float x,
float y,
float width,
float height,
const VGColor& color) {}
58 virtual void Triangle(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3 ) {}
59 virtual void Polygon(
const float * xCoords,
const float * yCoords,
int count ) {}
60 virtual void Rectangle(
float left,
float top,
float right,
float bottom ) {}
80 virtual bool CopyPixels(
int xDest,
int yDest,
VGDevice* pSrcDC,
int xSrc,
int ySrc,
int nSrcWidth,
int nSrcHeight,
float alpha = -1.0 ) {
return true; }
81 virtual bool CopyPixels(
int xDest,
int yDest,
int dstWidth,
int dstHeight,
VGDevice* pSrcDC,
float alpha = -1.0 ) {
return true; }
82 virtual bool CopyPixels(
int xDest,
int yDest,
int dstWidth,
int dstHeight,
VGDevice* pSrcDC,
int xSrc,
int ySrc,
int nSrcWidth,
int nSrcHeight,
float alpha = -1.0) {
return true; }
101 virtual void DrawString(
float x,
float y,
const char * s,
int inCharCount ) {}
116 virtual const char*
GetImageData(
const char* & outDataPtr,
int& outLength) { outLength=0;
return 0;}
virtual void SetDPITag(float inDPI=72.0f)
Sets the printing resolution of the current VGDevice.
Definition: NullGDevice.h:110
virtual void OffsetOrigin(float x, float y)
Offsets the current VGDevice's origin (see above).
Definition: NullGDevice.h:87
virtual float GetDPITag() const
Returns the printing resolution of the current VGDevice.
Definition: NullGDevice.h:111
virtual const VGFont * GetMusicFont() const
Returns the currently selected music VGFont.
Definition: NullGDevice.h:64
virtual void EndDraw()
Definition: NullGDevice.h:45
virtual void SetFontColor(const VGColor &inColor)
Sets the text/music color for the current VGDevice.
Definition: NullGDevice.h:102
virtual int GetWidth() const
Returns the width (set via NotifySize) of the current VGDevice.
Definition: NullGDevice.h:96
virtual VRasterOpMode GetRasterOpMode() const
Definition: NullGDevice.h:76
virtual void PopPenWidth()
Definition: NullGDevice.h:141
virtual void SetRasterOpMode(VRasterOpMode ROpMode)
Definition: NullGDevice.h:75
virtual void ReleaseImageData(const char *) const
Release the pointer returned by GetImageData.
Definition: NullGDevice.h:118
Definition: VGDevice.h:88
virtual void LogicalToDevice(float *x, float *y) const
Definition: NullGDevice.h:88
virtual void SelectPenWidth(float witdh)
Creates a new VGPen object with the specified VGColor.
Definition: NullGDevice.h:135
virtual const VGFont * GetTextFont() const
Returns the currently selected text VGFont.
Definition: NullGDevice.h:66
virtual void Line(float x1, float y1, float x2, float y2)
Definition: NullGDevice.h:51
NullGDevice(VGSystem *sys)
Definition: NullGDevice.h:35
virtual void SetScale(float x, float y)
Sets the scale factors of the current VGDevice to the input values.
Definition: NullGDevice.h:85
virtual void SelectPen(const VGColor &inColor, float width)
Definition: NullGDevice.h:69
virtual void InvalidateRect(float left, float top, float right, float bottom)
Definition: NullGDevice.h:46
virtual void SetOrigin(float x, float y)
Specifies which VGDevice point (x,y) maps to the window origin (0,0).
Definition: NullGDevice.h:86
virtual void DrawMusicSymbol(float x, float y, unsigned int inSymbolID)
Definition: NullGDevice.h:100
virtual float GetXOrigin() const
Definition: NullGDevice.h:92
virtual bool CopyPixels(int xDest, int yDest, int dstWidth, int dstHeight, VGDevice *pSrcDC, float alpha=-1.0)
Definition: NullGDevice.h:81
virtual void Ellipse(float x, float y, float width, float height, const VGColor &color)
Draws a filled ellipse.
Definition: NullGDevice.h:57
virtual bool IsValid() const
Returns the ability of the current VGdevice to be drawn into.
Definition: NullGDevice.h:41
virtual void * GetBitMapPixels()
Allows pixels operations and returns a pointer to the bitmap pixels.
Definition: NullGDevice.h:112
virtual void LineTo(float x, float y)
Definition: NullGDevice.h:50
NullGDevice(VGSystem *sys, int inWidth, int inHeight)
Definition: NullGDevice.h:37
virtual const char * GetImageData(const char *&outDataPtr, int &outLength)
Gives the current device data and returns the data associated mime type.
Definition: NullGDevice.h:116
virtual bool CopyPixels(VGDevice *pSrcDC, float alpha=-1.0)
Definition: NullGDevice.h:79
virtual void SetFontBackgroundColor(const VGColor &inColor)
Sets the text/music background color for the current VGDevice.
Definition: NullGDevice.h:104
virtual bool CopyPixels(int xDest, int yDest, VGDevice *pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, float alpha=-1.0)
Definition: NullGDevice.h:80
virtual void SetMusicFont(const VGFont *font)
Definition: NullGDevice.h:63
virtual float GetYScale() const
Definition: NullGDevice.h:91
virtual float GetXScale() const
Definition: NullGDevice.h:90
virtual void Polygon(const float *xCoords, const float *yCoords, int count)
Definition: NullGDevice.h:59
virtual void MoveTo(float x, float y)
Moves the current position to the point specified by (x,y).
Definition: NullGDevice.h:49
virtual void PopFillColor()
Definition: NullGDevice.h:74
virtual void Rectangle(float left, float top, float right, float bottom)
Definition: NullGDevice.h:60
Generic pure virtual class for manipulating platform independant drawing devices and fonts.
Definition: VGSystem.h:61
virtual void PopPenColor()
Definition: NullGDevice.h:138
Generic platform independant drawing device.
Definition: VGDevice.h:68
Generic class to manipulate device independant colors.
Definition: VGColor.h:34
virtual void Triangle(float x1, float y1, float x2, float y2, float x3, float y3)
Definition: NullGDevice.h:58
virtual void SelectPenColor(const VGColor &inColor)
Creates a new VGPen object with the specified VGColor.
Definition: NullGDevice.h:134
VRasterOpMode
Raster operation modes (color fill, bit copy, etc.)
Definition: VGDevice.h:77
virtual void FrameEllipse(float x, float y, float width, float height)
Draws an ellipse.
Definition: NullGDevice.h:54
Definition: NullGDevice.h:32
virtual bool BeginDraw()
Definition: NullGDevice.h:44
virtual void PushPenColor(const VGColor &inColor)
Definition: NullGDevice.h:137
virtual bool CopyPixels(int xDest, int yDest, int dstWidth, int dstHeight, VGDevice *pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, float alpha=-1.0)
Definition: NullGDevice.h:82
virtual void Frame(float left, float top, float right, float bottom)
Definition: NullGDevice.h:52
virtual VGColor GetFontColor() const
Returns the text/music color of the current VGDevice.
Definition: NullGDevice.h:103
virtual void PushPen(const VGColor &inColor, float inWidth)
Definition: NullGDevice.h:71
virtual void SetFontAlign(unsigned int inAlign)
Definition: NullGDevice.h:106
virtual void PushFillColor(const VGColor &inColor)
Definition: NullGDevice.h:73
virtual VGColor GetFontBackgroundColor() const
Returns the text/music background color of the current VGDevice.
Definition: NullGDevice.h:105
virtual void ReleaseBitMapPixels()
Update bitmap pixels and ends pixels operations.
Definition: NullGDevice.h:113
Generic pure virtual & device-independant font class.
Definition: VGFont.h:36
virtual void SetTextFont(const VGFont *font)
Definition: NullGDevice.h:65
virtual void Arc(float left, float top, float right, float bottom, float startX, float startY, float endX, float endY)
Definition: NullGDevice.h:53
virtual unsigned int GetFontAlign() const
Definition: NullGDevice.h:107
virtual void PushPenWidth(float width)
Definition: NullGDevice.h:140
virtual void DeviceToLogical(float *x, float *y) const
Definition: NullGDevice.h:89
virtual void * GetNativeContext() const
Returns the platform-specific device context object.
Definition: NullGDevice.h:125
virtual VGSystem * getVGSystem() const
temporary hack - must be removed asap
Definition: NullGDevice.h:121
virtual int GetHeight() const
Returns the height (set via NotifySize) of the current VGDevice.
Definition: NullGDevice.h:97
virtual float GetYOrigin() const
Definition: NullGDevice.h:93
virtual void PopPen()
Definition: NullGDevice.h:72
Definition: VGDevice.h:79
virtual void SelectFillColor(const VGColor &c)
Definition: NullGDevice.h:70
Generic pure virtual & device-independant font class.
Definition: NullGFont.h:27
virtual ~NullGDevice()
Definition: NullGDevice.h:39
virtual void NotifySize(int inWidth, int inHeight)
Definition: NullGDevice.h:95
virtual void DrawString(float x, float y, const char *s, int inCharCount)
Definition: NullGDevice.h:101