Imagine++
Window.h
1 // ===========================================================================
2 // Imagine++ Libraries
3 // Copyright (C) Imagine
4 // For detailed information: http://imagine.enpc.fr/software
5 // ===========================================================================
6 
7 #ifndef WINDOWCONTROL_H
8 #define WINDOWCONTROL_H
9 
10 namespace Imagine {
13 
14  // Basic window control
15 
28  Window openWindow(int w, int h, const std::string& windowTitle="Imagine++",
29  int x = -1, int y = -1);
30 
42  Window openWindow3D(int w, int h,
43  const std::string& windowTitle="Imagine++",
44  int x=-1, int y=-1);
45 
61  Window openComplexWindow(int w, int h, const std::string& name="Imagine++",
62  int tabsNb=1,
63  const std::string* tabsNames=0,
64  const WindowType* tabsTypes=0,
65  int x = -1, int y = -1);
73  void closeWindow(Window w);
74 
84  void setActiveWindow(Window w, int subWin = 0);
91  void setBackGround(const Color &col);
100  void clearWindow();
110  void enableMouseTracking(bool en);
119  void showWindow(Window w, int subWin = 0);
120 
122 } /* namespace Imagine */
123 
124 #endif // WINDOWCONTROL_H
RGB< byte > Color
RGB alias.
Definition: Color.h:281
WindowType
Type of Window.
Definition: Types.h:42
void setActiveWindow(Window w, int subWin=0)
Set Active.
WindowInternal * Window
Handle to a display window.
Definition: Types.h:48
Window openComplexWindow(int w, int h, const std::string &name="Imagine++", int tabsNb=1, const std::string *tabsNames=0, const WindowType *tabsTypes=0, int x=-1, int y=-1)
New complex window.
void showWindow(Window w, int subWin=0)
Show Window.
void enableMouseTracking(bool en)
Mouse tracking.
void clearWindow()
clearWindow.
void setBackGround(const Color &col)
Set BackGround.
Window openWindow(int w, int h, const std::string &windowTitle="Imagine++", int x=-1, int y=-1)
New window for 2D graphics.
Imagine++ namespace.
Definition: Array.h:7
Window openWindow3D(int w, int h, const std::string &windowTitle="Imagine++", int x=-1, int y=-1)
New window for 3D graphics.
void closeWindow(Window w)
Close window.