]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xscreen.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / xscreen.h
index 584c4f2d5b49a7092ff368d0363cc44895b89f70..00bfc2538e2455602404165ad568b821a04f9ecf 100644 (file)
@@ -7,16 +7,20 @@
  * \author unknown
  * \author John Levon
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef XSCREEN_H
 #define XSCREEN_H
 
-
 #include "screen.h"
 #include <X11/Xlib.h> // for Pixmap, GC
 
+class WorkArea;
+
+namespace lyx {
+namespace frontend {
+
 class XWorkArea;
 
 /** The class XScreen is used for the main Textbody.
@@ -34,40 +38,39 @@ public:
 
        /// Sets the cursor color to LColor::cursor.
        virtual void setCursorColor();
-       ///
-       virtual void hideCursor();
-       ///
-       virtual void showManualCursor(LyXText const *, int x, int y,
-                             int asc, int desc,
-                             Cursor_Shape shape);
-
-       /** Draws the screen form textposition y. Uses as much of
-           the already printed pixmap as possible */
-       virtual void draw(LyXText *, BufferView *, unsigned int y);
 
 protected:
        /// get the work area
-       virtual WorkArea & workarea() const { return owner_; }
+       virtual WorkArea & workarea() const;
 
        /// Copies specified area of pixmap to screen
        virtual void expose(int x, int y, int w, int h);
 
+       /// paint the cursor and store the background
+       virtual void showCursor(int x, int y, int h, Cursor_Shape shape);
+
+       /// hide the cursor
+       virtual void removeCursor();
+
 private:
        /// our owning widget
        XWorkArea & owner_;
 
-       ///
-       Pixmap cursor_pixmap;
-       ///
-       int cursor_pixmap_x;
-       ///
-       int cursor_pixmap_y;
-       ///
-       int cursor_pixmap_w;
-       ///
-       int cursor_pixmap_h;
-       ///
+       /// backing pixmap for cursor
+       Pixmap nocursor_pixmap_;
+       /// x of backing pixmap
+       int cursor_x_;
+       /// y of backing pixmap
+       int cursor_y_;
+       /// width of backing pixmap
+       int cursor_w_;
+       /// height of backing pixmap
+       int cursor_h_;
+       /// cursor cs
        GC gc_copy;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif