|
| | session (std::ostream &a_out, unsigned int a_monitor=0) |
| |
| virtual | ~session () |
| |
| GLXContext | context () const |
| |
| Window | create_window (const char *a_title, int a_x, int a_y, unsigned int a_width, unsigned int a_height) |
| |
| | base_session (std::ostream &a_out, unsigned int a_monitor=0) |
| |
| virtual | ~base_session () |
| |
| std::ostream & | out () const |
| |
| Atom | WM_DELETE_WINDOW_atom () const |
| |
| Atom | SESSION_EXIT_STEER_atom () const |
| |
| bool | is_valid () const |
| |
| Display * | display () const |
| |
| bool | steer () |
| |
| bool | sync () |
| |
| bool | event_pending (bool &a_is) |
| |
| bool | next_event (bool &a_to_exit) |
| |
| bool | flush () |
| |
| Window | create_window (const char *a_title, int a_x, int a_y, unsigned int a_width, unsigned int a_height) |
| |
| void | map_raise_window (Window a_window) const |
| |
| void | show_window (Window a_window) const |
| |
| void | hide_window (Window a_window) const |
| |
| void | resize_window (Window a_window, unsigned int a_width, unsigned int a_height) const |
| |
| bool | window_size (Window a_window, int &a_width, int &a_height) const |
| |
| void | delete_window (Window a_window) const |
| |
| void | set_override_redirect (Window a_window) const |
| |
| void | set_wm_no_decorations (Window a_window) const |
| |
| bool | post (Window a_win, long a_0=0, long a_1=0, long a_2=0, long a_3=0, long a_4=0) const |
| |
| bool | post_EXIT_STEER (Window a_win) |
| |
| void | add_dispatcher (dispatcher *a_dispatcher) |
| |
| void | invalidate_dispatchers_with_window (Window a_win) |
| |
| void | remove_dispatchers_with_window (Window a_win) |
| |
| bool | dispatch (XEvent &a_event) |
| |
Definition at line 14 of file session.
◆ session() [1/2]
| tools::X11::session::session |
( |
std::ostream & |
a_out, |
|
|
unsigned int |
a_monitor = 0 |
|
) |
| |
|
inline |
Definition at line 31 of file session.
32 :parent(a_out,a_monitor)
39 {
int glxMajor, glxMinor;
40 ::glXQueryVersion(
m_display,&glxMajor,&glxMinor);
42 m_out <<
"tools::X11::session::session : bad GLX-Version " << glxMajor <<
"." << glxMinor << std::endl;
50 static const int atbs_alpha[] = {
70 static const int atbs[] = {
81 m_out <<
"tools::X11::session::session :"
82 <<
" can't choose a visual on screen " <<
m_monitor <<
"."
94 m_out <<
"tools::X11::session::session :"
95 <<
" can't create a glX context with direct rendering."
99 m_out <<
"tools::X11::session::session :"
100 <<
" can't create a glX context."
118 m_out <<
"tools::X11::session::session : XCreateColormap failed." << std::endl;
◆ ~session()
| virtual tools::X11::session::~session |
( |
| ) |
|
|
inlinevirtual |
◆ session() [2/2]
| tools::X11::session::session |
( |
const session & |
a_from | ) |
|
|
inlineprotected |
◆ context()
| GLXContext tools::X11::session::context |
( |
| ) |
const |
|
inline |
◆ create_window()
| Window tools::X11::session::create_window |
( |
const char * |
a_title, |
|
|
int |
a_x, |
|
|
int |
a_y, |
|
|
unsigned int |
a_width, |
|
|
unsigned int |
a_height |
|
) |
| |
|
inline |
Definition at line 160 of file session.
163 XSetWindowAttributes swa;
164 swa.event_mask = StructureNotifyMask | ExposureMask
165 | ButtonPressMask | ButtonReleaseMask | ButtonMotionMask
170 swa.border_pixel = 0L;
172 Window window = ::XCreateWindow(
m_display,
174 a_x,a_y,a_width,a_height,
179 CWBorderPixel|CWColormap|CWEventMask,&swa);
182 m_out <<
"tools::X11::session::create_window :"
183 <<
" can't create a X11 window."
189 ::XStringListToTextProperty((
char**)&a_title,1,&tp);
191 sh.flags = USPosition | USSize;
192 ::XSetWMProperties(
m_display,window,&tp,&tp,0,0,&sh,0,0);
◆ operator=()
Definition at line 152 of file session.
153 if(&a_from==
this)
return *
this;
◆ m_colormap
| Colormap tools::X11::session::m_colormap |
|
protected |
◆ m_ctx
| GLXContext tools::X11::session::m_ctx |
|
protected |
◆ m_vinfo
| XVisualInfo* tools::X11::session::m_vinfo |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/X11/session