comparison src/nsgui.h @ 97198:cf43f4e3ecc8

clear warnings and clean up NS port
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Fri, 01 Aug 2008 14:01:08 +0000
parents 4aec559b9f05
children e038c1a8307c
comparison
equal deleted inserted replaced
97197:406ac82acbcc 97198:cf43f4e3ecc8
73 (((*chp) & 0xff00) >> 8) 73 (((*chp) & 0xff00) >> 8)
74 74
75 #define XCHAR2B_BYTE2(chp) \ 75 #define XCHAR2B_BYTE2(chp) \
76 ((*chp) & 0x00ff) 76 ((*chp) & 0x00ff)
77 77
78 #define FACE_DEFAULT (~0)
79
80 78
81 /* XXX: xfaces requires these structures, but the question is are we 79 /* XXX: xfaces requires these structures, but the question is are we
82 forced to use them? */ 80 forced to use them? */
83 typedef struct _XGCValues 81 typedef struct _XGCValues
84 { 82 {
83 unsigned long foreground;
84 unsigned long background;
85 #ifdef __OBJC__ 85 #ifdef __OBJC__
86 NSColor *foreground;
87 NSColor *background;
88 struct ns_font *font; 86 struct ns_font *font;
89 #else 87 #else
90 void *foreground;
91 void *background;
92 void *font; 88 void *font;
93 #endif 89 #endif
94 } XGCValues; 90 } XGCValues;
95 91
96 typedef XGCValues * GC; 92 typedef XGCValues * GC;