A wxGraphicsRenderer is the instance corresponding to the rendering engine used.
There may be multiple instances on a system, if there are different rendering engines present, but there is always only one instance per engine. This instance is pointed back to by all objects created by it (wxGraphicsContext, wxGraphicsPath, etc.) and can be retrieved through their wxGraphicsObject::GetRenderer() method. Therefore, you can create an additional instance of a path (or other objects) by calling wxGraphicsObject::GetRenderer() and then using the appropriate CreateXXX() function of that renderer.
wxBrush * wxBLACK_BRUSH
Black brush.
Definition: brush.h:291
A wxGraphicsBrush is a native representation of a brush.
Definition: graphics.h:1732
wxGraphicsRenderer * GetRenderer() const
Returns the renderer that was used to create this instance, or nullptr if it has not been initialized...
A wxGraphicsPath is a native representation of a geometric path.
Definition: graphics.h:21
virtual wxGraphicsBrush CreateBrush(const wxBrush &brush)=0
Creates a native brush from a wxBrush.
|
virtual wxGraphicsBitmap | CreateBitmap (const wxBitmap &bitmap)=0 |
| Creates wxGraphicsBitmap from an existing wxBitmap. More...
|
|
virtual wxGraphicsBitmap | CreateBitmapFromImage (const wxImage &image)=0 |
| Creates wxGraphicsBitmap from an existing wxImage. More...
|
|
virtual wxImage | CreateImageFromBitmap (const wxGraphicsBitmap &bmp)=0 |
| Creates a wxImage from a wxGraphicsBitmap. More...
|
|
virtual wxGraphicsBitmap | CreateBitmapFromNativeBitmap (void *bitmap)=0 |
| Creates wxGraphicsBitmap from a native bitmap handle. More...
|
|
virtual wxGraphicsContext * | CreateContext (wxWindow *window)=0 |
| Creates a wxGraphicsContext from a wxWindow. More...
|
|
virtual wxGraphicsContext * | CreateContext (const wxWindowDC &windowDC)=0 |
| Creates a wxGraphicsContext from a wxWindowDC. More...
|
|
virtual wxGraphicsContext * | CreateContext (const wxMemoryDC &memoryDC)=0 |
| Creates a wxGraphicsContext from a wxMemoryDC. More...
|
|
virtual wxGraphicsContext * | CreateContext (const wxPrinterDC &printerDC)=0 |
| Creates a wxGraphicsContext from a wxPrinterDC. More...
|
|
virtual wxGraphicsContext * | CreateContext (const wxEnhMetaFileDC &metaFileDC)=0 |
| Creates a wxGraphicsContext from a wxEnhMetaFileDC. More...
|
|
wxGraphicsContext * | CreateContextFromUnknownDC (wxDC &dc) |
| Creates a wxGraphicsContext from a DC of unknown specific type. More...
|
|
wxGraphicsContext * | CreateContextFromImage (wxImage &image) |
| Creates a wxGraphicsContext associated with a wxImage. More...
|
|
virtual wxGraphicsBrush | CreateBrush (const wxBrush &brush)=0 |
| Creates a native brush from a wxBrush. More...
|
|
virtual wxGraphicsContext * | CreateContextFromNativeContext (void *context)=0 |
| Creates a wxGraphicsContext from a native context. More...
|
|
virtual wxGraphicsContext * | CreateContextFromNativeWindow (void *window)=0 |
| Creates a wxGraphicsContext from a native window. More...
|
|
virtual wxGraphicsContext * | CreateMeasuringContext ()=0 |
| Creates a wxGraphicsContext that can be used for measuring texts only. More...
|
|
virtual wxGraphicsFont | CreateFont (const wxFont &font, const wxColour &col= *wxBLACK)=0 |
| Creates a native graphics font from a wxFont and a text colour. More...
|
|
virtual wxGraphicsFont | CreateFont (double sizeInPixels, const wxString &facename, int flags=wxFONTFLAG_DEFAULT, const wxColour &col= *wxBLACK)=0 |
| Creates a graphics font with the given characteristics. More...
|
|
virtual wxGraphicsFont | CreateFontAtDPI (const wxFont &font, const wxRealPoint &dpi, const wxColour &col= *wxBLACK)=0 |
| Creates a native graphics font from a wxFont and a text colour. More...
|
|
virtual wxGraphicsBrush | CreateLinearGradientBrush (wxDouble x1, wxDouble y1, wxDouble x2, wxDouble y2, const wxGraphicsGradientStops &stops, const wxGraphicsMatrix &matrix=wxNullGraphicsMatrix)=0 |
| Creates a native brush with a linear gradient. More...
|
|
virtual wxGraphicsMatrix | CreateMatrix (wxDouble a=1.0, wxDouble b=0.0, wxDouble c=0.0, wxDouble d=1.0, wxDouble tx=0.0, wxDouble ty=0.0)=0 |
| Creates a native affine transformation matrix from the passed in values. More...
|
|
virtual wxGraphicsPath | CreatePath ()=0 |
| Creates a native graphics path which is initially empty. More...
|
|
virtual wxGraphicsPen | CreatePen (const wxGraphicsPenInfo &info)=0 |
| Creates a native pen from its description. More...
|
|
virtual wxGraphicsBrush | CreateRadialGradientBrush (wxDouble startX, wxDouble startY, wxDouble endX, wxDouble endY, wxDouble radius, const wxGraphicsGradientStops &stops, const wxGraphicsMatrix &matrix=wxNullGraphicsMatrix)=0 |
| Creates a native brush with a radial gradient. More...
|
|
virtual wxGraphicsBitmap | CreateSubBitmap (const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h)=0 |
| Extracts a sub-bitmap from an existing bitmap. More...
|
|
virtual wxString | GetName () const =0 |
| Returns the name of the technology used by the renderer. More...
|
|
virtual void | GetVersion (int *major, int *minor=nullptr, int *micro=nullptr) const =0 |
| Returns the version major, minor and micro/build of the technology used by the renderer. More...
|
|
| wxObject () |
| Default ctor; initializes to nullptr the internal reference data. More...
|
|
| wxObject (const wxObject &other) |
| Copy ctor. More...
|
|
virtual | ~wxObject () |
| Destructor. More...
|
|
virtual wxClassInfo * | GetClassInfo () const |
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class. More...
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj. More...
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone. More...
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer. More...
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public. More...
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier __WXDEBUG__ is defined. More...
|
|
void * | operator new (size_t size, const wxString &filename=nullptr, int lineNum=0) |
| The new operator is defined for debugging versions of the library only, when the identifier __WXDEBUG__ is defined. More...
|
|