/*
 * Copyright 1990 by Baylor College of Medicine ALL RIGHTS RESERVED. 
 *
 * This program is subject to a license agreement between 
 * Baylor College of Medicine and MIT. Any use inconsistent with
 * said license and any use by persons other than the faculty, 
 * students and staff at MIT or any use on a computer not operated 
 * as part of the Athena Computing Environment (ACE) is expressly 
 * prohibited.
 */
/*
 *  Selectable Raster widget by Janet Carson, 9-14-89
 */

/*
 *  SelRasterP.h -- Selectable raster widget private include file
 */

#ifndef SelRasterP_h
#define SelRasterP_h

typedef struct _JSelRasterClassPart {
	int dummy ;
} JSelRasterClassPart;

typedef struct _JSelRasterClassRec {
    CoreClassPart      core_class;
    JSelRasterClassPart selraster_class;
} JSelRasterClassRec;

extern JSelRasterClassRec JselRasterClassRec;

typedef struct _JSelRasterPart {
    Pixel foreground;
    XImage *image;
    XImage *lowres ;
	int which_image ;
    int objectid;
    XtCallbackList select;
    XtCallbackList release;
    int sel_x, sel_y;
    int sel_width, sel_height;
    int pivot_x, pivot_y;
    int drag_x, drag_y;
    Boolean own_selection;
    Boolean selecting;
    Boolean dragging;
    GC  normal_gc;
    GC  outline_gc;
    GC  drag_gc;
    Time selection_time;
    Time click_time;
    Pixmap selection_pixmap;
	Colormap old_cmap ;
	int old_cmap_exists ;
} JSelRasterPart;

typedef struct _JSelRasterRec {
    CorePart        core;
    JSelRasterPart  selraster;
} JSelRasterRec;

#endif

