Crate winvd

Source
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.
DesktopEventThread
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§

DesktopEvent
DesktopEventSender
Error

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>, or std::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

Type Aliases§

Result