Expand description
winvd - crate for accessing the Windows Virtual Desktop API
All functions taking Into<Desktop>
can take either a index or a GUID.
§Examples
- Get first desktop name by index
get_desktop(0).get_name()
- Get second desktop name by index
get_desktop(1).get_name()
- Get desktop name by GUID
get_desktop(GUID(123...)).get_name()
- Switch to fifth desktop by index
switch_desktop(4)
- Get third desktop name
get_desktop(2).get_name()
Structs§
- Desktop
- You can construct Desktop instance with
get_desktop(5)
by index or GUID. - Desktop
Event Thread - Event listener thread, create with
listen_desktop_events(sender)
, value must be held in the state of the program, the thread is joined when the value is dropped.
Enums§
Functions§
- create_
desktop - Create desktop
- get_
current_ desktop - Get current desktop
- get_
desktop - Get desktop by index or GUID
- get_
desktop_ by_ window - Get desktop by window
- get_
desktop_ count - Get desktop count
- get_
desktops - Get all desktops
- is_
pinned_ app - Is pinned app
- is_
pinned_ window - Is window pinned?
- is_
window_ on_ current_ desktop - is_
window_ on_ desktop - Is window on desktop by index or GUID
- listen_
desktop_ events - Create event sending thread, give this
crossbeam_channel::Sender<T>
,winit::event_loop::EventLoopProxy<T>
, orstd::sync::mpsc::Sender<T>
. - move_
window_ to_ desktop - Move window to desktop by index or GUID
- pin_app
- Pin app
- pin_
window - Pin window
- remove_
desktop - Remove desktop by index or GUID
- switch_
desktop - Switch desktop by index or GUID
- unpin_
app - Unpin app
- unpin_
window - Unpin window