DeskUp 0.3
Loading...
Searching...
No Matches
desk_up_win.h
Go to the documentation of this file.
1
27
28#ifndef DESKUPWIN_H
29#define DESKUPWIN_H
30
31#include <stdexcept>
32#include <vector>
33#include <filesystem>
34
35#include <stdlib.h>
36#include <Windows.h>
37
40#include "window_desc.h"
41#include "desk_up_error.h"
42
43namespace fs = std::filesystem;
44
59extern DeskUpWindowBootStrap winWindowDevice;
60
67bool WIN_isAvailable() noexcept;
68
79DeskUpWindowDevice WIN_CreateDevice() noexcept;
80
88void WIN_destroyDevice(DeskUpWindowDevice* _this) noexcept;
89
102DeskUp::Result<std::string> WIN_getDeskUpPath() noexcept;
103
116DeskUp::Result<int> WIN_getWindowXPos(DeskUpWindowDevice * _this) noexcept;
117
130DeskUp::Result<int> WIN_getWindowYPos(DeskUpWindowDevice * _this) noexcept;
131
144DeskUp::Result<unsigned int> WIN_getWindowWidth(DeskUpWindowDevice * _this) noexcept;
145
158DeskUp::Result<unsigned int> WIN_getWindowHeight(DeskUpWindowDevice * _this) noexcept;
159
181DeskUp::Result<fs::path> WIN_getPathFromWindow(DeskUpWindowDevice * _this) noexcept;
182
201DeskUp::Result<std::vector<windowDesc>> WIN_getAllOpenWindows(DeskUpWindowDevice * _this) noexcept;
202
215DeskUp::Result<windowDesc> WIN_recoverSavedWindow(DeskUpWindowDevice * _this, const fs::path& path) noexcept;
216
230DeskUp::Status WIN_loadProcessFromPath(DeskUpWindowDevice * _this, const fs::path& path) noexcept;
231
248DeskUp::Status WIN_resizeWindow(DeskUpWindowDevice * _this, const windowDesc window) noexcept;
249
263DeskUp::Result<unsigned int> WIN_closeProcessFromPath(DeskUpWindowDevice*, const fs::path& path, bool allowForce) noexcept;
264
271void WIN_TEST_setHWND(DeskUpWindowDevice* _this, HWND hwnd);
272
273#endif
Error management system for DeskUp (centralized error representation and conversion utilities).
bool WIN_isAvailable() noexcept
Returns whether the Windows backend is available.
Definition desk_up_win.cc:55
A struct wrapper used in the DeskUp backend.
The struct descriptor of a window backend.
This struct is a wrapper that holds a call to create a window device.
Definition desk_up_window_bootstrap.h:46
This abstract struct represents all the common calls that any backend must have.
Definition desk_up_window_device.h:55
Describes a single window instance in the DeskUp system.
Definition window_desc.h:60
Defines the abstract data structure used to represent a window in DeskUp.