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

📄 qwtdyngridlayout.3

📁 linux下qt的第三方的一个类
💻 3
字号:
.TH "QwtDynGridLayout" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtDynGridLayout \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to the current size. QwtDynGridLayout takes the space it gets, divides it up into rows and columns, and puts each of the widgets it manages into the correct cell(s). It lays out as many number of columns as possible (limited by \fBmaxCols()\fP). .PPDefinition at line 30 of file qwt_dyngrid_layout.h..SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtDynGridLayout\fP (QWidget *, int margin=0, int space=-1, const char *name=0)".br.ti -1c.RI "\fBQwtDynGridLayout\fP (QLayout *, int space=-1, const char *name=0)".br.ti -1c.RI "\fBQwtDynGridLayout\fP (int space=-1, const char *name=0)".br.ti -1c.RI "virtual \fB~QwtDynGridLayout\fP ()".br.ti -1c.RI "virtual void \fBinvalidate\fP ()".br.ti -1c.RI "void \fBsetMaxCols\fP (uint maxCols)".br.ti -1c.RI "uint \fBmaxCols\fP () const".br.ti -1c.RI "uint \fBnumRows\fP () const".br.ti -1c.RI "uint \fBnumCols\fP () const".br.ti -1c.RI "virtual void \fBaddItem\fP (QLayoutItem *)".br.ti -1c.RI "virtual QLayoutIterator \fBiterator\fP ()".br.ti -1c.RI "virtual int \fBmaxItemWidth\fP () const".br.ti -1c.RI "virtual void \fBsetGeometry\fP (const QRect &rect)".br.ti -1c.RI "virtual bool \fBhasHeightForWidth\fP () const".br.ti -1c.RI "virtual int \fBheightForWidth\fP (int) const".br.ti -1c.RI "virtual QSize \fBsizeHint\fP () const".br.ti -1c.RI "void \fBsetExpanding\fP (QSizePolicy::ExpandData)".br.ti -1c.RI "virtual QSizePolicy::ExpandData \fBexpanding\fP () const".br.ti -1c.RI "virtual bool \fBisEmpty\fP () const".br.ti -1c.RI "uint \fBitemCount\fP () const".br.ti -1c.RI "virtual uint \fBcolumnsForWidth\fP (int width) const".br.ti -1c.RI "QValueList< QRect > \fBlayoutItems\fP (const QRect &, uint numCols) const".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "void \fBlayoutGrid\fP (uint numCols, QwtArray< int > &rowHeight, QwtArray< int > &colWidth) const".br.ti -1c.RI "void \fBstretchGrid\fP (const QRect &rect, uint numCols, QwtArray< int > &rowHeight, QwtArray< int > &colWidth) const".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtDynGridLayout::QwtDynGridLayout (QWidget * parent, int margin = \fC0\fP, int space = \fC-1\fP, const char * name = \fC0\fP)".PP\fBParameters:\fP.RS 4\fIparent\fP Parent widget .br\fImargin\fP Margin .br\fIspace\fP Spacing .br\fIname\fP Widget name .RE.PPDefinition at line 79 of file qwt_dyngrid_layout.cpp..SS "QwtDynGridLayout::QwtDynGridLayout (QLayout * parent, int space = \fC-1\fP, const char * name = \fC0\fP)".PP\fBParameters:\fP.RS 4\fIparent\fP Parent widget .br\fIspace\fP Spacing .br\fIname\fP Widget name .RE.PPDefinition at line 92 of file qwt_dyngrid_layout.cpp..SS "QwtDynGridLayout::QwtDynGridLayout (int space = \fC-1\fP, const char * name = \fC0\fP)".PP\fBParameters:\fP.RS 4\fIspace\fP Spacing .br\fIname\fP Widget name .RE.PPDefinition at line 104 of file qwt_dyngrid_layout.cpp..SS "QwtDynGridLayout::~\fBQwtDynGridLayout\fP ()\fC [virtual]\fP".PPDestructor. .PPDefinition at line 124 of file qwt_dyngrid_layout.cpp..SH "Member Function Documentation".PP .SS "void QwtDynGridLayout::addItem (QLayoutItem *)\fC [virtual]\fP".PPAdds item to the next free position. .PPDefinition at line 176 of file qwt_dyngrid_layout.cpp..SS "uint QwtDynGridLayout::columnsForWidth (int width) const\fC [virtual]\fP".PPCalculate the number of columns for a given width. It tries to use as many columns as possible (limited by \fBmaxCols()\fP).PP\fBParameters:\fP.RS 4\fIwidth\fP Available width for all columns .RE.PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::maxCols()\fP, \fBQwtDynGridLayout::setMaxCols()\fP .RE.PPDefinition at line 252 of file qwt_dyngrid_layout.cpp..PPReferences isEmpty(), itemCount(), maxCols(), and numCols()..PPReferenced by heightForWidth(), QwtPlot::printLegend(), and setGeometry()..SS "QSizePolicy::ExpandData QwtDynGridLayout::expanding () const\fC [virtual]\fP".PPReturns whether this layout can make use of more space than \fBsizeHint()\fP. A value of Vertical or Horizontal means that it wants to grow in only one dimension, while BothDirections means that it wants to grow in both dimensions. .PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::setExpanding()\fP .RE.PPDefinition at line 456 of file qwt_dyngrid_layout.cpp..PPReferenced by layoutItems(), and stretchGrid()..SS "bool QwtDynGridLayout::hasHeightForWidth () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4TRUE: QwtDynGridLayout implements heightForWidth. .RE.PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::heightForWidth()\fP .RE.PPDefinition at line 466 of file qwt_dyngrid_layout.cpp..SS "int QwtDynGridLayout::heightForWidth (int width) const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4The preferred height for this layout, given the width w. .RE.PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::hasHeightForWidth()\fP .RE.PPDefinition at line 476 of file qwt_dyngrid_layout.cpp..PPReferences columnsForWidth(), isEmpty(), itemCount(), layoutGrid(), numCols(), and numRows()..PPReferenced by QwtLegend::layoutContents()..SS "bool QwtDynGridLayout::isEmpty () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4TRUE if this layout is empty. .RE.PPDefinition at line 186 of file qwt_dyngrid_layout.cpp..PPReferenced by columnsForWidth(), heightForWidth(), layoutItems(), maxItemWidth(), setGeometry(), sizeHint(), and stretchGrid()..SS "uint QwtDynGridLayout::itemCount () const".PP\fBReturns:\fP.RS 4number of layout items .RE.PPDefinition at line 195 of file qwt_dyngrid_layout.cpp..PPReferenced by columnsForWidth(), heightForWidth(), layoutItems(), setGeometry(), sizeHint(), and stretchGrid()..SS "QLayoutIterator QwtDynGridLayout::iterator ()\fC [virtual]\fP".PP\fBReturns:\fP.RS 4An iterator over the children of this layout. .RE.PPDefinition at line 204 of file qwt_dyngrid_layout.cpp..PPReferenced by QwtPlot::printLegend()..SS "void QwtDynGridLayout::layoutGrid (uint numCols, QwtArray< int > & rowHeight, QwtArray< int > & colWidth) const\fC [protected]\fP".PPCalculate the dimensions for the columns and rows for a grid of numCols columns. .PP\fBParameters:\fP.RS 4\fInumCols\fP Number of columns. .br\fIrowHeight\fP Array where to fill in the calculated row heights. .br\fIcolWidth\fP Array where to fill in the calculated column widths. .RE.PPDefinition at line 411 of file qwt_dyngrid_layout.cpp..PPReferenced by heightForWidth(), layoutItems(), and sizeHint()..SS "QValueList< QRect > QwtDynGridLayout::layoutItems (const QRect & rect, uint numCols) const".PPCalculate the geometries of the layout items for a layout with numCols columns and a given rect. .PP\fBParameters:\fP.RS 4\fIrect\fP Rect where to place the items .br\fInumCols\fP Number of columns .RE.PP\fBReturns:\fP.RS 4item geometries .RE.PPDefinition at line 335 of file qwt_dyngrid_layout.cpp..PPReferences d_maxCols, expanding(), isEmpty(), itemCount(), layoutGrid(), maxCols(), numRows(), and stretchGrid()..PPReferenced by QwtPlot::printLegend(), and setGeometry()..SS "uint QwtDynGridLayout::maxCols () const".PPReturn the upper limit for the number of columns. 0 means unlimited, what is the default. .PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::setMaxCols()\fP .RE.PPDefinition at line 169 of file qwt_dyngrid_layout.cpp..PPReferenced by columnsForWidth(), and layoutItems()..SS "int QwtDynGridLayout::maxItemWidth () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4the maximum width of all layout items .RE.PPDefinition at line 308 of file qwt_dyngrid_layout.cpp..PPReferences isEmpty()..PPReferenced by QwtLegend::layoutContents()..SS "uint QwtDynGridLayout::numCols () const".PP\fBReturns:\fP.RS 4Number of columns of the current layout. .RE.PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::numRows\fP .RE.PP\fBWarning:\fP.RS 4The number of columns might change whenever the geometry changes .RE.PPDefinition at line 606 of file qwt_dyngrid_layout.cpp..PPReferenced by columnsForWidth(), heightForWidth(), and sizeHint()..SS "uint QwtDynGridLayout::numRows () const".PP\fBReturns:\fP.RS 4Number of rows of the current layout. .RE.PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::numCols\fP .RE.PP\fBWarning:\fP.RS 4The number of rows might change whenever the geometry changes .RE.PPDefinition at line 596 of file qwt_dyngrid_layout.cpp..PPReferenced by heightForWidth(), layoutItems(), sizeHint(), and stretchGrid()..SS "void QwtDynGridLayout::setExpanding (QSizePolicy::ExpandData expanding)".PPSet whether this layout can make use of more space than \fBsizeHint()\fP. A value of Vertical or Horizontal means that it wants to grow in only one dimension, while BothDirections means that it wants to grow in both dimensions. The default value is NoDirection. .PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::expanding()\fP .RE.PPDefinition at line 443 of file qwt_dyngrid_layout.cpp..SS "void QwtDynGridLayout::setGeometry (const QRect & rect)\fC [virtual]\fP".PPReorganizes columns and rows and resizes managed widgets within the rectangle rect. Definition at line 215 of file qwt_dyngrid_layout.cpp..PPReferences columnsForWidth(), isEmpty(), itemCount(), and layoutItems()..SS "void QwtDynGridLayout::setMaxCols (uint maxCols)".PPLimit the number of columns. .PP\fBParameters:\fP.RS 4\fImaxCols\fP upper limit, 0 means unlimited .RE.PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::maxCols()\fP .RE.PPDefinition at line 158 of file qwt_dyngrid_layout.cpp..PPReferenced by QwtPlot::setLegendPosition()..SS "QSize QwtDynGridLayout::sizeHint () const\fC [virtual]\fP".PPReturn the size hint. If \fBmaxCols()\fP > 0 it is the size for a grid with \fBmaxCols()\fP columns, otherwise it is the size for a grid with only one row. .PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::maxCols()\fP, \fBQwtDynGridLayout::setMaxCols()\fP .RE.PPDefinition at line 565 of file qwt_dyngrid_layout.cpp..PPReferences isEmpty(), itemCount(), layoutGrid(), numCols(), and numRows()..SS "void QwtDynGridLayout::stretchGrid (const QRect & rect, uint numCols, QwtArray< int > & rowHeight, QwtArray< int > & colWidth) const\fC [protected]\fP".PPStretch columns in case of \fBexpanding()\fP & QSizePolicy::Horizontal and rows in case of \fBexpanding()\fP & QSizePolicy::Vertical to fill the entire rect. Rows and columns are stretched with the same factor. .PP\fBSee also:\fP.RS 4\fBQwtDynGridLayout::setExpanding()\fP, \fBQwtDynGridLayout::expanding()\fP .RE.PPDefinition at line 505 of file qwt_dyngrid_layout.cpp..PPReferences expanding(), isEmpty(), itemCount(), and numRows()..PPReferenced by layoutItems()..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.

⌨️ 快捷键说明

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