Changeset View
Changeset View
Standalone View
Standalone View
deleted.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
42 | Q_PROPERTY(bool fullScreen READ isFullScreen CONSTANT) | 42 | Q_PROPERTY(bool fullScreen READ isFullScreen CONSTANT) | ||
43 | Q_PROPERTY(bool isCurrentTab READ isCurrentTab) | 43 | Q_PROPERTY(bool isCurrentTab READ isCurrentTab) | ||
44 | public: | 44 | public: | ||
45 | static Deleted* create(Toplevel* c); | 45 | static Deleted* create(Toplevel* c); | ||
46 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | 46 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | ||
47 | void refWindow(); | 47 | void refWindow(); | ||
48 | void unrefWindow(); | 48 | void unrefWindow(); | ||
49 | void discard(); | 49 | void discard(); | ||
50 | virtual int desktop() const; | 50 | int desktop() const override; | ||
51 | virtual QStringList activities() const; | 51 | QStringList activities() const override; | ||
52 | virtual QPoint clientPos() const; | 52 | QPoint clientPos() const override; | ||
53 | virtual QSize clientSize() const; | 53 | QSize clientSize() const override; | ||
54 | QPoint clientContentPos() const override { | 54 | QPoint clientContentPos() const override { | ||
55 | return m_contentPos; | 55 | return m_contentPos; | ||
56 | } | 56 | } | ||
57 | virtual QRect transparentRect() const; | 57 | QRect transparentRect() const override; | ||
58 | virtual bool isDeleted() const; | 58 | bool isDeleted() const override; | ||
59 | virtual xcb_window_t frameId() const override; | 59 | xcb_window_t frameId() const override; | ||
60 | bool noBorder() const { | 60 | bool noBorder() const { | ||
61 | return no_border; | 61 | return no_border; | ||
62 | } | 62 | } | ||
63 | void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const; | 63 | void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const; | ||
64 | QRect decorationRect() const; | 64 | QRect decorationRect() const override; | ||
65 | virtual Layer layer() const { | 65 | Layer layer() const override { | ||
66 | return m_layer; | 66 | return m_layer; | ||
67 | } | 67 | } | ||
68 | bool isMinimized() const { | 68 | bool isMinimized() const { | ||
69 | return m_minimized; | 69 | return m_minimized; | ||
70 | } | 70 | } | ||
71 | bool isModal() const { | 71 | bool isModal() const { | ||
72 | return m_modal; | 72 | return m_modal; | ||
73 | } | 73 | } | ||
74 | QList<AbstractClient*> mainClients() const { | 74 | QList<AbstractClient*> mainClients() const { | ||
75 | return m_mainClients; | 75 | return m_mainClients; | ||
76 | } | 76 | } | ||
77 | NET::WindowType windowType(bool direct = false, int supported_types = 0) const; | 77 | NET::WindowType windowType(bool direct = false, int supported_types = 0) const override; | ||
78 | bool wasClient() const { | 78 | bool wasClient() const { | ||
79 | return m_wasClient; | 79 | return m_wasClient; | ||
80 | } | 80 | } | ||
81 | double opacity() const override; | 81 | double opacity() const override; | ||
82 | QByteArray windowRole() const override; | 82 | QByteArray windowRole() const override; | ||
83 | 83 | | |||
84 | const Decoration::Renderer *decorationRenderer() const { | 84 | const Decoration::Renderer *decorationRenderer() const { | ||
85 | return m_decorationRenderer; | 85 | return m_decorationRenderer; | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | bool isFullScreen() const { | 88 | bool isFullScreen() const { | ||
89 | return m_fullscreen; | 89 | return m_fullscreen; | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | bool isCurrentTab() const { | 92 | bool isCurrentTab() const { | ||
93 | return m_wasCurrentTab; | 93 | return m_wasCurrentTab; | ||
94 | } | 94 | } | ||
95 | protected: | 95 | protected: | ||
96 | virtual void debug(QDebug& stream) const; | 96 | void debug(QDebug& stream) const override; | ||
97 | private Q_SLOTS: | 97 | private Q_SLOTS: | ||
98 | void mainClientClosed(KWin::Toplevel *client); | 98 | void mainClientClosed(KWin::Toplevel *client); | ||
99 | private: | 99 | private: | ||
100 | Deleted(); // use create() | 100 | Deleted(); // use create() | ||
101 | void copyToDeleted(Toplevel* c); | 101 | void copyToDeleted(Toplevel* c); | ||
102 | virtual ~Deleted(); // deleted only using unrefWindow() | 102 | ~Deleted() override; // deleted only using unrefWindow() | ||
103 | int delete_refcount; | 103 | int delete_refcount; | ||
104 | double window_opacity; | 104 | double window_opacity; | ||
105 | int desk; | 105 | int desk; | ||
106 | QStringList activityList; | 106 | QStringList activityList; | ||
107 | QRect contentsRect; // for clientPos()/clientSize() | 107 | QRect contentsRect; // for clientPos()/clientSize() | ||
108 | QPoint m_contentPos; | 108 | QPoint m_contentPos; | ||
109 | QRect transparent_rect; | 109 | QRect transparent_rect; | ||
110 | xcb_window_t m_frame; | 110 | xcb_window_t m_frame; | ||
Show All 29 Lines |