KParts

windowargs.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 1999 Simon Hausmann <[email protected]>
4  SPDX-FileCopyrightText: 1999 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef __kparts_windowargs_h__
10 #define __kparts_windowargs_h__
11 
12 #include <kparts/kparts_export.h>
13 
14 #include <QSharedDataPointer>
15 
16 class QRect;
17 
18 
19 namespace KParts
20 {
21 
22 class WindowArgsPrivate;
23 
31 class KPARTS_EXPORT WindowArgs
32 {
33 public:
34  WindowArgs();
35  ~WindowArgs();
36  WindowArgs(const WindowArgs &args);
37  WindowArgs &operator=(const WindowArgs &args);
38  WindowArgs(const QRect &_geometry, bool _fullscreen, bool _menuBarVisible,
39  bool _toolBarsVisible, bool _statusBarVisible, bool _resizable);
40  WindowArgs(int _x, int _y, int _width, int _height, bool _fullscreen,
41  bool _menuBarVisible, bool _toolBarsVisible,
42  bool _statusBarVisible, bool _resizable);
43 
44  void setX(int x);
45  int x() const;
46 
47  void setY(int y);
48  int y() const;
49 
50  void setWidth(int w);
51  int width() const;
52 
53  void setHeight(int h);
54  int height() const;
55 
56  void setFullScreen(bool fs);
57  bool isFullScreen() const;
58 
59  void setMenuBarVisible(bool visible);
60  bool isMenuBarVisible() const;
61 
62  void setToolBarsVisible(bool visible);
63  bool toolBarsVisible() const;
64 
65  void setStatusBarVisible(bool visible);
66  bool isStatusBarVisible() const;
67 
68  void setResizable(bool resizable);
69  bool isResizable() const;
70 
71  void setLowerWindow(bool lower);
72  bool lowerWindow() const;
73 
74  void setScrollBarsVisible(bool visible);
75  bool scrollBarsVisible() const;
76 
77 private:
79 };
80 
81 }
82 
83 #endif
The KParts namespace,.
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition: windowargs.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Sep 21 2020 22:55:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.