mimas::x11_window Class Reference

Class for opening X11 windows. More...

#include <x11_window.h>

Inheritance diagram for mimas::x11_window:

Inheritance graph
[legend]
Collaboration diagram for mimas::x11_window:

Collaboration graph
[legend]
List of all members.

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_displayget_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_displaydisplay
XVisualInfo * visualInfo
Colormap colorMap
 Colormap of X11-visual.
Window window
 X11 window.
int width
int height

Friends

class x11_display

Detailed Description

Class for opening X11 windows.

Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Apr 29 23:10:01 UTC 2005

Definition at line 24 of file x11_window.h.


Constructor & Destructor Documentation

mimas::x11_window::x11_window ( x11_display _display,
int  _width,
int  _height,
bool  depthBuffer = false 
)

virtual mimas::x11_window::~x11_window ( void   )  [virtual]


Member Function Documentation

int mimas::x11_window::get_width ( void   )  const [inline]

Definition at line 34 of file x11_window.h.

References width.

int mimas::x11_window::get_height ( void   )  const [inline]

Definition at line 36 of file x11_window.h.

References height.

void mimas::x11_window::set_title ( const char *  _title  ) 

XVisualInfo* mimas::x11_window::get_visual_info ( void   )  const [inline]

Definition at line 40 of file x11_window.h.

References visualInfo.

x11_display* mimas::x11_window::get_display ( void   )  [inline]

Definition at line 42 of file x11_window.h.

References display.

Window mimas::x11_window::get_window ( void   )  [inline]

Definition at line 44 of file x11_window.h.

References window.

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]


Friends And Related Function Documentation

friend class x11_display [friend]

Definition at line 26 of file x11_window.h.


Member Data Documentation

x11_display* mimas::x11_window::display [protected]

Definition at line 61 of file x11_window.h.

Referenced by get_display().

XVisualInfo* mimas::x11_window::visualInfo [protected]

Definition at line 63 of file x11_window.h.

Referenced by get_visual_info().

Colormap mimas::x11_window::colorMap [protected]

Colormap of X11-visual.

Definition at line 65 of file x11_window.h.

Window mimas::x11_window::window [protected]

X11 window.

Definition at line 67 of file x11_window.h.

Referenced by get_window().

int mimas::x11_window::width [protected]

Definition at line 69 of file x11_window.h.

Referenced by get_width().

int mimas::x11_window::height [protected]

Definition at line 71 of file x11_window.h.

Referenced by get_height().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:48 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...