mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add Bounds to pub.h [ci skip]
This commit is contained in:
parent
56bc179c39
commit
751af33b71
2 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue