summaryrefslogtreecommitdiff
path: root/src/desktop/DesktopTypes.hpp
blob: b52f17cddc74a0521b756c70dbfb2950ec3f11b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "../helpers/memory/Memory.hpp"

class CWorkspace;
class CMonitor;

namespace Desktop::View {
    class CWindow;
    class CLayerSurface;
}

/* Shared pointer to a workspace */
using PHLWORKSPACE = SP<CWorkspace>;
/* Weak pointer to a workspace */
using PHLWORKSPACEREF = WP<CWorkspace>;

/* Shared pointer to a window */
using PHLWINDOW = SP<Desktop::View::CWindow>;
/* Weak pointer to a window */
using PHLWINDOWREF = WP<Desktop::View::CWindow>;

/* Shared pointer to a layer surface */
using PHLLS = SP<Desktop::View::CLayerSurface>;
/* Weak pointer to a layer surface */
using PHLLSREF = WP<Desktop::View::CLayerSurface>;

/* Shared pointer to a monitor */
using PHLMONITOR = SP<CMonitor>;
/* Weak pointer to a monitor */
using PHLMONITORREF = WP<CMonitor>;