Crate x_win

Crate x_win 

Source

Structs§

IconInfo
Struct to store Icon information
ProcessInfo
Struct to store process information of the window
UsageInfo
Struct to store usage data of the window
WindowInfo
Struct to store all informations of the window
WindowPosition
Struct to store position and size of the window

Traits§

Api

Functions§

disable_extension
Disable Gnome extension required for Linux using Gnome > 41. This function will disable extension needed to correctly detect working windows with Wayland desktop environment.
empty_entity
enable_extension
Enable Gnome extension required for Linux using Gnome > 41. This function will enable extension needed to correctly detect working windows with Wayland desktop environment.
get_active_window
Retrieve information the about currently active window. Return WindowInfo containing details about a specific active window.
get_browser_url
Recover browser url of window. Return String
get_open_windows
Retrieve information about the currently open windows. Return Vec<WindowInfo> each containing details about a specific open window.
get_window_icon
Recover icon of window. Return IconInfo
install_extension
Install “@mininben90/x-win” Gnome extension required for Linux using Gnome > 41. This function will write extension files needed to correctly detect working windows with Wayland desktop environment. Restart session will be require to install the gnome extension.
is_enabled_extension
Return true of false if gnome extension is enabled for Linux using Gnome > 41. This function will return true or false if the extension is set to enabled on extension info. Working only with Wayland windows manager.
is_installed_extension
Return true of false the extensions is installed for Linux using Gnome > 41. This function will return true or false if the extension is correctly installed. Working only with Wayland windows manager.
os_name
To know the os
uninstall_extension
Uninstall “@mininben90/x-win” Gnome extension. This function will disable and remove extension files. Restart session will be require to remove the gnome extension.

Type Aliases§

Result