hvscroll.tex

来自「Wxpython Implemented on Windows CE, Sou」· TEX 代码 · 共 558 行 · 第 1/2 页

TEX
558
字号

Returns {\tt true} if the given column is at least partially visible or
{\tt false} otherwise.


\membersection{wxHVScrolledWindow::IsRowVisible}\label{wxhvscrolledwindowisrowvisible}

\constfunc{bool}{IsRowVisible}{\param{size\_t }{row}}

Returns {\tt true} if the given row is at least partially visible or {\tt false}
otherwise.


\membersection{wxHVScrolledWindow::IsVisible}\label{wxhvscrolledwindowisvisible}

\constfunc{bool}{IsVisible}{\param{size\_t }{row}, \param{size\_t}{column}}

Returns {\tt true} if the given row and column are both at least partially
visible or {\tt false} otherwise.


\membersection{wxHVScrolledWindow::OnGetColumnWidth}\label{wxhvscrolledwindowongetcolumnwidth}

\constfunc{wxCoord}{OnGetColumnWidth}{\param{size\_t }{n}}

This protected pure virtual function must be overridden in the derived class
and should return the width of the given column in pixels.

\wxheading{See also}

\helpref{OnGetColumnsWidthHint}{wxhvscrolledwindowongetcolumnswidthhint}


\membersection{wxHVScrolledWindow::OnGetColumnsWidthHint}\label{wxhvscrolledwindowongetcolumnswidthhint}

\constfunc{void}{OnGetColumnsWidthHint}{\param{size\_t }{columnMin}, \param{size\_t }{columnMax}}

This function doesn't have to be overridden but it may be useful to do
it if calculating the columns' heights is a relatively expensive operation
as it gives the user code a possibility to calculate several of them at
once.

{\tt OnGetColumnsWidthHint()} is normally called just before 
\helpref{OnGetColumnWidth()}{wxhvscrolledwindowongetcolumnwidth} but you
shouldn't rely on the latter being called for all columns in the interval
specified here. It is also possible that OnGetColumnWidth() will be
called for the columns outside of this interval, so this is really just a
hint, not a promise.

Finally note that {\it columnMin} is inclusive, while {\it columnMax} is exclusive,
as usual.


\membersection{wxHVScrolledWindow::OnGetRowHeight}\label{wxhvscrolledwindowongetrowheight}

\constfunc{wxCoord}{OnGetRowHeight}{\param{size\_t }{n}}

This protected pure virtual function must be overridden in the derived class
and should return the height of the given row in pixels.

\wxheading{See also}

\helpref{OnGetRowsHeightHint}{wxhvscrolledwindowongetrowsheighthint}


\membersection{wxHVScrolledWindow::OnGetRowsHeightHint}\label{wxhvscrolledwindowongetrowsheighthint}

\constfunc{void}{OnGetRowsHeightHint}{\param{size\_t }{rowMin}, \param{size\_t }{rowMax}}

This function doesn't have to be overridden but it may be useful to do
it if calculating the row's heights is a relatively expensive operation
as it gives the user code a possibility to calculate several of them at
once.

{\tt OnGetRowsHeightHint()} is normally called just before 
\helpref{OnGetRowHeight()}{wxhvscrolledwindowongetrowheight} but you
shouldn't rely on the latter being called for all rows in the interval
specified here. It is also possible that OnGetRowHeight() will be
called for the rows outside of this interval, so this is really just a
hint, not a promise.

Finally note that {\it rowMin} is inclusive, while {\it rowMax} is exclusive,
as usual.


\membersection{wxHVScrolledWindow::RefreshColumn}\label{wxhvscrolledwindowrefreshcolumn}

\func{void}{RefreshColumn}{\param{size\_t }{column}}

Refreshes the specified column -- it will be redrawn during the next main loop
iteration.


\membersection{wxHVScrolledWindow::RefreshRow}\label{wxhvscrolledwindowrefreshrow}

\func{void}{RefreshRow}{\param{size\_t }{row}}

Refreshes the specified row -- it will be redrawn during the next main loop
iteration.


\membersection{wxHVScrolledWindow::RefreshRowColumn}\label{wxhvscrolledwindowrefreshrowcolumn}

\func{void}{RefreshRowColumn}{\param{size\_t }{row}, \param{size\_t }{column}}

Refreshes the specified cell -- it will be redrawn during the next main loop
iteration.

\wxheading{See also}

\helpref{RefreshRowsColumns}{wxhvscrolledwindowrefreshrowscolumns}


\membersection{wxHVScrolledWindow::RefreshColumns}\label{wxhvscrolledwindowrefreshcolumns}

\func{void}{RefreshColumns}{\param{size\_ t}{fromColumn}, \param{size\_t }{toColumn}}

Refreshes the columns between {\it fromColumn} and {\it toColumn} (inclusive).
{\it fromColumn} should be less than or equal to {\it toColumn}.

\wxheading{See also}

\helpref{RefreshColumn}{wxhvscrolledwindowrefreshcolumn}


\membersection{wxHVScrolledWindow::RefreshRows}\label{wxhvscrolledwindowrefreshrows}

\func{void}{RefreshRows}{\param{size\_ t}{fromRow}, \param{size\_t }{toRow}}

Refreshes the rows between {\it fromRow} and {\it toRow} (inclusive).
{\it fromRow} should be less than or equal to {\it toRow}.

\wxheading{See also}

\helpref{RefreshRow}{wxhvscrolledwindowrefreshrow}


\membersection{wxHVScrolledWindow::RefreshRowsColumns}\label{wxhvscrolledwindowrefreshrowscolumns}

\func{void}{RefreshRowsColumns}{\param{size\_t }{fromRow}, \param{size\_t }{toRow}, \param{size\_ t}{fromColumn}, \param{size\_t }{toColumn}}

Refreshes the region of cells between {\it fromRow}, {\it fromColumn} and
{\it toRow}, {\it toColumn} (inclusive). {\it fromRow} and {\it fromColumn}
should be less than or equal to {\it toRow} and {\it toColumn}, respectively.

\wxheading{See also}

\helpref{RefreshRowColumn}{wxhvscrolledwindowrefreshrowcolumn}


\membersection{wxHVScrolledWindow::RefreshAll}\label{wxhvscrolledwindowrefreshall}

\func{void}{RefreshAll}{\void}

This function completely refreshes the control, recalculating the number of
items shown on screen and repainting them. It should be called when the values
returned by either \helpref{OnGetRowHeight}{wxhvscrolledwindowongetrowheight} or 
\helpref{OnGetColumnWidth}{wxhvscrolledwindowongetcolumnwidth} change for some
reason and the window must be updated to reflect this.


\membersection{wxHVScrolledWindow::ScrollColumns}\label{wxhvscrolledwindowscrollcolumns}

\func{bool}{ScrollColumns}{\param{int }{columns}}

Scroll by the specified number of columns which may be positive (to scroll
right) or negative (to scroll left).

Returns {\tt true} if the window was scrolled, {\tt false} otherwise (for
example if we're trying to scroll right but we are already showing the last
column).


\membersection{wxHVScrolledWindow::ScrollRows}\label{wxhvscrolledwindowscrollrows}

\func{bool}{ScrollRows}{\param{int }{rows}}

Scroll by the specified number of rows which may be positive (to scroll
down) or negative (to scroll up).

Returns {\tt true} if the window was scrolled, {\tt false} otherwise (for
example if we're trying to scroll down but we are already showing the last
row).

\wxheading{See also}

\helpref{LineUp}{wxwindowlineup}, \helpref{LineDown}{wxwindowlinedown}


\membersection{wxHVScrolledWindow::ScrollRowsColumns}\label{wxhvscrolledwindowscrollrowscolumns}

\func{bool}{ScrollRowsColumns}{\param{int }{rows}, \param{int }{columns}}

Scroll by the specified number of rows and columns which may be positive (to
scroll down or right) or negative (to scroll up or left).

Returns {\tt true} if the window was scrolled, {\tt false} otherwise (for
example if we're trying to scroll down but we are already showing the last
row).

\wxheading{See also}

\helpref{LineUp}{wxwindowlineup}, \helpref{LineDown}{wxwindowlinedown}


\membersection{wxHVScrolledWindow::ScrollColumnPages}\label{wxhvscrolledwindowscrollcolumnpages}

\func{bool}{ScrollColumnPages}{\param{int }{columnPages}}

Scroll by the specified number of column pages, which may be positive (to
scroll right) or negative (to scroll left).


\membersection{wxHVScrolledWindow::ScrollPages}\label{wxhvscrolledwindowscrollpages}

\func{bool}{ScrollPages}{\param{int }{rowPages}, \param{int }{columnPages}}

Scroll by the specified number of row pages and column pages, both of which may
be positive (to scroll down or right) or negative (to scroll up or left).

\wxheading{See also}

\helpref{ScrollRowsColumns}{wxhvscrolledwindowscrollrowscolumns},\\
\helpref{PageUp}{wxwindowpageup}, \helpref{PageDown}{wxwindowpagedown}


\membersection{wxHVScrolledWindow::ScrollRowPages}\label{wxhvscrolledwindowscrollrowpages}

\func{bool}{ScrollRowPages}{\param{int }{rowPages}}

Scroll by the specified number of row pages, which may be positive (to scroll
down) or negative (to scroll up).

\wxheading{See also}

\helpref{PageUp}{wxwindowpageup}, \helpref{PageDown}{wxwindowpagedown}


\membersection{wxHVScrolledWindow::ScrollToColumn}\label{wxhvscrolledwindowscrolltocolumn}

\func{bool}{ScrollToColumn}{\param{size\_t }{column}}

Scroll to the specified column. The specified column will be the first visible
column on the left side afterwards.

Return {\tt true} if we scrolled the window, {\tt false} if nothing was done.


\membersection{wxHVScrolledWindow::ScrollToRow}\label{wxhvscrolledwindowscrolltorow}

\func{bool}{ScrollToRow}{\param{size\_t }{row}}

Scroll to the specified row. The specified column will be the first visible row
on the top afterwards.

Return {\tt true} if we scrolled the window, {\tt false} if nothing was done.


\membersection{wxHVScrolledWindow::ScrollToRowColumn}\label{wxhvscrolledwindowscrolltorowcolumn}

\func{bool}{ScrollToRowColumn}{\param{size\_t }{row}, \param{size\_t }{column}}

Scroll to the specified row and column. The cell described will be the top left
visible cell afterwards.

Return {\tt true} if we scrolled the window, {\tt false} if nothing was done.


\membersection{wxHVScrolledWindow::SetRowColumnCounts}\label{wxhvscrolledwindowsetrowcolumncounts}

\func{void}{SetLineCount}{\param{size\_t }{row}, \param{size\_t }{column}}

Set the number of rows and columns the window contains. The derived class must
provide the heights for all rows and the widths for all columns with indices up
to the respective values given here in its 
\helpref{OnGetRowHeight()}{wxhvscrolledwindowongetrowheight} and 
\helpref{OnGetColumnWidth()}{wxhvscrolledwindowongetcolumnwidth}
implementations.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?