1 #ifndef GADGETS_GETFONT_H 2 #define GADGETS_GETFONT_H 3 4 /* 5 getfont.gadget definitions (V45) 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef REACTION_REACTION_H 11 # include <reaction/reaction.h> 12 #endif 13 14 #ifndef INTUITION_GADGETCLASS_H 15 # include <intuition/gadgetclass.h> 16 #endif 17 18 #pragma pack(2) 19 20 21 /* Attributes defined by getfont.gadget */ 22 23 #define GETFONT_Dummy (REACTION_Dummy + 0x40000) 24 #define GETFONT_TextAttr (GETFONT_Dummy + 1) 25 #define GETFONT_DoFrontPen (GETFONT_Dummy + 2) 26 #define GETFONT_DoBackPen (GETFONT_Dummy + 3) 27 #define GETFONT_DoStyle (GETFONT_Dummy + 4) 28 #define GETFONT_DoDrawMode (GETFONT_Dummy + 5) 29 #define GETFONT_MinHeight (GETFONT_Dummy + 6) 30 #define GETFONT_MaxHeight (GETFONT_Dummy + 7) 31 #define GETFONT_FixedWidthOnly (GETFONT_Dummy + 8) 32 #define GETFONT_TitleText (GETFONT_Dummy + 9) 33 #define GETFONT_Height (GETFONT_Dummy + 10) 34 #define GETFONT_Width (GETFONT_Dummy + 11) 35 #define GETFONT_LeftEdge (GETFONT_Dummy + 12) 36 #define GETFONT_TopEdge (GETFONT_Dummy + 13) 37 #define GETFONT_FrontPen (GETFONT_Dummy + 14) 38 #define GETFONT_BackPen (GETFONT_Dummy + 15) 39 #define GETFONT_DrawMode (GETFONT_Dummy + 16) 40 #define GETFONT_MaxFrontPen (GETFONT_Dummy + 17) 41 #define GETFONT_MaxBackPen (GETFONT_Dummy + 18) 42 #define GETFONT_ModeList (GETFONT_Dummy + 19) 43 #define GETFONT_FrontPens (GETFONT_Dummy + 20) 44 #define GETFONT_BackPens (GETFONT_Dummy + 21) 45 #define GETFONT_SoftStyle (GETFONT_Dummy + 22) 46 47 48 /* getfont.gadget methods */ 49 50 #define GFONT_REQUEST (0x600001L) 51 52 53 struct gfRequest 54 { 55 ULONG MethodID; 56 struct Window *gfr_Window; 57 }; 58 59 60 /* Useful macros */ 61 62 #define gfRequestFont(obj, win) DoMethod(obj, GFONT_REQUEST, win) 63 64 65 #pragma pack() 66 67 #endif /* GADGETS_GETFONT_H */