0025147: Visualization, TKOpenGl - support EGL as alternative to GLX
[occt.git] / src / Xw / Xw_Window.hxx
index e3a49d0..53f0c14 100755 (executable)
@@ -98,6 +98,18 @@ public:
   //! @return connection to X Display
   Standard_EXPORT const Handle(Aspect_DisplayConnection)& DisplayConnection() const;
 
+  //! @return native Window handle
+  virtual Aspect_Drawable NativeHandle() const
+  {
+    return (Aspect_Drawable )XWindow();
+  }
+
+  //! @return parent of native Window handle
+  virtual Aspect_Drawable NativeParentHandle() const
+  {
+    return 0;
+  }
+
 protected:
 
   Handle(Aspect_DisplayConnection) myDisplay; //!< X Display connection