Skip to content

Commit 07a4799

Browse files
committed
Update docs
1 parent 09517da commit 07a4799

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ This class is similar to Electron's [`BrowserWindow`](https://electronjs.org/doc
8080

8181
#### `Window.getTitle()`
8282

83-
- Returns string
83+
- Returns `string`
8484

8585
#### `Window.setBounds(bounds: Rectangle)`
8686

@@ -114,6 +114,32 @@ Maximizes the window.
114114

115115
Sets whether the window should show always on top of other windows.
116116

117+
#### `Window.getIcon()`
118+
119+
Gets 32x32 icon png buffer associated with the window.
120+
121+
Returns `Promise<Buffer>`
122+
123+
#### `Window.setMaximizable(toggle: boolean)`
124+
125+
Sets whether the window should be maximizable.
126+
127+
#### `Window.setMinimizable(toggle: boolean)`
128+
129+
Sets whether the window should be minimizable.
130+
131+
#### `Window.isMaximizable()`
132+
133+
Determines whether the window is maximizable.
134+
135+
Returns `boolean`
136+
137+
#### `Window.isMaximizable()`
138+
139+
Determines whether the window is maximizable.
140+
141+
Returns `boolean`
142+
117143
# Projects using `node-window-manager`
118144

119145
- [Multrin](https://github.com/sentialx/multrin)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-window-manager",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Manage windows in macOS, Windows and Linux",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)