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 namespace KParts
19 {
20 class WindowArgsPrivate;
21 
22 /**
23  * @class WindowArgs windowargs.h <KParts/WindowArgs>
24  *
25  * @short The WindowArgs are used to specify arguments to the "create new window"
26  * call (see the createNewWindow variant that uses WindowArgs).
27  * The primary reason for this is the javascript window.open function.
28  */
29 class KPARTS_EXPORT WindowArgs
30 {
31 public:
32  WindowArgs();
33  ~WindowArgs();
34  WindowArgs(const WindowArgs &args);
35  WindowArgs &operator=(const WindowArgs &args);
36  WindowArgs(const QRect &_geometry, bool _fullscreen, bool _menuBarVisible, bool _toolBarsVisible, bool _statusBarVisible, bool _resizable);
37  WindowArgs(int _x, int _y, int _width, int _height, bool _fullscreen, bool _menuBarVisible, bool _toolBarsVisible, bool _statusBarVisible, bool _resizable);
38 
39  void setX(int x);
40  int x() const;
41 
42  void setY(int y);
43  int y() const;
44 
45  void setWidth(int w);
46  int width() const;
47 
48  void setHeight(int h);
49  int height() const;
50 
51  void setFullScreen(bool fs);
52  bool isFullScreen() const;
53 
54  void setMenuBarVisible(bool visible);
55  bool isMenuBarVisible() const;
56 
57  void setToolBarsVisible(bool visible);
58  bool toolBarsVisible() const;
59 
60  void setStatusBarVisible(bool visible);
61  bool isStatusBarVisible() const;
62 
63  void setResizable(bool resizable);
64  bool isResizable() const;
65 
66  void setLowerWindow(bool lower);
67  bool lowerWindow() const;
68 
69  void setScrollBarsVisible(bool visible);
70  bool scrollBarsVisible() const;
71 
72 private:
74 };
75 
76 }
77 
78 #endif
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition: windowargs.h:29
The KParts namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:51:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.