File: liboxygen.h

package info (click to toggle)
oxygen 4%3A6.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 26,896 kB
  • sloc: cpp: 23,036; python: 39; sh: 14; makefile: 5
file content (35 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
#ifndef liboxygen_h
#define liboxygen_h
/*
    SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
    SPDX-License-Identifier: GPL-2.0-or-later
 */

#include <QFlags>
#include <QWeakPointer>

namespace Oxygen
{
//* scoped pointer convenience typedef
template<typename T>
using WeakPointer = QPointer<T>;

//* corners
enum Corner {
    CornerTopLeft = 0x1,
    CornerTopRight = 0x2,
    CornerBottomLeft = 0x4,
    CornerBottomRight = 0x8,
    CornersTop = CornerTopLeft | CornerTopRight,
    CornersBottom = CornerBottomLeft | CornerBottomRight,
    CornersLeft = CornerTopLeft | CornerBottomLeft,
    CornersRight = CornerTopRight | CornerBottomRight,
    AllCorners = CornerTopLeft | CornerTopRight | CornerBottomLeft | CornerBottomRight
};

Q_DECLARE_FLAGS(Corners, Corner)
}

Q_DECLARE_OPERATORS_FOR_FLAGS(Oxygen::Corners);

#endif