Search for usage in LXR

KGameCanvasDummy Class Reference

#include <KGameCanvas>

Inheritance diagram for KGameCanvasDummy:

Public Member Functions

 KGameCanvasDummy (KGameCanvasAbstract *canvas=nullptr)
void paint (QPainter *p) override
QRect rect () const override
- Public Member Functions inherited from KGameCanvasItem
 KGameCanvasItem (KGameCanvasAbstract *canvas=nullptr)
QPoint absolutePosition () const
virtual void advance (int msecs)
bool animated () const
KGameCanvasAbstractcanvas () const
virtual void changed ()
void hide ()
virtual bool layered () const
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)
KGameCanvasWidgettopLevelCanvas () const
bool visible () const

Detailed Description

A dummy (empty) item.

A KGameCanvasDummy is an empty, invisible item. You can use it as reference for stacking items in the canvas using the stackOver and stackUnder functions.

For new applications, use Qt's Graphics View framework or Qt Quick.

Definition at line 259 of file kgamecanvas.h.

Constructor & Destructor Documentation

◆ KGameCanvasDummy()

KGameCanvasDummy::KGameCanvasDummy ( KGameCanvasAbstract canvas = nullptr)


Definition at line 658 of file kgamecanvas.cpp.

Member Function Documentation

◆ paint()

void KGameCanvasDummy::paint ( QPainter p)

This function does nothing (of course)

Implements KGameCanvasItem.

Definition at line 667 of file kgamecanvas.cpp.

◆ rect()

QRect KGameCanvasDummy::rect ( ) const

This returns an empty rectangle.

Implements KGameCanvasItem.

Definition at line 671 of file kgamecanvas.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Dec 4 2022 03:50:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.