X Tutup
Skip to content

Commit ccee3e1

Browse files
committed
Document setThumbnailClip
1 parent 86218fe commit ccee3e1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

atom/browser/api/atom_api_window.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Window : public mate::TrackableObject<Window>,
179179
bool IsWindowMessageHooked(UINT message);
180180
void UnhookWindowMessage(UINT message);
181181
void UnhookAllWindowMessages();
182-
bool SetThumbnailClip(const gfx::Rect& window_region);
182+
bool SetThumbnailClip(const gfx::Rect& region);
183183
#endif
184184

185185
#if defined(TOOLKIT_VIEWS)

docs/api/browser-window.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,13 @@ The `flags` is an array that can include following `String`s:
985985
button state is drawn. This value is intended for instances where the button
986986
is used in a notification.
987987

988+
#### `win.setThumbnailClip(region)` _Windows_
989+
990+
* `region` - Object with `x`, `y`, `width`, and `height` properties.
991+
992+
Sets the region of the window to show as the thumbnail image displayed when
993+
hovering over the window in the taskbar.
994+
988995
#### `win.showDefinitionForSelection()` _macOS_
989996

990997
Same as `webContents.showDefinitionForSelection()`.

0 commit comments

Comments
 (0)
X Tutup