📄 qcanvasrectangle.3qt
字号:
.TH QCanvasRectangle 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQCanvasRectangle \- A rectangle with a movable top-left point<h1 align=center>QCanvasRectangle Class Reference.br<small>[ canvas module ]</small></h1>.br.PP\fC#include <qcanvas.h>\fR.PPInherits QCanvasPolygonalItem..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQCanvasRectangle\fR ( QCanvas * canvas ) ".br.ti -1c.BI "\fBQCanvasRectangle\fR ( const QRect &, QCanvas * canvas ) ".br.ti -1c.BI "\fBQCanvasRectangle\fR ( int " "x" ", int " "y" ", int " "width" ", int " "height" ", QCanvas * canvas ) ".br.ti -1c.BI "\fB~QCanvasRectangle\fR () ".br.ti -1c.BI "int \fBwidth\fR () const".br.ti -1c.BI "int \fBheight\fR () const".br.ti -1c.BI "void \fBsetSize\fR ( int " "w" ", int h ) ".br.ti -1c.BI "QSize \fBsize\fR () const".br.ti -1c.BI "QRect \fBrect\fR () const".br.ti -1c.BI "virtual int \fBrtti\fR () const".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "virtual void \fBdrawShape\fR ( QPainter & ) ".br.ti -1c.BI "QPointArray \fBchunks\fR () const".br.in -1c.SH DESCRIPTIONA rectangle with a movable top-left point..PPPaints a rectangle in a QBrush and QPen..SH MEMBER FUNCTION DOCUMENTATION.SH "QCanvasRectangle::QCanvasRectangle ( QCanvas * canvas )"Constructs a rectangle (0,0,32,32) on \fIcanvas.\fR.SH "QCanvasRectangle::QCanvasRectangle ( const QRect & r, QCanvas * canvas )"Constructs a rectangle positioned and sized by \fIr\fR on \fIcanvas.\fR.SH "QCanvasRectangle::QCanvasRectangle ( int x, int y, int width, int height, QCanvas * canvas )"Constructs a rectangle with position \fIx, y\fR and size \fIwidth\fR by \fIheight,\fR on \fIcanvas.\fR.SH "QCanvasRectangle::~QCanvasRectangle ()"Destructs the rectangle..SH "QPointArray QCanvasRectangle::areaPoints () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QCanvasPolygonalItem..SH "bool QCanvasRectangle::collidesWith ( const QCanvasItem * i ) const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QCanvasItem..SH "void QCanvasRectangle::drawShape ( QPainter & p ) \fC[virtual protected]\fR"Draws the rectangle on \fIp.\fR.PPReimplemented from QCanvasPolygonalItem..SH "int QCanvasRectangle::height () const"Returns the height of the rectangle..SH "QRect QCanvasRectangle::rect () const"Returns the integer-converted x(), y() position and size() of the rectangle as a QRect..SH "int QCanvasRectangle::rtti () const \fC[virtual]\fR"Returns 5..PPSee also QCanvasItem::rtti()..PPReimplemented from QCanvasItem..SH "void QCanvasRectangle::setSize ( int width, int height )"Sets the \fIwidth\fR and \fIheight\fR of the rectangle..SH "QSize QCanvasRectangle::size () const"Returns the width() and height() of the rectangle..PPSee also rect() and setSize()..SH "int QCanvasRectangle::width () const"Returns the width of the rectangle..SH "SEE ALSO".BR http://doc.trolltech.com/qcanvasrectangle.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -