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

📄 qwtplaintext.3

📁 linux下qt的第三方的一个类
💻 3
字号:
.TH "QwtPlainText" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtPlainText \- .SH SYNOPSIS.br.PPInherits \fBQwtText\fP..PP.SH "Detailed Description".PP Plain text drawing support. .PPDefinition at line 130 of file qwt_text.h..SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtPlainText\fP (const QString &text, const QFont &, int align=Qt::AlignCenter|Qt::WordBreak|Qt::ExpandTabs, const QColor &color=QColor(), const QPen &pen=QPen(Qt::NoPen), const QBrush &brush=QBrush(Qt::NoBrush))".br.ti -1c.RI "\fBQwtPlainText\fP (const QString &text, const QFont &font, const QColor &color)".br.ti -1c.RI "virtual \fBQwtText\fP * \fBclone\fP () const".br.ti -1c.RI "virtual int \fBheightForWidth\fP (int width) const".br.ti -1c.RI "virtual QRect \fBboundingRect\fP (QPainter *painter=0) const".br.ti -1c.RI "virtual void \fBdraw\fP (QPainter *painter, const QRect &rect) const".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtPlainText::QwtPlainText (const QString & text, const QFont & font, int align = \fCQt::AlignCenter | Qt::WordBreak | Qt::ExpandTabs\fP, const QColor & color = \fCQColor()\fP, const QPen & pen = \fCQPen(Qt::NoPen)\fP, const QBrush & brush = \fCQBrush(Qt::NoBrush)\fP)".PPConstructor. .PP\fBParameters:\fP.RS 4\fItext\fP Contents of the text .br\fIfont\fP Font of the text .br\fIalign\fP Or'd values of Qt::AlignmentFlags for drawing the text .br\fIcolor\fP Color of the text .br\fIpen\fP Pen to draw the enclosing rectangle .br\fIbrush\fP Brush to draw the enclosing rectangle .RE.PPDefinition at line 203 of file qwt_text.cpp..PPReferenced by clone()..SS "QwtPlainText::QwtPlainText (const QString & text, const QFont & font, const QColor & color)".PPConstructor. .PP\fBParameters:\fP.RS 4\fItext\fP Text .br\fIfont\fP Font .br\fIcolor\fP Color .RE.PPDefinition at line 216 of file qwt_text.cpp..SH "Member Function Documentation".PP .SS "QRect QwtPlainText::boundingRect (QPainter * painter = \fC0\fP) const\fC [virtual]\fP".PPReturns the bounding rectangle. .PPThe bounding rectangle is calculated with respect to (0, 0). The left and top border depend on the alignment flags:.IP "\(bu" 2the left border is at -width, -width/2 or 0 for Qt::AlignRight, Qt::AlignHCenter or Qt::AlignLeft respectively.IP "\(bu" 2the top border is at 0, -height/2 or -height for Qt::AlignTop, Qt::AlignVCenter or Qt::AlignBottom respectively.PP.PPUse for instance QRect::moveBy(x,y), before drawing the text into the rectangle. .PPImplements \fBQwtText\fP..PPDefinition at line 261 of file qwt_text.cpp..PPReferences QwtText::alignment(), QwtText::font(), QwtText::fontMetrics(), and QwtText::text()..SS "\fBQwtText\fP * QwtPlainText::clone () const\fC [virtual]\fP".PPCreate a clone. .PPImplements \fBQwtText\fP..PPDefinition at line 224 of file qwt_text.cpp..PPReferences QwtText::alignment(), QwtText::color(), QwtText::font(), QwtPlainText(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::text()..SS "void QwtPlainText::draw (QPainter * painter, const QRect & rect) const\fC [virtual]\fP".PPDraw the text in a clipping rectangle. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIrect\fP Clipping rectangle .RE.PP.PPImplements \fBQwtText\fP..PPDefinition at line 246 of file qwt_text.cpp..PPReferences QwtText::alignment(), QwtText::color(), QwtPainter::drawRect(), QwtPainter::drawText(), QwtText::font(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::text()..SS "int QwtPlainText::heightForWidth (int width) const\fC [virtual]\fP".PPFind the height for a given width. .PP\fBParameters:\fP.RS 4\fIwidth\fP Width .RE.PP\fBReturns:\fP.RS 4height Height .RE.PP.PPImplements \fBQwtText\fP..PPDefinition at line 235 of file qwt_text.cpp..PPReferences QwtText::alignment(), QwtText::fontMetrics(), and QwtText::text()..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 + -