⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hvscroll.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 2 页
字号:
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 partiallyvisible 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 classand 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 doit if calculating the columns' heights is a relatively expensive operationas it gives the user code a possibility to calculate several of them atonce.{\tt OnGetColumnsWidthHint()} is normally called just before \helpref{OnGetColumnWidth()}{wxhvscrolledwindowongetcolumnwidth} but youshouldn't rely on the latter being called for all columns in the intervalspecified here. It is also possible that OnGetColumnWidth() will becalled for the columns outside of this interval, so this is really just ahint, 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 classand 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 doit if calculating the row's heights is a relatively expensive operationas it gives the user code a possibility to calculate several of them atonce.{\tt OnGetRowsHeightHint()} is normally called just before \helpref{OnGetRowHeight()}{wxhvscrolledwindowongetrowheight} but youshouldn't rely on the latter being called for all rows in the intervalspecified here. It is also possible that OnGetRowHeight() will becalled for the rows outside of this interval, so this is really just ahint, 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 loopiteration.\membersection{wxHVScrolledWindow::RefreshRow}\label{wxhvscrolledwindowrefreshrow}\func{void}{RefreshRow}{\param{size\_t }{row}}Refreshes the specified row -- it will be redrawn during the next main loopiteration.\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 loopiteration.\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 ofitems shown on screen and repainting them. It should be called when the valuesreturned by either \helpref{OnGetRowHeight}{wxhvscrolledwindowongetrowheight} or \helpref{OnGetColumnWidth}{wxhvscrolledwindowongetcolumnwidth} change for somereason 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 scrollright) or negative (to scroll left).Returns {\tt true} if the window was scrolled, {\tt false} otherwise (forexample if we're trying to scroll right but we are already showing the lastcolumn).\membersection{wxHVScrolledWindow::ScrollRows}\label{wxhvscrolledwindowscrollrows}\func{bool}{ScrollRows}{\param{int }{rows}}Scroll by the specified number of rows which may be positive (to scrolldown) or negative (to scroll up).Returns {\tt true} if the window was scrolled, {\tt false} otherwise (forexample if we're trying to scroll down but we are already showing the lastrow).\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 (toscroll down or right) or negative (to scroll up or left).Returns {\tt true} if the window was scrolled, {\tt false} otherwise (forexample if we're trying to scroll down but we are already showing the lastrow).\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 (toscroll 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 maybe 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 scrolldown) 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 visiblecolumn 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 rowon 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 leftvisible 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 mustprovide the heights for all rows and the widths for all columns with indices upto the respective values given here in its \helpref{OnGetRowHeight()}{wxhvscrolledwindowongetrowheight} and \helpref{OnGetColumnWidth()}{wxhvscrolledwindowongetcolumnwidth}implementations.

⌨️ 快捷键说明

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