libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd cvd_src/glwindow.cc cvd/glwindow.h


From: Edward Rosten
Subject: [libcvd-members] libcvd cvd_src/glwindow.cc cvd/glwindow.h
Date: Fri, 08 Jun 2007 00:26:08 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        07/06/08 00:26:08

Modified files:
        cvd_src        : glwindow.cc 
        cvd            : glwindow.h 

Log message:
        Added expose event

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd_src/glwindow.cc?cvsroot=libcvd&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/glwindow.h?cvsroot=libcvd&r1=1.4&r2=1.5

Patches:
Index: cvd_src/glwindow.cc
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd_src/glwindow.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- cvd_src/glwindow.cc 23 May 2007 17:55:49 -0000      1.4
+++ cvd_src/glwindow.cc 8 Jun 2007 00:26:08 -0000       1.5
@@ -56,7 +56,7 @@
     XSetWindowAttributes attributes;
     attributes.border_pixel = 0;
     attributes.colormap = XCreateColormap(display, rootWindow, 
visualInfo->visual, AllocNone);
-    attributes.event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | 
ButtonReleaseMask | PointerMotionMask | StructureNotifyMask;
+    attributes.event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | 
ButtonReleaseMask | PointerMotionMask | StructureNotifyMask | ExposureMask;
        
     Window window = XCreateWindow(display, 
                                  rootWindow, 
@@ -223,6 +223,9 @@
                handler.on_resize(*this, state->size);
            }
            break;
+       case Expose:    
+               handler.on_event(*this, EVENT_EXPOSE);
+               break;
        case ClientMessage:    
            if (event.xclient.data.l[0] == (int)state->delete_atom)
                handler.on_event(*this, EVENT_CLOSE);

Index: cvd/glwindow.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/glwindow.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- cvd/glwindow.h      23 May 2007 17:55:49 -0000      1.4
+++ cvd/glwindow.h      8 Jun 2007 00:26:08 -0000       1.5
@@ -41,7 +41,7 @@
        /// Symbols for mouse buttons and modifiers
        enum MouseButton { BUTTON_LEFT=1, BUTTON_MIDDLE=2, BUTTON_RIGHT=4, 
BUTTON_MOD_CTRL=8, BUTTON_MOD_SHIFT=0x10, BUTTON_WHEEL_UP=0x20, 
BUTTON_WHEEL_DOWN=0x40 };
        /// Symbols for window events
-       enum EventType { EVENT_CLOSE };
+       enum EventType { EVENT_CLOSE, EVENT_EXPOSE };
 
        /// Abstract base class for event handlers.  Subclass this and override 
to implement a handler.
        class EventHandler {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]