forked from bvschaik/julius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
1,516 additions
and
1,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
#ifndef GRAPHICS_CUSTOM_BUTTON_H | ||
#define GRAPHICS_CUSTOM_BUTTON_H | ||
#ifndef GRAPHICS_GENERIC_BUTTON_H | ||
#define GRAPHICS_GENERIC_BUTTON_H | ||
|
||
#include "graphics/button.h" | ||
#include "graphics/font.h" | ||
#include "input/mouse.h" | ||
|
||
typedef struct { | ||
typedef struct generic_button { | ||
short x; | ||
short y; | ||
short width; | ||
short height; | ||
void (*left_click_handler)(int param1, int param2); | ||
void (*right_click_handler)(int param1, int param2); | ||
void (*left_click_handler)(const struct generic_button *button); | ||
void (*right_click_handler)(const struct generic_button *button); | ||
int parameter1; | ||
int parameter2; | ||
} generic_button; | ||
|
||
int generic_buttons_handle_mouse(const mouse *m, int x, int y, generic_button *buttons, unsigned int num_buttons, | ||
unsigned int *focus_button_id); | ||
|
||
#endif // GRAPHICS_CUSTOM_BUTTON_H | ||
#endif // GRAPHICS_GENERIC_BUTTON_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.