2    Copyright (C) 1996 Scott W. Sadler
 
  10       03-Mar-96 1.0; Scott W. Sadler (ssadler@cisco.com)
 
  17 #include "XsMoveOutline.h"
 
  18 #include <X11/cursorfont.h>
 
  22 Cursor XsMoveOutline::_fleur = None;
 
  26 XsMoveOutline::XsMoveOutline (Widget w) : XsOutline (w)
 
  28    unsigned int mask;      // Not used
 
  32 // Create the cursor (if necessary)
 
  35       _fleur = XCreateFontCursor (XtDisplay (_w), XC_fleur);
 
  37 // Get the current mouse root coordinates
 
  39    XQueryPointer (XtDisplay (_w), XtWindow (_w), &root, &root, &_rootX,
 
  40       &_rootY, &xy, &xy, &mask);
 
  45 XsMoveOutline::~XsMoveOutline ( )
 
  52 void XsMoveOutline::_motionHandler (XEvent *event)
 
  56 // Get current mouse position
 
  58    curX = event->xbutton.x_root;
 
  59    curY = event->xbutton.y_root;
 
  61 // Compute the new window position
 
  63    _x += (curX - _rootX);
 
  64    _y += (curY - _rootY);
 
  70 // Save the new root position
 
  78 Cursor XsMoveOutline::_getCursor ( ) const