22 #ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_HXX__
23 #define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_HXX__
25 namespace Antares::Component::Datagrid::Renderer
42 inline IRenderer::CellStyle IRenderer::cellStyleWithNumericCheck(
int x,
int y)
const
45 ? ((y % 2) ? cellStyleDefaultAlternateDisabled : cellStyleDefaultDisabled)
46 : ((y % 2) ? cellStyleDefaultAlternate : cellStyleDefault);
49 inline IRenderer::CellStyle IRenderer::cellStyle(
int,
int y)
const
51 return ((y % 2) ? cellStyleDefaultAlternate : cellStyleDefault);
54 inline wxColour IRenderer::cellBackgroundColor(
int,
int)
const
56 return wxColour(255, 255, 255);
59 inline wxColour IRenderer::cellTextColor(
int,
int)
const
61 return wxColour(255, 0, 0);
71 return Default::BorderColor();
76 return Default::BorderColor();
116 return Date::stepAny;
124 inline void IRenderer::applyLayerFiltering(
size_t ,
VGridHelper* )
virtual bool circularShiftRowsUntilDate(MonthName month, uint daymonth)
Rotate all rows until a given date.
Definition: renderer.hxx:119
virtual bool ensureDataAreLoaded()
Make sure all data are effectively loaded.
Definition: renderer.hxx:37
virtual double asDouble(int x, int y) const
Read a cell as a double.
Definition: renderer.hxx:109
virtual int internalHeight() const
The real height of the matrix in memory.
Definition: renderer.hxx:32
virtual double cellNumericValue(int x, int y) const =0
Get the floating value of a Cell.
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition: renderer.hxx:69
virtual wxString cellValue(int x, int y) const =0
Get the string representation of a Cell.
virtual uint maxWidthResize() const
The most suitable column count.
Definition: renderer.hxx:79
virtual wxString asString(int x, int y) const
Read a cell as a string.
Definition: renderer.hxx:104
virtual void hintForColumnWidth(int x, wxString &out) const
String to use.
Definition: renderer.hxx:99
virtual int internalWidth() const
The real width of the matrix in memory.
Definition: renderer.hxx:27
virtual bool onMatrixResize(uint oldX, uint oldY, uint &newX, uint &newY)
Event trigerred before resizing a matrix.
Definition: renderer.hxx:64
virtual int width() const =0
The effective width of the grid.
virtual int cellAlignment(int x, int y) const
Get the alignment of a cell (-1: left, 0: center, +1: right)
Definition: renderer.hxx:89
virtual Date::Precision precision()
Time Precision.
Definition: renderer.hxx:114
virtual int height() const =0
The effective height of the grid.
virtual wxColour horizontalBorderColor(int x, int y) const
Get the color of the horizontal bottom border.
Definition: renderer.hxx:74
virtual uint maxHeightResize() const
The most suitable column count.
Definition: renderer.hxx:84
virtual int columnWidthCustom(int x) const
Get how the a column must resize (0: auto, >0: specific width, <0: use custom string)
Definition: renderer.hxx:94
Wrapper between a wxGridTableBase and a renderer
Definition: gridhelper.h:42