libkdegames/libkdegamesprivate
#include <KGameCanvas>
Public Member Functions | |
KGameCanvasRectangle (const QColor &color, const QSize &size, KGameCanvasAbstract *canvas=NULL) | |
KGameCanvasRectangle (KGameCanvasAbstract *canvas=NULL) | |
virtual | ~KGameCanvasRectangle () |
QColor | color () const |
virtual bool | layered () const |
virtual void | paint (QPainter *p) |
virtual QRect | rect () const |
void | setColor (const QColor &color) |
void | setSize (const QSize &size) |
Public Member Functions inherited from KGameCanvasItem | |
KGameCanvasItem (KGameCanvasAbstract *canvas=NULL) | |
virtual | ~KGameCanvasItem () |
QPoint | absolutePosition () const |
virtual void | advance (int msecs) |
bool | animated () const |
KGameCanvasAbstract * | canvas () const |
virtual void | changed () |
void | hide () |
void | lower () |
void | moveTo (const QPoint &newpos) |
void | moveTo (int x, int y) |
int | opacity () const |
QPoint | pos () const |
void | putInCanvas (KGameCanvasAbstract *canvas) |
void | raise () |
void | setAnimated (bool a) |
void | setOpacity (int o) |
void | setVisible (bool v) |
void | show () |
void | stackOver (KGameCanvasItem *ref) |
void | stackUnder (KGameCanvasItem *ref) |
KGameCanvasWidget * | topLevelCanvas () const |
bool | visible () const |
Detailed Description
A solid rectangle.
A KGameCanvasRectangle is a rectangle that can be put in the canvas.
- Deprecated:
- For new applications, use Qt's Graphics View framework or Qt Quick.
Definition at line 450 of file kgamecanvas.h.
Constructor & Destructor Documentation
KGameCanvasRectangle::KGameCanvasRectangle | ( | const QColor & | color, |
const QSize & | size, | ||
KGameCanvasAbstract * | canvas = NULL |
||
) |
Constructor, specifying the pixmap and the parameters to use.
Definition at line 781 of file kgamecanvas.cpp.
KGameCanvasRectangle::KGameCanvasRectangle | ( | KGameCanvasAbstract * | canvas = NULL | ) |
Constructor, creating with an empty pixmap.
Definition at line 789 of file kgamecanvas.cpp.
|
virtual |
Definition at line 796 of file kgamecanvas.cpp.
Member Function Documentation
|
inline |
Returns the color.
Definition at line 466 of file kgamecanvas.h.
|
inlinevirtual |
Override this function to specify if the painting operations will paint over each other.
If not, the item will be drawn more quickly when opacity is != 255, because it does not have to be painted onto a pixmap first. If you don't care about the item's opacity, don't care about this function as well.
Reimplemented from KGameCanvasItem.
Definition at line 476 of file kgamecanvas.h.
|
virtual |
Override this function to draw the item with the painter.
Implements KGameCanvasItem.
Definition at line 815 of file kgamecanvas.cpp.
|
virtual |
Override this function to return the rect the item will be drawn into.
Implements KGameCanvasItem.
Definition at line 819 of file kgamecanvas.cpp.
void KGameCanvasRectangle::setColor | ( | const QColor & | color | ) |
Sets the color.
Definition at line 801 of file kgamecanvas.cpp.
void KGameCanvasRectangle::setSize | ( | const QSize & | size | ) |
Sets the size.
Definition at line 808 of file kgamecanvas.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.