removed SDL_Rect and SDL_Point
This commit is contained in:
18
src/studio.h
18
src/studio.h
@@ -122,16 +122,26 @@ typedef enum
|
||||
TIC_SURF_MODE,
|
||||
} EditorMode;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
s32 x, y;
|
||||
} tic_point;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
s32 x, y, w, h;
|
||||
} tic_rect;
|
||||
|
||||
// SDL_Event* pollEvent();
|
||||
void setCursor(SDL_SystemCursor id);
|
||||
|
||||
s32 getMouseX();
|
||||
s32 getMouseY();
|
||||
bool checkMousePos(const SDL_Rect* rect);
|
||||
bool checkMouseClick(const SDL_Rect* rect, s32 button);
|
||||
bool checkMouseDown(const SDL_Rect* rect, s32 button);
|
||||
bool checkMousePos(const tic_rect* rect);
|
||||
bool checkMouseClick(const tic_rect* rect, s32 button);
|
||||
bool checkMouseDown(const tic_rect* rect, s32 button);
|
||||
|
||||
bool getGesturePos(SDL_Point* pos);
|
||||
bool getGesturePos(tic_point* pos);
|
||||
|
||||
// const u8* getKeyboard();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user