Crossfire Server, Trunk
AnimationWidget.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ANIMATION_WIDGET_H_
14 #define ANIMATION_WIDGET_H_
15 
16 #include <QObject>
17 #include <QtWidgets>
18 
22 class AnimationWidget : public QWidget {
23  Q_OBJECT
24 
25 public:
26  AnimationWidget(QWidget* parent);
27 
28  void setAnimation(QList<int> faces);
29  void step();
30  //virtual QSize sizeHint () const { return QSize(32, 32); }
31 
32 protected:
33  int myStep;
34  QList<int> myFaces;
35 
36  virtual void paintEvent(QPaintEvent* event);
37 };
38 
39 #endif // ANIMATION_WIDGET_H_
AnimationWidget::setAnimation
void setAnimation(QList< int > faces)
Definition: AnimationWidget.cpp:25
AnimationWidget::myStep
int myStep
Definition: AnimationWidget.h:33
AnimationWidget::myFaces
QList< int > myFaces
Definition: AnimationWidget.h:34
AnimationWidget::step
void step()
Definition: AnimationWidget.cpp:31
AnimationWidget
Definition: AnimationWidget.h:22
dragon_attune.faces
dictionary faces
Definition: dragon_attune.py:31
AnimationWidget::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition: AnimationWidget.cpp:43
animate.event
event
DIALOGCHECK MINARGS 1 MAXARGS 2
Definition: animate.py:17
AnimationWidget::AnimationWidget
AnimationWidget(QWidget *parent)
Definition: AnimationWidget.cpp:18