aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers/Workspace.hpp
blob: 6347a63b1100398670999275fc3ad4c3e284c2b1 (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
#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;
    CAnimatedVariable m_fAlpha;

    void            startAnim(bool in, bool left);
    void            setActive(bool on);
};