From 751af33b71e1fc104ec449154d0a1f98b72580a4 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Mon, 13 Aug 2018 08:17:16 -0400 Subject: [PATCH] add Bounds to pub.h [ci skip] --- window/pub.h | 9 +++++++++ window/win_sys.h | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) 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;