2
* Copyright (C) 2013 Jolla Ltd.
3
* Contact: John Brooks <john.brooks@jollamobile.com>
5
* You may use this file under the terms of the BSD license as follows:
7
* "Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions are
10
* * Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in
14
* the documentation and/or other materials provided with the
16
* * Neither the name of Nemo Mobile nor the names of its contributors
17
* may be used to endorse or promote products derived from this
18
* software without specific prior written permission.
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
33
#ifndef DECLARATIVEWINDOWATTRIBUTES_H
34
#define DECLARATIVEWINDOWATTRIBUTES_H
36
#include <QDeclarativeItem>
39
\qmlclass WindowAttributes DeclarativeWindowAttributes
40
\brief Control windowsystem/compositor specific attributes
42
WindowAttributes provides control over attributes specific to the
43
compositor or windowing system. Properties may not have any effect
47
class DeclarativeWindowAttributes : public QDeclarativeItem
50
Q_ENUMS(StackingLayer)
53
DeclarativeWindowAttributes(QDeclarativeItem *parent = 0);
62
\qmlproperty int stackingLayer
64
Set the stacking layer of the window to place it above or below other
67
Q_PROPERTY(int stackingLayer READ stackingLayer WRITE setStackingLayer NOTIFY stackingLayerChanged)
68
int stackingLayer() const { return m_stackingLayer; }
69
void setStackingLayer(int layer);
72
\qmlproperty bool cannotMinimize
74
Prevent the window from being minimized by gestures
76
Q_PROPERTY(bool cannotMinimize READ cannotMinimize WRITE setCannotMinimize NOTIFY cannotMinimizeChanged)
77
bool cannotMinimize() const { return m_cannotMinimize; }
78
void setCannotMinimize(bool on);
81
void stackingLayerChanged();
82
void cannotMinimizeChanged();
85
bool updateX11(bool delayed = true);
89
bool m_cannotMinimize;