Add files from zip
This commit is contained in:
253
doc/man/man3/QwtTextLabel.3
Normal file
253
doc/man/man3/QwtTextLabel.3
Normal file
@@ -0,0 +1,253 @@
|
||||
.TH "QwtTextLabel" 3 "Sun Jul 18 2021" "Version 6.2.0" "Qwt User's Guide" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
QwtTextLabel \- A Widget which displays a \fBQwtText\fP\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
\fC#include <qwt_text_label\&.h>\fP
|
||||
.PP
|
||||
Inherits QFrame\&.
|
||||
.PP
|
||||
Inherited by \fBQwtLegendLabel\fP\&.
|
||||
.SS "Public Slots"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "void \fBsetText\fP (const QString &, \fBQwtText::TextFormat\fP textFormat=\fBQwtText::AutoText\fP)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "virtual void \fBsetText\fP (const \fBQwtText\fP &)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "void \fBclear\fP ()"
|
||||
.br
|
||||
.RI "Clear the text and all \fBQwtText\fP attributes\&. "
|
||||
.in -1c
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBQwtTextLabel\fP (QWidget *parent=NULL)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "\fBQwtTextLabel\fP (const \fBQwtText\fP &, QWidget *parent=NULL)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "virtual \fB~QwtTextLabel\fP ()"
|
||||
.br
|
||||
.RI "Destructor\&. "
|
||||
.ti -1c
|
||||
.RI "void \fBsetPlainText\fP (const QString &)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "QString \fBplainText\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "const \fBQwtText\fP & \fBtext\fP () const"
|
||||
.br
|
||||
.RI "Return the text\&. "
|
||||
.ti -1c
|
||||
.RI "int \fBindent\fP () const"
|
||||
.br
|
||||
.RI "Return label's text indent in pixels\&. "
|
||||
.ti -1c
|
||||
.RI "void \fBsetIndent\fP (int)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBmargin\fP () const"
|
||||
.br
|
||||
.RI "Return label's text margin in pixels\&. "
|
||||
.ti -1c
|
||||
.RI "void \fBsetMargin\fP (int)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "virtual QSize \fBsizeHint\fP () const override"
|
||||
.br
|
||||
.RI "Return a size hint\&. "
|
||||
.ti -1c
|
||||
.RI "virtual QSize \fBminimumSizeHint\fP () const override"
|
||||
.br
|
||||
.RI "Return a minimum size hint\&. "
|
||||
.ti -1c
|
||||
.RI "virtual int \fBheightForWidth\fP (int) const override"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "QRect \fBtextRect\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "virtual void \fBdrawText\fP (QPainter *, const QRectF &)"
|
||||
.br
|
||||
.RI "Redraw the text\&. "
|
||||
.in -1c
|
||||
.SS "Protected Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *) override"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "virtual void \fBdrawContents\fP (QPainter *)"
|
||||
.br
|
||||
.RI "Redraw the text and focus indicator\&. "
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
A Widget which displays a \fBQwtText\fP\&.
|
||||
.PP
|
||||
Definition at line 26 of file qwt_text_label\&.h\&.
|
||||
.SH "Constructor & Destructor Documentation"
|
||||
.PP
|
||||
.SS "QwtTextLabel::QwtTextLabel (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
|
||||
Constructs an empty label\&.
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIparent\fP Parent widget
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 39 of file qwt_text_label\&.cpp\&.
|
||||
.SS "QwtTextLabel::QwtTextLabel (const \fBQwtText\fP & text, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
|
||||
Constructs a label that displays the text, text
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIparent\fP Parent widget
|
||||
.br
|
||||
\fItext\fP Text
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 50 of file qwt_text_label\&.cpp\&.
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "int QwtTextLabel::heightForWidth (int width) const\fC [override]\fP, \fC [virtual]\fP"
|
||||
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIwidth\fP Width
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Preferred height for this widget, given the width\&.
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 209 of file qwt_text_label\&.cpp\&.
|
||||
.SS "void QwtTextLabel::paintEvent (QPaintEvent * event)\fC [override]\fP, \fC [protected]\fP, \fC [virtual]\fP"
|
||||
Qt paint event
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIevent\fP Paint event
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Reimplemented in \fBQwtLegendLabel\fP\&.
|
||||
.PP
|
||||
Definition at line 236 of file qwt_text_label\&.cpp\&.
|
||||
.SS "QString QwtTextLabel::plainText () const"
|
||||
Interface for the designer plugin
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Text as plain text
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBsetPlainText()\fP, \fBtext()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 84 of file qwt_text_label\&.cpp\&.
|
||||
.SS "void QwtTextLabel::setIndent (int indent)"
|
||||
Set label's text indent in pixels
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIindent\fP Indentation in pixels
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 142 of file qwt_text_label\&.cpp\&.
|
||||
.SS "void QwtTextLabel::setMargin (int margin)"
|
||||
Set label's margin in pixels
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fImargin\fP Margin in pixels
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 163 of file qwt_text_label\&.cpp\&.
|
||||
.SS "void QwtTextLabel::setPlainText (const QString & text)"
|
||||
Interface for the designer plugin - does the same as \fBsetText()\fP
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBplainText()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 73 of file qwt_text_label\&.cpp\&.
|
||||
.SS "void QwtTextLabel::setText (const QString & text, \fBQwtText::TextFormat\fP textFormat = \fC\fBQwtText::AutoText\fP\fP)\fC [slot]\fP"
|
||||
Change the label's text, keeping all other \fBQwtText\fP attributes
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fItext\fP New text
|
||||
.br
|
||||
\fItextFormat\fP Format of text
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBQwtText\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 96 of file qwt_text_label\&.cpp\&.
|
||||
.SS "void QwtTextLabel::setText (const \fBQwtText\fP & text)\fC [virtual]\fP, \fC [slot]\fP"
|
||||
Change the label's text
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fItext\fP New text
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Reimplemented in \fBQwtLegendLabel\fP\&.
|
||||
.PP
|
||||
Definition at line 109 of file qwt_text_label\&.cpp\&.
|
||||
.SS "QRect QwtTextLabel::textRect () const"
|
||||
Calculate geometry for the text in widget coordinates
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Geometry for the text
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 288 of file qwt_text_label\&.cpp\&.
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|
||||
Reference in New Issue
Block a user