GUIDOLib
1.7.7
A Music Score Rendering Engine
|
Go to the documentation of this file. 100 virtual bool IsValid()
const = 0;
118 float right,
float bottom ) = 0;
123 virtual void MoveTo(
float x,
float y ) = 0;
127 virtual void LineTo(
float x,
float y ) = 0;
131 virtual void Line(
float x1,
float y1,
132 float x2,
float y2 ) = 0;
136 virtual void Frame(
float left,
float top,
137 float right,
float bottom ) = 0;
144 virtual void Arc(
float left,
float top,
145 float right,
float bottom,
146 float startX,
float startY,
147 float endX,
float endY ) = 0;
150 virtual void FrameEllipse(
float x,
float y,
float width,
float height) = 0;
157 virtual void Ellipse(
float x,
float y,
float width,
float height,
const VGColor& color) = 0;
162 virtual void Triangle(
float x1,
float y1,
164 float x3,
float y3 ) = 0;
169 virtual void Polygon(
const float * xCoords,
170 const float * yCoords,
int count ) = 0;
174 virtual void Rectangle(
float left,
float top,
175 float right,
float bottom ) = 0;
218 virtual void PopPen() = 0;
260 virtual bool CopyPixels(
int xDest,
int yDest,
263 int nSrcWidth,
int nSrcHeight,
float alpha = -1.0) = 0;
273 virtual bool CopyPixels(
int xDest,
int yDest,
274 int dstWidth,
int dstHeight,
275 VGDevice* pSrcDC,
float alpha = -1.0) = 0;
284 virtual bool CopyPixels(
int xDest,
int yDest,
285 int dstWidth,
int dstHeight,
288 int nSrcWidth,
int nSrcHeight,
float alpha = -1.0) = 0;
293 virtual void SetScale(
float x,
float y ) = 0;
296 virtual void SetOrigin(
float x,
float y ) = 0;
319 virtual void NotifySize(
int inWidth,
int inHeight ) = 0;
334 unsigned int inSymbolID ) = 0;
341 int inCharCount ) = 0;
366 virtual void SetDPITag(
float inDPI ) = 0;
376 virtual const char*
GetImageData(
const char* & outDataPtr,
int& outLength) = 0;
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.
Definition: VGDevice.h:83
virtual const VGFont * GetTextFont() const =0
Returns the currently selected text VGFont.
Definition: VGDevice.h:90
virtual int GetWidth() const =0
Returns the width (set via NotifySize) of the current VGDevice.
virtual const char * GetImageData(const char *&outDataPtr, int &outLength)=0
Gives the current device data and returns the data associated mime type.
virtual void SetTextFont(const VGFont *font)=0
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 VGColor GetFontColor() const =0
Returns the text/music color of the current VGDevice.
Definition: VGDevice.h:88
virtual void MoveTo(float x, float y)=0
Moves the current position to the point specified by (x,y).
friend class DecoratorDevice
Definition: VGDevice.h:72
virtual float GetXScale() const =0
virtual void PopPenColor()=0
virtual void ReleaseBitMapPixels()=0
Update bitmap pixels and ends pixels operations.
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 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.
VTextAlignMode
Text alignment modes.
Definition: VGDevice.h:87
Definition: VGDevice.h:94
virtual bool BeginDraw()=0
Definition: VGDevice.h:78
virtual void PushPen(const VGColor &inColor, float inWidth)=0
virtual VRasterOpMode GetRasterOpMode() const =0
virtual unsigned int GetFontAlign() const =0
virtual float GetXOrigin() const =0
virtual void PopPenWidth()=0
virtual void PushFillColor(const VGColor &inColor)=0
virtual void SelectPenColor(const VGColor &inColor)=0
Creates a new VGPen object with the specified VGColor.
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 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.
virtual ~VGDevice()
Definition: VGDevice.h:97
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 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 PopFillColor()=0
Generic platform independant drawing device.
Definition: VGDevice.h:68
Generic class to manipulate device independant colors.
Definition: VGColor.h:34
Definition: VGDevice.h:93
virtual void Frame(float left, float top, float right, float bottom)=0
Definition: VGDevice.h:82
virtual void SetFontAlign(unsigned int inAlign)=0
VRasterOpMode
Raster operation modes (color fill, bit copy, etc.)
Definition: VGDevice.h:77
virtual VGColor GetFontBackgroundColor() const =0
Returns the text/music background color of the current VGDevice.
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 float GetYScale() const =0
virtual void PushPenWidth(float width)=0
virtual void OffsetOrigin(float x, float y)=0
Offsets the current VGDevice's origin (see above).
virtual void SetRasterOpMode(VRasterOpMode ROpMode)=0
Definition: VGDevice.h:91
Definition: VGDevice.h:92
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.
Definition: VGDevice.h:81
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: VGDevice.h:79
virtual void Line(float x1, float y1, float x2, float y2)=0
Definition: VGDevice.h:89
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 void selectfont(int)
Selects a font (only for SVG device).
Definition: VGDevice.h:196
virtual void SetOrigin(float x, float y)=0
Specifies which VGDevice point (x,y) maps to the window origin (0,0).
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
Definition: VGDevice.h:80