Requests.h revision eaef79e5
1/* $Xorg: Requests.h,v 1.4 2001/02/09 02:05:28 xorgcvs Exp $ */ 2/* 3 4Copyright 1989, 1998 The Open Group 5 6Permission to use, copy, modify, distribute, and sell this software and its 7documentation for any purpose is hereby granted without fee, provided that 8the above copyright notice appear in all copies and that both that 9copyright notice and this permission notice appear in supporting 10documentation. 11 12The above copyright notice and this permission notice shall be included 13in all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall 24not be used in advertising or otherwise to promote the sale, use or 25other dealings in this Software without prior written authorization 26from The Open Group. 27 28*/ 29/* $XFree86: xc/programs/bitmap/Requests.h,v 1.4 2001/01/17 23:44:51 dawes Exp $ */ 30 31/* 32 * Author: Davor Matic, MIT X Consortium 33 */ 34 35#ifndef _Requests_h 36#define _Requests_h 37 38typedef int (*DrawOnePointProc)(Widget, Position, Position, int); 39typedef int (*DrawTwoPointProc)(Widget, Position, Position, 40 Position, Position, int); 41typedef int (*InterfaceProc)(Widget); 42 43typedef struct { 44 Boolean success; 45 Position at_x, at_y; 46 Position from_x, from_y, 47 to_x, to_y; 48 XtPointer draw; 49 int value; 50 Time btime; 51 int state; 52} BWStatus; 53 54extern void OnePointEngage ( Widget w, BWStatus *status, XtPointer draw, int *state ); 55extern void OnePointTerminate ( Widget w, BWStatus *status, XtPointer draw ); 56extern void OnePointTerminateTransparent ( Widget w, BWStatus *status, XtPointer draw ); 57extern void DragOnePointEngage ( Widget w, BWStatus *status, XtPointer draw, int *state ); 58extern void DragOnePointTerminate ( Widget w, BWStatus *status, XtPointer client_data ); 59extern void TwoPointsEngage ( Widget w, BWStatus *status, XtPointer draw, int *state ); 60extern void TwoPointsTerminate ( Widget w, BWStatus *status, XtPointer draw ); 61extern void TwoPointsTerminateTransparent ( Widget w, BWStatus *status, XtPointer draw ); 62extern void TwoPointsTerminateTimed ( Widget w, BWStatus *status, XtPointer draw ); 63extern void DragTwoPointsEngage ( Widget w, BWStatus *status, XtPointer draw, int *state ); 64extern void DragTwoPointsTerminate ( Widget w, BWStatus *status, XtPointer draw ); 65extern void Interface ( Widget w, BWStatus *status, XtPointer action ); 66extern void Paste ( Widget w, Position at_x, Position at_y, int value ); 67 68extern void BWDragMarked(Widget w, Position at_x, Position at_y); 69extern void BWDragStored(Widget w, Position at_x, Position at_y); 70extern void BWCopy(Widget w, Position at_x, Position at_y, int value); 71extern void BWMove(Widget w, Position at_x, Position at_y, int value); 72extern void BWRestore(Widget w, Position at_x, Position at_y, int value); 73extern void BWDrawPoint(Widget w, Position x, Position y, bit value); 74extern void BWBlindLine(Widget w, Position from_x, Position from_y, 75 Position to_x, Position to_y, int value); 76extern void BWDrawHotSpot(Widget w, Position x, Position y, int value); 77extern void BWZoomIn(Widget w, Position from_x, Position from_y, 78 Position to_x, Position to_y); 79 80extern void OnePointHandler(Widget w, XtPointer client_data, 81 XEvent *event, Boolean *cont); 82extern void TwoPointsHandler(Widget w, XtPointer client_data, 83 XEvent *event, Boolean *cont); 84extern void DragTwoPointsHandler(Widget w, XtPointer client_data, 85 XEvent *event, Boolean *cont); 86 87#endif /* _Requests_h */ 88