/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to GameButton.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-11 23:32:10 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140111233210-2lnw8934cjd5p848
* reorganising code to be remove extra typedefs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
#include "MousePointer.h"
16
16
 
17
 
typedef struct _GameButton GameButton;
18
 
//typedef struct _GameButtonClass GameButtonClass; //TODO
19
 
 
20
 
typedef void (* BtnCallback)(GameButton * self, void * data);
21
 
 
22
 
struct _GameButton {
 
17
typedef struct GameButton {
23
18
  SDL_Rect base; //this will behave like an SDL_Rect when cast to an SDL_Rect.
24
19
  bool fill;
25
20
  bool is_clicked;
36
31
  
37
32
  BtnCallback stop_hover;
38
33
  void * stop_hover_data;
39
 
};
 
34
} GameButtan;
 
35
 
 
36
typedef void (* BtnCallback)(GameButton * self, void * data);
40
37
 
41
38
GameButton * game_button_new (int x, int y, int h, int w);
42
39