#include <x11_window.h>
Inheritance diagram for mimas::x11_window:
Public Member Functions | |
x11_window (x11_display *_display, int _width, int _height, bool depthBuffer=false) | |
virtual | ~x11_window (void) |
int | get_width (void) const |
int | get_height (void) const |
void | set_title (const char *_title) |
XVisualInfo * | get_visual_info (void) const |
x11_display * | get_display (void) |
Window | get_window (void) |
void | resize (int _width, int _height) throw (mimasexception) |
Resize the window. | |
void | repaint (void) |
Protected Member Functions | |
virtual void | handle_event (XEvent &event) throw (mimasexception) |
Handle X11 events. | |
virtual void | paint_event (void)=0 throw (mimasexception) |
virtual void | key_event (XKeyEvent &xkey) throw (mimasexception) |
Static Protected Member Functions | |
static Bool | waitForNotify (Display *, XEvent *e, char *arg) |
Protected Attributes | |
x11_display * | display |
XVisualInfo * | visualInfo |
Colormap | colorMap |
Colormap of X11-visual. | |
Window | window |
X11 window. | |
int | width |
int | height |
Friends | |
class | x11_display |
Definition at line 24 of file x11_window.h.
mimas::x11_window::x11_window | ( | x11_display * | _display, | |
int | _width, | |||
int | _height, | |||
bool | depthBuffer = false | |||
) |
virtual mimas::x11_window::~x11_window | ( | void | ) | [virtual] |
int mimas::x11_window::get_width | ( | void | ) | const [inline] |
int mimas::x11_window::get_height | ( | void | ) | const [inline] |
void mimas::x11_window::set_title | ( | const char * | _title | ) |
XVisualInfo* mimas::x11_window::get_visual_info | ( | void | ) | const [inline] |
x11_display* mimas::x11_window::get_display | ( | void | ) | [inline] |
Window mimas::x11_window::get_window | ( | void | ) | [inline] |
void mimas::x11_window::resize | ( | int | _width, | |
int | _height | |||
) | throw (mimasexception) |
Resize the window.
void mimas::x11_window::repaint | ( | void | ) |
virtual void mimas::x11_window::handle_event | ( | XEvent & | event | ) | throw (mimasexception) [protected, virtual] |
Handle X11 events.
The default-implementation just filters for exposure events and forwards them to paintEvent
.
virtual void mimas::x11_window::paint_event | ( | void | ) | throw (mimasexception) [protected, pure virtual] |
Implemented in mimas::image_mesaoutput< T >::image_window.
virtual void mimas::x11_window::key_event | ( | XKeyEvent & | xkey | ) | throw (mimasexception) [protected, virtual] |
static Bool mimas::x11_window::waitForNotify | ( | Display * | , | |
XEvent * | e, | |||
char * | arg | |||
) | [static, protected] |
friend class x11_display [friend] |
Definition at line 26 of file x11_window.h.
x11_display* mimas::x11_window::display [protected] |
XVisualInfo* mimas::x11_window::visualInfo [protected] |
Colormap mimas::x11_window::colorMap [protected] |
Window mimas::x11_window::window [protected] |
int mimas::x11_window::width [protected] |
int mimas::x11_window::height [protected] |