GUIDOLib  1.6.8
A Music Score Rendering Engine
Public Member Functions | List of all members
VGSystem Class Referenceabstract

Generic pure virtual class for manipulating platform independant drawing devices and fonts. More...

Public Member Functions

virtual ~VGSystem ()
 
virtual VGDeviceCreateDisplayDevice ()=0
 
virtual VGDeviceCreateMemoryDevice (int inWidth, int inHeight)=0
 
virtual VGDeviceCreateMemoryDevice (const char *inPath)=0
 
virtual VGDeviceCreatePrinterDevice ()=0
 Creates and returns a pointer to a new printer VGDevice. More...
 
virtual VGDeviceCreateAntiAliasedMemoryDevice (int inWidth, int inHeight)=0
 
virtual const VGFontCreateVGFont (const char *faceName, int size, int properties) const =0
 Creates and returns a pointer to a new VGFont using the specified parameters. More...
 

Detailed Description

Generic pure virtual class for manipulating platform independant drawing devices and fonts.

A VGSystem object (for Virtual Guido drawing System) is the highest graphical abstraction whose child-object can be used by a client app to obtain a platform dependant graphical system able to perform guido drawing or printing operations (like double-buffered display on the current screen or printing). To do so, the client app simply needs to intantiate an object of the appropriate platform dependant VGSystem derived class using the correct platform dependant parameters.

A VGSystem object deals mainly with two kinds of graphical objects:

- VGDevice objects, which can be display devices, memory devices
or printer devices;
- VGFont objects, used to describe device independant fonts (for
music or text).

Constructor & Destructor Documentation

◆ ~VGSystem()

virtual VGSystem::~VGSystem ( )
inlinevirtual

Member Function Documentation

◆ CreateAntiAliasedMemoryDevice()

virtual VGDevice* VGSystem::CreateAntiAliasedMemoryDevice ( int  inWidth,
int  inHeight 
)
pure virtual

Creates and returns a pointer to a new memory VGDevice compatible with the application's current screen and using anti-aliasing capabilities. This device can be used to draw into a bitmap.

◆ CreateDisplayDevice()

virtual VGDevice* VGSystem::CreateDisplayDevice ( )
pure virtual

Creates and returns a pointer to a new display VGDevice which can be used to draw directly on the screen.

◆ CreateMemoryDevice() [1/2]

virtual VGDevice* VGSystem::CreateMemoryDevice ( const char *  inPath)
pure virtual

Creates and returns a pointer to a new memory VGDevice compatible with the file (pixmap) located at the specified path.

◆ CreateMemoryDevice() [2/2]

virtual VGDevice* VGSystem::CreateMemoryDevice ( int  inWidth,
int  inHeight 
)
pure virtual

Creates and returns a pointer to a new memory VGDevice compatible with the application's current screen. This device can be used to draw into a bitmap.

◆ CreatePrinterDevice()

virtual VGDevice* VGSystem::CreatePrinterDevice ( )
pure virtual

Creates and returns a pointer to a new printer VGDevice.

◆ CreateVGFont()

virtual const VGFont* VGSystem::CreateVGFont ( const char *  faceName,
int  size,
int  properties 
) const
pure virtual

Creates and returns a pointer to a new VGFont using the specified parameters.


Guido Project Copyright © 2019 Grame-CNCM