X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbc95b2cc968d42445fef78b7044c411bf6e894a..1e8dba5e29eba7ac5e53fa4035e65ceeaeed3884:/docs/latex/wx/gridrend.tex diff --git a/docs/latex/wx/gridrend.tex b/docs/latex/wx/gridrend.tex index b662670869..0bc5ac4dc4 100644 --- a/docs/latex/wx/gridrend.tex +++ b/docs/latex/wx/gridrend.tex @@ -1,49 +1,3 @@ -\section{\class{wxGridCellRenderer}}\label{wxgridcellrenderer} - -%suppress the stupid gcc warning about the class having private dtor and -%no friends -This class is responsible for actually drawing the cell -in the grid. You may pass it to the wxGridCellAttr (below) to change the -format of one given cell or to wxGrid::SetDefaultRenderer() to change the -view of all cells. This is an abstract class, and you will normally use one of the -predefined derived classes or derive your own class from it. - -\wxheading{Derived from} - -wxGridCellWorker - -\wxheading{See also} - -\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp -\helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer},\rtfsp -\helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp -\helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer} - -\latexignore{\rtfignore{\wxheading{Members}}} - -\membersection{wxGridCellRenderer::Draw}\label{wxgridcellrendererdraw} - -\func{void}{Draw}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{row}, \param{int }{col}, \param{bool }{isSelected}} - -Draw the given cell on the provided DC inside the given rectangle -using the style specified by the attribute and the default or selected -state corresponding to the isSelected value. - -This pure virtual function has a default implementation which will -prepare the DC using the given attribute: it will draw the rectangle -with the background colour from attr and set the text colour and font. - -\membersection{wxGridCellRenderer::GetBestSize}\label{wxgridcellrenderergetbestsize} - -\func{wxSize}{GetBestSize}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{int }{row}, \param{int }{col}} - -Get the preferred size of the cell for its contents. - -\membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone} - -\constfunc{wxGridCellRenderer*}{Clone}{\void} - - \section{\class{wxGridCellBoolRenderer}}\label{wxgridcellboolrenderer} This class may be used to format boolean data in a cell. @@ -60,6 +14,10 @@ for string cells. \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp \helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer} +\wxheading{Include files} + + + \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxGridCellBoolRenderer::wxGridCellBoolRenderer}\label{wxgridcellboolrendererconstr} @@ -83,9 +41,13 @@ This class may be used to format floating point data in a cell. \helpref{wxGridCellRenderer}{wxgridcellrenderer},\rtfsp \helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer},\rtfsp -\helpref{wxGridCellTextRenderer}{wxgridcelltextrenderer},\rtfsp +\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp \helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer} +\wxheading{Include files} + + + \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxGridCellFloatRenderer::wxGridCellFloatRenderer}\label{wxgridcellfloatrendererconstr} @@ -143,6 +105,10 @@ This class may be used to format integer data in a cell. \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp \helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer} +\wxheading{Include files} + + + \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxGridCellNumberRenderer::wxGridCellNumberRenderer}\label{wxgridcellnumberrendererconstr} @@ -151,6 +117,52 @@ This class may be used to format integer data in a cell. Default constructor +\section{\class{wxGridCellRenderer}}\label{wxgridcellrenderer} + +This class is responsible for actually drawing the cell +in the grid. You may pass it to the wxGridCellAttr (below) to change the +format of one given cell or to wxGrid::SetDefaultRenderer() to change the +view of all cells. This is an abstract class, and you will normally use one of the +predefined derived classes or derive your own class from it. + +\wxheading{Derived from} + +wxGridCellWorker + +\wxheading{See also} + +\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp +\helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer},\rtfsp +\helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp +\helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer} + +\wxheading{Include files} + + + +\latexignore{\rtfignore{\wxheading{Members}}} + +\membersection{wxGridCellRenderer::Draw}\label{wxgridcellrendererdraw} + +\func{void}{Draw}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{row}, \param{int }{col}, \param{bool }{isSelected}} + +Draw the given cell on the provided DC inside the given rectangle +using the style specified by the attribute and the default or selected +state corresponding to the isSelected value. + +This pure virtual function has a default implementation which will +prepare the DC using the given attribute: it will draw the rectangle +with the background colour from attr and set the text colour and font. + +\membersection{wxGridCellRenderer::GetBestSize}\label{wxgridcellrenderergetbestsize} + +\func{wxSize}{GetBestSize}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{int }{row}, \param{int }{col}} + +Get the preferred size of the cell for its contents. + +\membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone} + +\constfunc{wxGridCellRenderer*}{Clone}{\void} \section{\class{wxGridCellStringRenderer}}\label{wxgridcellstringrenderer} @@ -168,6 +180,10 @@ for string cells. \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp \helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer} +\wxheading{Include files} + + + \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxGridCellStringRenderer::wxGridCellStringRenderer}\label{wxgridcellstringrendererconstr}