summaryrefslogtreecommitdiff
path: root/src/helpers/Workspace.hpp
blob: 3a9abf72020cec36071f6126664f9009c9f9a50a (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
#pragma once

#include "../defines.hpp"
#include "AnimatedVariable.hpp"

class CWorkspace {
public:
    CWorkspace(int monitorID);
    ~CWorkspace();

    // Workspaces ID-based have IDs > 0
    // and workspaces name-based have IDs starting with -1337
    int             m_iID = -1;
    std::string     m_szName = "";
    uint64_t        m_iMonitorID = -1;
    bool            m_bHasFullscreenWindow = false;

    wlr_ext_workspace_handle_v1* m_pWlrHandle = nullptr;

    wl_array        m_wlrCoordinateArr;

    // for animations
    CAnimatedVariable m_vRenderOffset;
};