![]() |
DeskUp 0.3
|
Bootstrap and functions for the Windows window backend (DeskUp). More...

Go to the source code of this file.
Functions | |
| bool | WIN_isAvailable () noexcept |
| Returns whether the Windows backend is available. | |
| DeskUpWindowDevice | WIN_CreateDevice () noexcept |
Creates a Windows DeskUpWindowDevice. | |
| void | WIN_destroyDevice (DeskUpWindowDevice *_this) noexcept |
Deletes a Windows DeskUpWindowDevice. | |
| DeskUp::Result< std::string > | WIN_getDeskUpPath () noexcept |
| Returns the base DeskUp working path on the system. | |
| DeskUp::Result< int > | WIN_getWindowXPos (DeskUpWindowDevice *_this) noexcept |
| Gets the X position (top-left corner) of the active (client) window in the device. | |
| DeskUp::Result< int > | WIN_getWindowYPos (DeskUpWindowDevice *_this) noexcept |
| Gets the Y position (top-left corner) of the active (client) window in the device. | |
| DeskUp::Result< unsigned int > | WIN_getWindowWidth (DeskUpWindowDevice *_this) noexcept |
| Gets the width of the active (client) window in the device. | |
| DeskUp::Result< unsigned int > | WIN_getWindowHeight (DeskUpWindowDevice *_this) noexcept |
| Gets the height of the active (client) window in the device. | |
| DeskUp::Result< fs::path > | WIN_getPathFromWindow (DeskUpWindowDevice *_this) noexcept |
| Gets the absolute path of the executable that owns the active window. | |
| DeskUp::Result< std::vector< windowDesc > > | WIN_getAllOpenWindows (DeskUpWindowDevice *_this) noexcept |
| Enumerates all visible/non-minimized windows on the desktop. | |
| DeskUp::Result< windowDesc > | WIN_recoverSavedWindow (DeskUpWindowDevice *_this, const fs::path &path) noexcept |
| Loads a window description from a saved workspace file. | |
| DeskUp::Status | WIN_loadProcessFromPath (DeskUpWindowDevice *_this, const fs::path &path) noexcept |
| Creates a process from the specified path. | |
| DeskUp::Status | WIN_resizeWindow (DeskUpWindowDevice *_this, const windowDesc window) noexcept |
| Resizes a window according to the windowDesc parameter geometry. | |
| DeskUp::Result< unsigned int > | WIN_closeProcessFromPath (DeskUpWindowDevice *, const fs::path &path, bool allowForce) noexcept |
This function closes all the instances associated with an executable, specified by the path parameter. | |
| void | WIN_TEST_setHWND (DeskUpWindowDevice *_this, HWND hwnd) |
| Test-only helper to set the internal HWND for the device. | |
Variables | |
| DeskUpWindowBootStrap | winWindowDevice |
| Windows backend bootstrap descriptor. | |
Bootstrap and functions for the Windows window backend (DeskUp).
This file is part of DeskUp
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
|
noexcept |
This function closes all the instances associated with an executable, specified by the path parameter.
| _this | The same device instance. |
| path | A std::string instance representing the path to check. |
| allowForce | Whether if the call should force the windows it finds to close. |
The number of associated windows closed in the process. @errors
|
noexcept |
Creates a Windows DeskUpWindowDevice.
Wires the device function pointers to the Windows backend implementations and allocates the internal data required.
DeskUpWindowDevice.
|
noexcept |
Deletes a Windows DeskUpWindowDevice.
Deletion is done as a wrapper function in window_core.cc, done by DU_destroy via the pointer function
|
noexcept |
Enumerates all visible/non-minimized windows on the desktop.
| _this | The same device instance. |
std::vector<windowDesc> with the abstract description of each window. @errors
|
noexcept |
Returns the base DeskUp working path on the system.
Points to the top-level directory where user workspaces are stored. The directory is ensured to exist (created if necessary).
std::string with the absolute path to the DeskUp top-level folder. @errors
|
noexcept |
Gets the absolute path of the executable that owns the active window.
| _this | The same device instance. |
fs::path with the process image path on success. @errors
|
noexcept |
Gets the height of the active (client) window in the device.
| _this | The same device instance. |
unsigned int with the window height. @errors
|
noexcept |
Gets the width of the active (client) window in the device.
| _this | The same device instance. |
unsigned int with the window width. @errors
|
noexcept |
Gets the X position (top-left corner) of the active (client) window in the device.
| _this | The same device instance. |
int with the X coordinate of the window. @errors
|
noexcept |
Gets the Y position (top-left corner) of the active (client) window in the device.
| _this | The same device instance. |
int with the Y coordinate of the window. @errors
|
noexcept |
Returns whether the Windows backend is available.
true when compiled/executed on Windows, false otherwise.
|
noexcept |
Creates a process from the specified path.
| _this | The same device instance. |
| path | a literal representing the path to the executable linked with the program. |
DeskUp::Status indicating success or failure. @errors
|
noexcept |
Loads a window description from a saved workspace file.
| _this | The same device instance. |
| path | Path to the saved window description file. |
windowDesc with geometry and executable path. @errors
|
noexcept |
Resizes a window according to the windowDesc parameter geometry.
Information about the window whose geometry is intended to modify must be specified inside the _this->internalData parameter.
| _this | The same device instance. |
| window | a windowDesc instance whose geometry will be applied to resize the window. |
DeskUp::Status indicating success or failure. @errors| void WIN_TEST_setHWND | ( | DeskUpWindowDevice * | _this, |
| HWND | hwnd ) |
Test-only helper to set the internal HWND for the device.
| _this | The device instance. |
| hwnd | The HWND to assign. |
|
extern |
Windows backend bootstrap descriptor.
This global is used by DU_Init to determine whether Windows is available on the device and to create the corresponding DeskUpWindowDevice. After creation, all calls should go through the device instance (e.g., via current_window_device in window_core.h or equivalent).