Blender  V2.93
GHOST_WindowManager.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
25 #pragma once
26 
27 #include <vector>
28 
29 #include "GHOST_IWindow.h"
30 #include "GHOST_Rect.h"
31 
36  public:
41 
46 
54 
61 
67  bool getWindowFound(const GHOST_IWindow *window) const;
68 
73  bool getFullScreen(void) const;
74 
80 
86  GHOST_TSuccess beginFullScreen(GHOST_IWindow *window, const bool stereoVisual);
87 
93 
100 
106  GHOST_IWindow *getActiveWindow(void) const;
107 
112  void setWindowInactive(const GHOST_IWindow *window);
113 
119  const std::vector<GHOST_IWindow *> &getWindows() const;
120 
127 
132  bool getAnyModifiedState();
133 
134  protected:
136  std::vector<GHOST_IWindow *> m_windows;
137 
140 
143 
146 
147 #ifdef WITH_CXX_GUARDEDALLOC
148  MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_WindowManager")
149 #endif
150 };
GHOST_TSuccess
Definition: GHOST_Types.h:91
GHOST_TSuccess addWindow(GHOST_IWindow *window)
GHOST_TSuccess endFullScreen(void)
bool getFullScreen(void) const
std::vector< GHOST_IWindow * > m_windows
GHOST_TSuccess removeWindow(const GHOST_IWindow *window)
GHOST_IWindow * getActiveWindow(void) const
GHOST_IWindow * m_activeWindowBeforeFullScreen
GHOST_IWindow * getWindowAssociatedWithOSWindow(void *osWindow)
const std::vector< GHOST_IWindow * > & getWindows() const
GHOST_IWindow * m_activeWindow
GHOST_TSuccess beginFullScreen(GHOST_IWindow *window, const bool stereoVisual)
GHOST_TSuccess setActiveWindow(GHOST_IWindow *window)
GHOST_IWindow * m_fullScreenWindow
bool getWindowFound(const GHOST_IWindow *window) const
GHOST_IWindow * getFullScreenWindow(void) const
void setWindowInactive(const GHOST_IWindow *window)