28#ifndef DESKUPWINDOWDEVICE_H
29#define DESKUPWINDOWDEVICE_H
38namespace fs = std::filesystem;
Error management system for DeskUp (centralized error representation and conversion utilities).
std::expected< T, DeskUp::Error > Result
Alias for an operation result that either holds a value or a DeskUp error.
Definition desk_up_error.h:264
std::expected< void, DeskUp::Error > Status
Alias for an operation that returns success or failure (void on success).
Definition desk_up_error.h:273
This abstract struct represents all the common calls that any backend must have.
Definition desk_up_window_device.h:55
DeskUp::Result< unsigned int >(* getWindowHeight)(DeskUpWindowDevice *_this)
A pointer to function that is used to get the height of a window.
Definition desk_up_window_device.h:65
void(* DestroyDevice)(DeskUpWindowDevice *_this)
A pointer to function that is used to delete the device.
Definition desk_up_window_device.h:201
DeskUp::Result< int >(* getWindowXPos)(DeskUpWindowDevice *_this)
A pointer to function that is used to get the X position of a the top left corner of a window.
Definition desk_up_window_device.h:85
DeskUp::Status(* resizeWindow)(DeskUpWindowDevice *_this, const windowDesc window)
A pointer to function that is used to resize a given window.
Definition desk_up_window_device.h:165
DeskUp::Result< windowDesc >(* recoverSavedWindow)(DeskUpWindowDevice *_this, const fs::path &filePath)
A pointer to function that is used to recover a window from a deskUp file, which shall be located ins...
Definition desk_up_window_device.h:151
DeskUp::Result< fs::path >(* getPathFromWindow)(DeskUpWindowDevice *_this)
A pointer to function that is used to get the path to the executable that created the window.
Definition desk_up_window_device.h:105
void * internalData
A pointer that points to the specific information needed by each backend.
Definition desk_up_window_device.h:191
DeskUp::Result< std::string >(* getDeskUpPath)(void)
A pointer to function that is used to get the generic DeskUp workspaces path.
Definition desk_up_window_device.h:117
DeskUp::Status(* loadWindowFromPath)(DeskUpWindowDevice *_this, const fs::path &path)
A pointer to function that is used to open a window from a given path.
Definition desk_up_window_device.h:139
DeskUp::Result< unsigned int >(* closeProcessFromPath)(DeskUpWindowDevice *_this, const fs::path &path, bool allowForce)
A pointer to function that is used to close all the windows associated with a given path.
Definition desk_up_window_device.h:177
DeskUp::Result< int >(* getWindowYPos)(DeskUpWindowDevice *_this)
A pointer to function that is used to get the Y position of a the top left corner of a window.
Definition desk_up_window_device.h:95
DeskUp::Result< unsigned int >(* getWindowWidth)(DeskUpWindowDevice *_this)
A pointer to function that is used to get the width of a window.
Definition desk_up_window_device.h:75
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.