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§
- You can construct Desktop instance with
get_desktop(5)
by index or GUID. - 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
- Get current desktop
- Get desktop by index or GUID
- Get desktop by window
- Get desktop count
- Get all desktops
- Is pinned app
- Is window pinned?
- Is window on desktop by index or GUID
- Create event sending thread, give this
crossbeam_channel::Sender<T>
,winit::event_loop::EventLoopProxy<T>
, orstd::sync::mpsc::Sender<T>
. - Move window to desktop by index or GUID
- Pin app
- Pin window
- Remove desktop by index or GUID
- Switch desktop by index or GUID
- Unpin app
- Unpin window