@overwolf/ow-electron-packages-types 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/overlay.d.ts +23 -4
  2. package/package.json +1 -1
package/overlay.d.ts CHANGED
@@ -3,6 +3,8 @@ import {
3
3
  BrowserWindowConstructorOptions,
4
4
  Size,
5
5
  WebContents,
6
+ Display,
7
+ Rectangle
6
8
  } from 'electron';
7
9
  import { EventEmitter } from 'events';
8
10
 
@@ -112,10 +114,27 @@ export interface InjectionError {
112
114
  }
113
115
 
114
116
  export interface GameWindowInfo {
115
- size: Size;
116
- nativeHandle: number;
117
- focused: boolean;
118
- graphics: 'd3d9' | 'd3d12' | 'd3d11' | string | undefined;
117
+ /** The dimensions of the game window. */
118
+ readonly size: Size;
119
+
120
+ /** The native window handle (HWND) of the game window. */
121
+ readonly nativeHandle: number;
122
+
123
+ /** Indicates whether the game window is currently focused. */
124
+ readonly focused: boolean;
125
+
126
+ /** The graphics API used by the game (e.g., Direct3D 9, 11, 12, Vulkan). */
127
+ readonly graphics: 'd3d9' | 'd3d12' | 'd3d11' | 'vulkan' | string | undefined;
128
+
129
+ /** Display information for the screen on which the game window resides.
130
+ * Available since version 1.5.11.
131
+ */
132
+ readonly screen?: Display;
133
+
134
+ /** The bounding rectangle of the game window in screen coordinates.
135
+ * Available since version 1.5.11.
136
+ */
137
+ readonly bounds?: Rectangle;
119
138
  }
120
139
 
121
140
  export interface GameInputInterception {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron-packages-types",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
5
5
  "license": "MIT",
6
6
  "types": "overlay.d.ts",