#ifndef shuttlebarP_h
#define shuttlebarP_h

#include <X11/SimpleP.h>
#include "Shuttlebar.h"

typedef struct {int foo;} ShuttleClassPart;
typedef struct _ShuttleClassRec {
  CoreClassPart		core_class;
  SimpleClassPart	simple_class;
  ShuttleClassPart	shuttle_class;
} ShuttleClassRec;

extern ShuttleClassRec shuttleClassRec;

XPoint forward_shuttle[] = {
  {0,1},
  {0,-1},
  {20,0},
  {-20,0}
};

XPoint reverse_shuttle[] = {
  {0,1},
  {0,-1},
  {-20,0},
  {20,0}
};

typedef struct {
  /* resources */
  Pixel		center_color;
  Pixel		foreground_color;
  int		center_width;
  int		initial_speed;
  int		max_speed;
  XtCallbackList roll;

  /* private state */
  GC		drawGC,
		eraseGC,
		centDrawGC,
		centEraseGC;
  int		mode,
  		speed,
		return_speed;
} ShuttlePart;

typedef struct _ShuttleRec {
  CorePart	core;
  SimplePart	simple;
  ShuttlePart	shuttle;
} ShuttleRec;

#endif shuttlebarP_h
