1 /************************************************************************/ 2 /* */ 3 /* A widget in the screen GUI. (Implementation) */ 4 /* */ 5 /************************************************************************/ 6 7 # include "appGuiBase.h" 8 # include <psPostScriptFontList.h> 9 # include <utilColor.h> 10 11 /************************************************************************/ 12 /* */ 13 /* Routine Declarations. */ 14 /* */ 15 /************************************************************************/ 16 17 extern void guiExposeDrawingWidget( APP_WIDGET nativeWidget ); 18 extern void guiExposeDrawingWidgetRectangle( 19 APP_WIDGET nativeWidget, 20 const DocumentRectangle * dr ); 21 22 extern void guiCollectExposures( DocumentRectangle * drClip, 23 APP_WIDGET nativeWidget, 24 APP_EVENT * exposeEvent ); 25 26 extern void guiGetForegroundColor( RGB8Color * rgb8, 27 APP_WIDGET nativeWidget ); 28 29 extern void guiGetBackgroundColor( RGB8Color * rgb8, 30 APP_WIDGET nativeWidget ); 31 32 extern void guiGetTopShadowColor( RGB8Color * rgb8, 33 APP_WIDGET nativeWidget ); 34 35 extern void guiGetBottomShadowColor( RGB8Color * rgb8, 36 APP_WIDGET nativeWidget ); 37 38 extern int guiDrawGetSizeOfWidget( int * pWide, 39 int * pHigh, 40 APP_WIDGET w ); 41 42 extern int guiDrawGetSizeFromConfigureEvent( int * pWide, 43 int * pHigh, 44 APP_WIDGET w, 45 APP_EVENT * event ); 46 47 extern int guiGetCoordinatesFromMouseButtonEvent( 48 int * pX, 49 int * pY, 50 int * pButton, 51 int * pUpDown, 52 int * pSeq, 53 unsigned int * pKeyState, 54 const APP_WIDGET w, 55 const APP_EVENT * event ); 56 57 extern int guiGetCoordinatesRelativeToWidget( 58 int * pX, 59 int * pY, 60 const APP_WIDGET w ); 61 62 extern int guiGetCoordinatesFromMouseMoveEvent( int * pX, 63 int * pY, 64 APP_WIDGET w, 65 APP_EVENT * event ); 66 67 extern void guiDrawSetRedrawHandler( APP_WIDGET w, 68 APP_EVENT_HANDLER_T handler, 69 void * through ); 70 71 extern void guiDrawSetConfigureHandler( APP_WIDGET w, 72 APP_EVENT_HANDLER_T handler, 73 void * through ); 74 75 extern void guiDrawSetButtonPressHandler( APP_WIDGET w, 76 APP_EVENT_HANDLER_T handler, 77 void * through ); 78 79 extern void guiDrawSetScrollHandler( APP_WIDGET w, 80 APP_EVENT_HANDLER_T handler, 81 void * through ); 82 83 extern int guiDrawGetInoutFromFocusEvent( int * pInOut, 84 APP_WIDGET w, 85 APP_EVENT * event ); 86 87