12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOUTON_H_INCLUDED
- #define BOUTON_H_INCLUDED
- #include <iostream>
- #include <string>
- #include <SDL/SDL.h>
- #undef main
- class Bouton
- {
- public:
- Bouton(SDL_Surface *objetImg, SDL_Surface *screen, int const x, int const y);
- ~Bouton();
- void attribuerImg(SDL_Surface *selectImg);
- bool calculer(int const xSouris, int const ySouris);
- void afficher();
- bool estClique(int const xSouris, int const ySouris);
- protected:
-
- int m_x;
- int m_y;
-
- SDL_Surface *m_screen;
- SDL_Surface *m_objetImg;
- SDL_Surface *m_selectImg;
- SDL_Surface *m_blitImg;
- };
- #endif
|