diff --git a/window/pub.h b/window/pub.h index 47689bf..5688eb2 100644 --- a/window/pub.h +++ b/window/pub.h @@ -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); diff --git a/window/win_sys.h b/window/win_sys.h index 637ce58..b11eb10 100644 --- a/window/win_sys.h +++ b/window/win_sys.h @@ -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;