• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KWayland
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KWayland"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Modules
  • Dependencies
  • Related Pages

Class Picker

About

Qt-style API to interact with the wayland-client and wayland-server API

Maintainer
Martin Flöser
Supported platforms
FreeBSD, Linux
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Use with CMake
find_package(KF5Wayland)
target_link_libraries(yourapp KF5::WaylandClient KF5::WaylandServer)
Use with QMake
QT += KWaylandClient KWaylandServer 
Clone
git clone git://anongit.kde.org/kwayland.git
Browse source
KWayland on cgit.kde.org

KWayland

  • frameworks
  • frameworks
  • kwayland
  • src
  • client
fullscreen_shell.h
1 /********************************************************************
2 Copyright 2014 Martin Gräßlin <[email protected]>
3 
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) version 3, or any
8 later version accepted by the membership of KDE e.V. (or its
9 successor approved by the membership of KDE e.V.), which shall
10 act as a proxy defined in Section 6 of version 3 of the license.
11 
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16 
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 *********************************************************************/
20 #ifndef WAYLAND_FULLSCREEN_SHELL_H
21 #define WAYLAND_FULLSCREEN_SHELL_H
22 
23 #include <QObject>
24 
25 #include <KWayland/Client/kwaylandclient_export.h>
26 
27 struct _wl_fullscreen_shell;
28 struct wl_output;
29 struct wl_surface;
30 
31 namespace KWayland
32 {
33 namespace Client
34 {
35 
36 class EventQueue;
37 class Surface;
38 class Output;
39 
63 class KWAYLANDCLIENT_EXPORT FullscreenShell : public QObject
64 {
65  Q_OBJECT
66  Q_PROPERTY(bool capabilityArbitraryModes READ hasCapabilityArbitraryModes NOTIFY capabilityArbitraryModesChanged)
67  Q_PROPERTY(bool capabilityCursorPlane READ hasCapabilityCursorPlane NOTIFY capabilityCursorPlaneChanged)
68 public:
69  explicit FullscreenShell(QObject *parent = nullptr);
70  virtual ~FullscreenShell();
71 
72  bool isValid() const;
73  void release();
74  void destroy();
75  bool hasCapabilityArbitraryModes() const;
76  bool hasCapabilityCursorPlane() const;
77  void setup(_wl_fullscreen_shell *shell);
78  void present(wl_surface *surface, wl_output *output);
79  void present(Surface *surface, Output *output);
80 
84  void setEventQueue(EventQueue *queue);
88  EventQueue *eventQueue() const;
89 
90 Q_SIGNALS:
91  void capabilityArbitraryModesChanged(bool);
92  void capabilityCursorPlaneChanged(bool);
93 
102  void removed();
103 
104 private:
105  class Private;
106  QScopedPointer<Private> d;
107 };
108 
109 }
110 }
111 
112 #endif
KWayland::Client::FullscreenShell
Wrapper for the _wl_fullscreen_shell interface.
Definition: fullscreen_shell.h:63
KWayland::Client::EventQueue
Wrapper class for wl_event_queue interface.
Definition: event_queue.h:69
KWayland::Client::Output
Wrapper for the wl_output interface.
Definition: output.h:69
KWayland::Client::Surface
Wrapper for the wl_surface interface.
Definition: surface.h:58
QObject
QScopedPointer< Private >
KWayland
Definition: appmenu.cpp:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 13 2019 02:13:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal