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 
30  Window openWindow(int w, int h, const std::string& windowTitle="Imagine++",
31  int x = -1, int y = -1);
32 
44  Window openWindow3D(int w, int h,
45  const std::string& windowTitle="Imagine++",
46  int x=-1, int y=-1);
47 
63  Window openComplexWindow(int w, int h, const std::string& name="Imagine++",
64  int tabsNb=1,
65  const std::string* tabsNames=0,
66  const WindowType* tabsTypes=0,
67  int x = -1, int y = -1);
76  void closeWindow(Window w);
77 
87  void setActiveWindow(Window w, int subWin = 0);
94  void setBackGround(const Color &col);
103  void clearWindow();
113  void enableMouseTracking(bool en);
122  void showWindow(Window w, int subWin = 0);
123 
125 } /* namespace Imagine */
126 
127 #endif // WINDOWCONTROL_H
RGB< byte > Color
RGB<byte> alias.
Definition: Color.h:281
WindowType
Type of Window.
Definition: Types.h:42
void setActiveWindow(Window w, int subWin=0)
Set active window.
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, controlling whether pointer motion triggers an event.
void clearWindow()
clearWindow.
void setBackGround(const Color &col)
Set ackground color of window.
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.