add Bounds to pub.h [ci skip]

This commit is contained in:
vcaesar 2018-08-13 08:17:16 -04:00
parent 56bc179c39
commit 751af33b71
2 changed files with 9 additions and 9 deletions

View File

@ -26,6 +26,15 @@ typedef struct _MData MData;
MData mData;
struct _Bounds{
int32 X; // Top left X coordinate
int32 Y; // Top left Y coordinate
int32 W; // Total bounds width
int32 H; // Total bounds height
};
typedef struct _Bounds Bounds;
#if defined(IS_MACOSX)
static Boolean(*gAXIsProcessTrustedWithOptions) (CFDictionaryRef);

View File

@ -1,14 +1,5 @@
// #include "../base/os.h"
struct _Bounds{
int32 X; // Top left X coordinate
int32 Y; // Top left Y coordinate
int32 W; // Total bounds width
int32 H; // Total bounds height
};
typedef struct _Bounds Bounds;
Bounds get_bounds(uintptr pid, uintptr isHwnd){
// Check if the window is valid
Bounds bounds;