libkdegames/libkdegamesprivate
kgamecanvas.h
Go to the documentation of this file.
195 KGameCanvasWidget *topLevelCanvas() const { return m_canvas ? m_canvas->topLevelCanvas() : NULL; }
269 class KDEGAMESPRIVATE_EXPORT KGameCanvasGroup : public KGameCanvasItem, public KGameCanvasAbstract
381 class KDEGAMESPRIVATE_EXPORT KGameCanvasRenderedPixmap : public KGameCanvasPixmap, public KGameRendererClient
384 KGameCanvasRenderedPixmap(KGameRenderer* renderer, const QString& spriteKey, KGameCanvasAbstract* canvas = 0);
458 KGameCanvasRectangle(const QColor& color, const QSize &size, KGameCanvasAbstract* canvas = NULL);
497 HCenter
507 VCenter
Definition: kgamecanvas.h:505
virtual void ensurePendingUpdate()=0
Virtual function to ensure an update is pending, called from children.
QList< KGameCanvasItem * > m_animated_items
Definition: kgamecanvas.h:61
virtual class KGameCanvasWidget * topLevelCanvas()
An adapter is not associated to any canvas, so this function simply returns 0.
Definition: kgamecanvas.h:656
virtual void paint(QPainter *p)=0
Override this function to draw the item with the painter.
virtual QPoint canvasPosition() const
The absolute position of the rendered content is not well defined for KGameCanvasAdapter.
Definition: kgamecanvas.h:667
virtual bool layered() const
Override this function to specify if the painting operations will paint over each other...
Definition: kgamecanvas.h:561
KGameCanvasAbstract * canvas() const
Returns the canvas that is actually "owning" the item.
Definition: kgamecanvas.h:192
Definition: kgamecanvas.h:506
Definition: kgamecanvas.h:495
virtual void paintEvent(QPaintEvent *event)
virtual bool layered() const
Override this function to specify if the painting operations will paint over each other...
Definition: kgamecanvas.h:438
QRect rect() const
virtual QPoint canvasPosition() const
Definition: kgamecanvas.cpp:227
virtual void invalidate(const QRect &r, bool translate=true)=0
Virtual function to update a rect.
Definition: kgamecanvas.h:496
Definition: kgamecanvas.h:494
virtual void advance(int msecs)
Override this function to handle animations, the default function does nothing.
Definition: kgamecanvas.cpp:402
virtual bool layered() const
Override this function to specify if the painting operations will paint over each other...
Definition: kgamecanvas.h:368
KGameCanvasWidget * topLevelCanvas() const
Returns the toplevel canvas widget, or NULL.
Definition: kgamecanvas.h:195
virtual QRect rect() const =0
Override this function to return the rect the item will be drawn into.
virtual void ensureAnimating()=0
Virtual function to let know the canvas that it has animated items in it.
virtual QPoint canvasPosition() const =0
virtual bool layered() const
Override this function to specify if the painting operations will paint over each other...
Definition: kgamecanvas.h:476
const QList< KGameCanvasItem * > * items() const
Returns a const pointer to the list holding all the items in the canvas.
Definition: kgamecanvas.h:70
QList< KGameCanvasItem * > itemsAt(int x, int y) const
Overload, same as above.
Definition: kgamecanvas.h:83
virtual class KGameCanvasWidget * topLevelCanvas()=0
Returns the toplevel non-group KGameCanvasWidget object.
void render(QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
Definition: kgamecanvas.h:504
This file is part of the KDE documentation.
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
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.