Mercurial > hg > easaier-soundaccess
view data/model/SDLWidget.h @ 282:d9319859a4cf tip
(none)
author | benoitrigolleau |
---|---|
date | Fri, 31 Oct 2008 11:00:24 +0000 |
parents | 2ac52ea3c1c4 |
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