1 #ifndef CPP3DS_SFMLWIDGET_HPP
2 #define CPP3DS_SFMLWIDGET_HPP
7 #include <QResizeEvent>
9 #include <SFML/Graphics.hpp>
17 bool pollEvent(sf::Event& event);
20 virtual QPaintEngine* paintEngine()
const;
22 virtual void showEvent(QShowEvent*);
23 virtual void resizeEvent (QResizeEvent* event);
24 virtual void paintEvent(QPaintEvent*);
25 virtual void mousePressEvent(QMouseEvent* event);
26 virtual void mouseReleaseEvent(QMouseEvent* event);
27 virtual void mouseMoveEvent(QMouseEvent* event);
28 virtual void keyPressEvent(QKeyEvent *);
29 virtual void keyReleaseEvent(QKeyEvent *);
30 virtual int heightForWidth(
int w);
32 void pushEvent(
const sf::Event& event);
36 std::queue<sf::Event> m_events;