Mercurial > hg > easaier-soundaccess
view data/model/SDLWidget.h @ 167:2ac52ea3c1c4
video mouse events are in SDL now.
The code is really better now, but there is a display bug when you zoom in, zoom out
author | benoitrigolleau |
---|---|
date | Fri, 16 Nov 2007 15:18:44 +0000 |
parents | f2d2c1084e7c |
children |
line wrap: on
line source
#ifndef _SDL_WIDGET_H #define _SDL_WIDGET_H #include <QWidget> #include <QShowEvent> #include <QTimer> #ifdef WIN32 #include <SDL.h> #endif #ifdef __unix__ #include <SDL/SDL.h> #endif #undef main class SDLWidget : public QWidget { Q_OBJECT public: SDLWidget(); virtual ~SDLWidget(); void setInitSize(int w, int h); signals: void initSizeChanged(); public slots: protected: bool windowInitialized; SDL_Surface *screen; int m_width; int m_height; virtual void showEvent(QShowEvent *e); protected slots: void updateMinSize(); }; #endif