comparison src/objects-msw.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 943eaba38521
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
48 48
49 /* The four HFONTS are for the 4 (underlined, strikethrough) 49 /* The four HFONTS are for the 4 (underlined, strikethrough)
50 combinations. Only the one at index 0, neither underlined nor 50 combinations. Only the one at index 0, neither underlined nor
51 struk through is created with the font instance. Other fonts are 51 struk through is created with the font instance. Other fonts are
52 created as necessary during redisplay, using the one at index 0 52 created as necessary during redisplay, using the one at index 0
53 as protptype */ 53 as prototype */
54 #define MSWINDOWS_NUM_FONT_VARIANTS 4 54 #define MSWINDOWS_NUM_FONT_VARIANTS 4
55 struct mswindows_font_instance_data 55 struct mswindows_font_instance_data
56 { 56 {
57 HFONT hfont [MSWINDOWS_NUM_FONT_VARIANTS]; 57 HFONT hfont [MSWINDOWS_NUM_FONT_VARIANTS];
58 }; 58 };
67 FONT_INSTANCE_MSWINDOWS_HFONT_I (c, (!!(strike)<<1)|!!(under)) 67 FONT_INSTANCE_MSWINDOWS_HFONT_I (c, (!!(strike)<<1)|!!(under))
68 68
69 /* If font creation during redisplay fails, then the following 69 /* If font creation during redisplay fails, then the following
70 value is used to prevent future attempts to create this font. 70 value is used to prevent future attempts to create this font.
71 Redisplay uses the "main" font when encounters this value */ 71 Redisplay uses the "main" font when encounters this value */
72 #define MSWINDOWS_BAD_HFONT INVALID_HANDLE_VALUE 72 #define MSWINDOWS_BAD_HFONT ((HFONT)INVALID_HANDLE_VALUE)
73 73
74 HFONT mswindows_get_hfont (Lisp_Font_Instance* f, int under, int strike); 74 HFONT mswindows_get_hfont (Lisp_Font_Instance* f, int under, int strike);
75 75
76 Lisp_Object mswindows_color_to_string (COLORREF color);
77
76 #endif /* INCLUDED_objects_msw_h_ */ 78 #endif /* INCLUDED_objects_msw_h_ */