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
10namespace 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);
77
87 void setActiveWindow(Window w, int subWin = 0);
94 void setBackGround(const Color &col);
113 void enableMouseTracking(bool en);
122 void showWindow(Window w, int subWin = 0);
123
125} /* namespace Imagine */
126
127#endif // WINDOWCONTROL_H
RED GREEN BLUE color.
Definition: Color.h:26
void closeWindow(Window w)
Close window.
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.
void setActiveWindow(Window w, int subWin=0)
Set active window.
void showWindow(Window w, int subWin=0)
Show window.
Window openWindow3D(int w, int h, const std::string &windowTitle="Imagine++", int x=-1, int y=-1)
New window for 3D graphics.
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.
WindowInternal * Window
Handle to a display window.
Definition: Types.h:48
void enableMouseTracking(bool en)
Mouse tracking, controlling whether pointer motion triggers an event.
void clearWindow()
clearWindow.
WindowType
Type of Window.
Definition: Types.h:42
Imagine++ namespace.