/[libvob]/libvob/src/os/Os-GLX.cxx
ViewVC logotype

Diff of /libvob/src/os/Os-GLX.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by tjl, Wed Apr 9 14:09:26 2003 UTC revision 1.4 by humppake, Fri May 9 10:55:38 2003 UTC
# Line 41  Os-GLX.cxx Line 41  Os-GLX.cxx
41  #include <GL/glx.h>  #include <GL/glx.h>
42  #include <X11/keysym.h>  #include <X11/keysym.h>
43    
44    //#include <X11/cursorfont.h>
45    #include <X11/Xlib.h>
46    
47  #include <vob/os/Os.hxx>  #include <vob/os/Os.hxx>
48  #include <vob/Debug.hxx>  #include <vob/Debug.hxx>
49    
# Line 488  namespace Os { Line 491  namespace Os {
491          virtual void resize(int w, int h) {          virtual void resize(int w, int h) {
492              XResizeWindow(ws->dpy, xw, w, h);              XResizeWindow(ws->dpy, xw, w, h);
493          }          }
494            virtual void setCursor(int shape) {
495                XDefineCursor(ws->dpy, xw, XCreateFontCursor(ws->dpy, shape));
496            }
497          void getSize(int *xywh) {          void getSize(int *xywh) {
498              // cout << "GetGeometry "<<int(ws)<<" "<<int(ws->dpy)<<" "<<int(xw)<<"\n";              // cout << "GetGeometry "<<int(ws)<<" "<<int(ws->dpy)<<" "<<int(xw)<<"\n";
499              XWindowAttributes attrs;              XWindowAttributes attrs;
# Line 602  namespace Os { Line 608  namespace Os {
608          }          }
609      };      };
610    
611    
612    
613      Os::Window *LXWindowSystem::openWindow(int x, int y, int w, int h) {      Os::Window *LXWindowSystem::openWindow(int x, int y, int w, int h) {
614          LXWindow *win = new LXWindow(this, x, y, w, h);          LXWindow *win = new LXWindow(this, x, y, w, h);
615          windows.insert(windows.end(), win);          windows.insert(windows.end(), win);
# Line 635  namespace Os { Line 643  namespace Os {
643          write(interruptPipe[1], &intr, 1);          write(interruptPipe[1], &intr, 1);
644      }      }
645    
   
646      void LXWindowSystem::eventLoop(bool wait) {      void LXWindowSystem::eventLoop(bool wait) {
647          DBG(dbg) << "In C++ eventloop : "<<wait<<"\n";          DBG(dbg) << "In C++ eventloop : "<<wait<<"\n";
648          // We don't want to block;          // We don't want to block;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26