0032306: Draw Harness, ViewerTest - move window message processing to TKService
[occt.git] / src / Xw / Xw_Window.hxx
index 6b21974..bda1c4d 100644 (file)
@@ -32,6 +32,7 @@
 
 class Aspect_WindowDefinitionError;
 class Aspect_WindowError;
+class Aspect_WindowInputListener;
 class Aspect_Background;
 class Quantity_Color;
 class Aspect_GradientBackground;
@@ -53,8 +54,7 @@ public:
                              const Standard_Integer thePxLeft,
                              const Standard_Integer thePxTop,
                              const Standard_Integer thePxWidth,
-                             const Standard_Integer thePxHeight,
-                             const Aspect_FBConfig  theFBConfig = NULL);
+                             const Standard_Integer thePxHeight);
 
   //! Creates a wrapper over existing Window handle
   Standard_EXPORT Xw_Window (const Handle(Aspect_DisplayConnection)& theXDisplay,
@@ -126,6 +126,13 @@ public:
   //! for this working thread to avoid race conditions, since Xlib display connection is not thread-safe by default.
   Standard_EXPORT virtual void InvalidateContent (const Handle(Aspect_DisplayConnection)& theDisp) Standard_OVERRIDE;
 
+  //! Process a single window message.
+  //! @param theListener [in][out] listener to redirect message
+  //! @param theMsg [in][out] message to process
+  //! @return TRUE if message has been processed
+  Standard_EXPORT virtual bool ProcessMessage (Aspect_WindowInputListener& theListener,
+                                               XEvent& theMsg);
+
 protected:
 
   Handle(Aspect_DisplayConnection) myDisplay; //!< X Display connection