wxPropertyGrid
Public Member Functions | List of all members
wxPGDefaultRenderer Class Reference

Default cell renderer, that can handles the common scenarios. More...

#include <propgrid.h>

Inheritance diagram for wxPGDefaultRenderer:
wxPGCellRenderer

Public Member Functions

virtual wxSize GetImageSize (const wxPGProperty *property, int column, int item) const
 Returns size of the image in front of the editable area. More...
 
virtual void Render (wxDC &dc, const wxRect &rect, const wxPropertyGrid *propertyGrid, wxPGProperty *property, int column, int item, int flags) const
 
- Public Member Functions inherited from wxPGCellRenderer
void DecRef ()
 
virtual void DrawCaptionSelectionRect (wxDC &dc, int x, int y, int w, int h) const
 Paints property category selection rectangle.
 
void DrawEditorValue (wxDC &dc, const wxRect &rect, int xOffset, const wxString &text, wxPGProperty *property, const wxPGEditor *editor) const
 Utility to draw editor's value, or vertically aligned text if editor is NULL.
 
void DrawText (wxDC &dc, const wxRect &rect, int imageWidth, const wxString &text) const
 Utility to draw vertically centered text.
 
void IncRef ()
 
void PostDrawCell (wxDC &dc, const wxPropertyGrid *propGrid, const wxPGCell &cell, int flags) const
 Utility to be called after drawing is done, to revert whatever changes PreDrawCell() did. More...
 
int PreDrawCell (wxDC &dc, const wxRect &rect, const wxPGCell &cell, int flags) const
 Utility to render cell bitmap and set text colour plus bg brush colour. More...
 
 wxPGCellRenderer (unsigned int refCount=1)
 

Additional Inherited Members

- Public Types inherited from wxPGCellRenderer
enum  { Selected = 0x00010000, Control = 0x00020000 }
 

Detailed Description

Default cell renderer, that can handles the common scenarios.

Member Function Documentation

◆ GetImageSize()

virtual wxSize wxPGDefaultRenderer::GetImageSize ( const wxPGProperty property,
int  column,
int  item 
) const
virtual

Returns size of the image in front of the editable area.

Remarks
If property is NULL, then this call is for a custom value. In that case the item is index to wxPropertyGrid's custom values.

Reimplemented from wxPGCellRenderer.


The documentation for this class was generated from the following file: