NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
AdvBooleanCellRenderer Class Reference

This class represents a special renderer for three-state booleans, i.e. booleans, which may have a undefined (e.g. NAN) value. More...

#include <cellattributes.hpp>

Inheritance diagram for AdvBooleanCellRenderer:
Collaboration diagram for AdvBooleanCellRenderer:

Public Member Functions

 AdvBooleanCellRenderer (const CellValueShader &shader=CellValueShader())
 
virtual void Draw (wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, const wxRect &rect, int row, int col, bool isSelected)
 
virtual wxSize GetBestSize (wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col)
 
virtual wxGridCellRenderer * Clone () const
 
- Public Member Functions inherited from AdvStringCellRenderer
 AdvStringCellRenderer (const CellValueShader shader=CellValueShader())
 
virtual void Draw (wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, const wxRect &rect, int row, int col, bool isSelected)
 
virtual wxGridCellRenderer * Clone () const
 

Static Private Attributes

static wxSize bestSize
 

Additional Inherited Members

- Protected Member Functions inherited from AdvStringCellRenderer
bool isHeadLine (const wxGrid &grid, int row)
 
bool isFrame (const wxGrid &grid, int row, int col)
 
bool isPartOfCursor (const wxGrid &grid, int row, int col)
 
bool hasCustomColor ()
 
wxGridCellAttr * createHighlightedAttr (const wxGridCellAttr &attr, const wxGrid &grid, int row, int col)
 
wxGridCellAttr * createFrameAttr (const wxGridCellAttr &attr)
 
wxGridCellAttr * createHeadlineAttr (const wxGridCellAttr &attr)
 
wxGridCellAttr * createCustomColorAttr (const wxGridCellAttr &attr, const wxGrid &grid, int row, int col)
 
- Protected Attributes inherited from AdvStringCellRenderer
CellValueShader m_shader
 

Detailed Description

This class represents a special renderer for three-state booleans, i.e. booleans, which may have a undefined (e.g. NAN) value.

Definition at line 203 of file cellattributes.hpp.

Constructor & Destructor Documentation

◆ AdvBooleanCellRenderer()

AdvBooleanCellRenderer::AdvBooleanCellRenderer ( const CellValueShader shader = CellValueShader())
inline

Definition at line 206 of file cellattributes.hpp.

Referenced by Clone().

Member Function Documentation

◆ Clone()

virtual wxGridCellRenderer * AdvBooleanCellRenderer::Clone ( ) const
inlinevirtual

Reimplemented from AdvStringCellRenderer.

Definition at line 302 of file cellattributes.hpp.

References AdvBooleanCellRenderer(), and AdvStringCellRenderer::m_shader.

Here is the call graph for this function:

◆ Draw()

virtual void AdvBooleanCellRenderer::Draw ( wxGrid &  grid,
wxGridCellAttr &  attr,
wxDC &  dc,
const wxRect &  rect,
int  row,
int  col,
bool  isSelected 
)
inlinevirtual

◆ GetBestSize()

virtual wxSize AdvBooleanCellRenderer::GetBestSize ( wxGrid &  grid,
wxGridCellAttr &  attr,
wxDC &  dc,
int  row,
int  col 
)
inlinevirtual

Definition at line 290 of file cellattributes.hpp.

References bestSize.

Referenced by Draw().

Member Data Documentation

◆ bestSize

wxSize AdvBooleanCellRenderer::bestSize
staticprivate

Definition at line 306 of file cellattributes.hpp.

Referenced by GetBestSize().


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