KWin
Loading...
Searching...
No Matches
x11_standalone_non_composited_outline.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2011 Arthur Arlt <a.arlt@stud.uni-heidelberg.de>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10#include "outline.h"
11#include "utils/xcbutils.h"
12
13namespace KWin
14{
15
17{
18public:
21 void show() override;
22 void hide() override;
23
24private:
25 // TODO: variadic template arguments for adding method arguments
26 template<typename T>
27 void forEachWindow(T method);
28 bool m_initialized;
29 Xcb::Window m_topOutline;
30 Xcb::Window m_rightOutline;
31 Xcb::Window m_bottomOutline;
32 Xcb::Window m_leftOutline;
33};
34
35template<typename T>
36inline void NonCompositedOutlineVisual::forEachWindow(T method)
37{
38 (m_topOutline.*method)();
39 (m_rightOutline.*method)();
40 (m_bottomOutline.*method)();
41 (m_leftOutline.*method)();
42}
43
44}
This class is used to show the outline of a given geometry.
Definition outline.h:38