/+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-09 20:07:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140109200752-owx481zfl2n4tjsc
* added and changed little in the files Lincening information.
* Started to implement the JS parser's C file.

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 {
 
17
typedef struct _GameButton GameButton;
 
18
//typedef struct _GameButtonClass GameButtonClass; //TODO
 
19
 
 
20
typedef void (* BtnCallback)(GameButton * self, void * data);
 
21
 
 
22
struct _GameButton {
18
23
  SDL_Rect base; //this will behave like an SDL_Rect when cast to an SDL_Rect.
19
24
  bool fill;
20
25
  bool is_clicked;
31
36
  
32
37
  BtnCallback stop_hover;
33
38
  void * stop_hover_data;
34
 
} GameButtan;
35
 
 
36
 
typedef void (* BtnCallback)(GameButton * self, void * data);
 
39
};
37
40
 
38
41
GameButton * game_button_new (int x, int y, int h, int w);
39
42