summaryrefslogtreecommitdiff
path: root/src/helpers/SubsurfaceTree.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-12-16 17:17:31 +0000
committerGitHub <noreply@github.com>2022-12-16 17:17:31 +0000
commit98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch)
tree64e78342cf08e5f9ad87bd5f6ea36233133be7bb /src/helpers/SubsurfaceTree.hpp
parent7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff)
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to 'src/helpers/SubsurfaceTree.hpp')
-rw-r--r--src/helpers/SubsurfaceTree.hpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/helpers/SubsurfaceTree.hpp b/src/helpers/SubsurfaceTree.hpp
index 52f54f16..c5d3934f 100644
--- a/src/helpers/SubsurfaceTree.hpp
+++ b/src/helpers/SubsurfaceTree.hpp
@@ -6,49 +6,49 @@
struct SSubsurface;
class CWindow;
-typedef void (*applyGlobalOffsetFn)(void *, int *, int *);
+typedef void (*applyGlobalOffsetFn)(void*, int*, int*);
struct SSurfaceTreeNode {
- wlr_surface* pSurface = nullptr;
+ wlr_surface* pSurface = nullptr;
DYNLISTENER(newSubsurface);
DYNLISTENER(commit);
DYNLISTENER(destroy);
- SSurfaceTreeNode* pParent = nullptr;
- SSubsurface* pSubsurface = nullptr;
+ SSurfaceTreeNode* pParent = nullptr;
+ SSubsurface* pSubsurface = nullptr;
std::list<SSubsurface> childSubsurfaces;
- applyGlobalOffsetFn offsetfn;
- void *globalOffsetData;
- CWindow* pWindowOwner = nullptr;
+ applyGlobalOffsetFn offsetfn;
+ void* globalOffsetData;
+ CWindow* pWindowOwner = nullptr;
- bool operator==(const SSurfaceTreeNode& rhs) {
+ bool operator==(const SSurfaceTreeNode& rhs) {
return pSurface == rhs.pSurface;
}
};
struct SSubsurface {
- wlr_subsurface* pSubsurface = nullptr;
+ wlr_subsurface* pSubsurface = nullptr;
- SSurfaceTreeNode* pParent = nullptr;
- SSurfaceTreeNode* pChild = nullptr;
+ SSurfaceTreeNode* pParent = nullptr;
+ SSurfaceTreeNode* pChild = nullptr;
DYNLISTENER(map);
DYNLISTENER(unmap);
DYNLISTENER(destroy);
- CWindow* pWindowOwner = nullptr;
+ CWindow* pWindowOwner = nullptr;
- bool operator==(const SSubsurface& rhs) {
+ bool operator==(const SSubsurface& rhs) {
return pSubsurface == rhs.pSubsurface;
}
};
namespace SubsurfaceTree {
- SSurfaceTreeNode* createTreeRoot(wlr_surface*, applyGlobalOffsetFn, void*, CWindow* pWindow = nullptr);
- void destroySurfaceTree(SSurfaceTreeNode*);
+ SSurfaceTreeNode* createTreeRoot(wlr_surface*, applyGlobalOffsetFn, void*, CWindow* pWindow = nullptr);
+ void destroySurfaceTree(SSurfaceTreeNode*);
inline std::list<SSurfaceTreeNode> surfaceTreeNodes;
};