mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Document setThumbnailClip
This commit is contained in:
@@ -179,7 +179,7 @@ class Window : public mate::TrackableObject<Window>,
|
||||
bool IsWindowMessageHooked(UINT message);
|
||||
void UnhookWindowMessage(UINT message);
|
||||
void UnhookAllWindowMessages();
|
||||
bool SetThumbnailClip(const gfx::Rect& window_region);
|
||||
bool SetThumbnailClip(const gfx::Rect& region);
|
||||
#endif
|
||||
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
|
||||
@@ -985,6 +985,13 @@ The `flags` is an array that can include following `String`s:
|
||||
button state is drawn. This value is intended for instances where the button
|
||||
is used in a notification.
|
||||
|
||||
#### `win.setThumbnailClip(region)` _Windows_
|
||||
|
||||
* `region` - Object with `x`, `y`, `width`, and `height` properties.
|
||||
|
||||
Sets the region of the window to show as the thumbnail image displayed when
|
||||
hovering over the window in the taskbar.
|
||||
|
||||
#### `win.showDefinitionForSelection()` _macOS_
|
||||
|
||||
Same as `webContents.showDefinitionForSelection()`.
|
||||
|
||||
Reference in New Issue
Block a user