![]() |
DeskUp 0.3
|
Declares basic code to interact with Desk Up. More...

Go to the source code of this file.
Functions | |
| int | DU_Init () |
| Initializes the DeskUp backend system. | |
| void | DU_Destroy () |
| Destroys and cleans up the DeskUp backend resources. | |
Variables | |
| std::string | DESKUPDIR |
| | |
| std::unique_ptr< DeskUpWindowDevice > | current_window_backend |
| | |
Declares basic code to interact with Desk Up.
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/.
| void DU_Destroy | ( | ) |
Destroys and cleans up the DeskUp backend resources.
Releases the backend device and clears global state. Should be called when DeskUp is no longer needed to free resources. After calling this function, DU_Init() must be called again before using any DeskUp functionality.
| int DU_Init | ( | ) |
Initializes the DeskUp backend system.
This function must be called once before using any DeskUp backend feature. It iterates through the available backends (currently only the Windows backend) and:
Once initialization completes successfully:
|
extern |
A unique pointer to the selected backend device for DeskUp.
This global pointer gets assigned when calling DU_Init(), so using it without initializing DeskUp will cause undefined behaviour. It provides access to backend-specific functions such as window enumeration, size, and position.
|
extern |
The path to the DeskUp saved workspace.
This global variable gets assigned when calling DU_Init(), so using it without initializing DeskUp will cause undefined behaviour. In the process, it calls the device's getDeskUpPath() function, which is resolved to the specific backend implementation (e.g. WIN_getDeskUpPath on Windows).