wxPGCellRenderer Class Reference

Base class for wxPropertyGrid cell renderers. More...

#include <propgrid.h>

Inheritance diagram for wxPGCellRenderer:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { Selected = 0x00010000, Control = 0x00020000 }

Public Member Functions

void DecRef ()
virtual void DrawCaptionSelectionRect (wxDC &dc, int x, int y, int w, int h) const
void DrawEditorValue (wxDC &dc, const wxRect &rect, int xOffset, const wxString &text, wxPGProperty *property, const wxPGEditor *editor) const
void DrawText (wxDC &dc, const wxRect &rect, int imageWidth, const wxString &text) const
virtual wxSize GetImageSize (const wxPGProperty *property, int column, int item) const
void IncRef ()
int PreDrawCell (wxDC &dc, const wxRect &rect, const wxPGCell &cell, int flags) const
virtual void Render (wxDC &dc, const wxRect &rect, const wxPropertyGrid *propertyGrid, wxPGProperty *property, int column, int item, int flags) const =0
 wxPGCellRenderer (unsigned int refCount=1)
virtual ~wxPGCellRenderer ()

Private Attributes

unsigned int m_refCount

Detailed Description

Base class for wxPropertyGrid cell renderers.

Definition at line 502 of file propgrid.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Selected 
Control 

Definition at line 511 of file propgrid.h.


Constructor & Destructor Documentation

wxPGCellRenderer::wxPGCellRenderer ( unsigned int  refCount = 1  )  [inline]

Definition at line 506 of file propgrid.h.

virtual wxPGCellRenderer::~wxPGCellRenderer (  )  [inline, virtual]

Definition at line 508 of file propgrid.h.


Member Function Documentation

void wxPGCellRenderer::DecRef (  )  [inline]

Definition at line 563 of file propgrid.h.

virtual void wxPGCellRenderer::DrawCaptionSelectionRect ( wxDC &  dc,
int  x,
int  y,
int  w,
int  h 
) const [virtual]

Paints property category selection rectangle.

void wxPGCellRenderer::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 wxPGCellRenderer::DrawText ( wxDC &  dc,
const wxRect &  rect,
int  imageWidth,
const wxString &  text 
) const

Utility to draw vertically centered text.

virtual wxSize wxPGCellRenderer::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 in wxPGDefaultRenderer.

void wxPGCellRenderer::IncRef (  )  [inline]

Definition at line 558 of file propgrid.h.

int wxPGCellRenderer::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.

Returns image width that, for instance, can be passed to DrawText.

virtual void wxPGCellRenderer::Render ( wxDC &  dc,
const wxRect &  rect,
const wxPropertyGrid propertyGrid,
wxPGProperty property,
int  column,
int  item,
int  flags 
) const [pure virtual]

Implemented in wxPGDefaultRenderer.


Member Data Documentation

unsigned int wxPGCellRenderer::m_refCount [private]

Definition at line 572 of file propgrid.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


wxpropgrid
Author(s): Jaakko Salli
autogenerated on Fri Jan 11 09:34:06 2013