comparison src/xterm.h @ 1821:04fb1d3d6992

JimB's changes since January 18th
author Jim Blandy <jimb@redhat.com>
date Tue, 26 Jan 1993 01:58:16 +0000
parents aaccd635fb71
children 73ce9dd21093
comparison
equal deleted inserted replaced
1820:b95bdb97c3e8 1821:04fb1d3d6992
237 237
238 enum text_cursor_kinds { 238 enum text_cursor_kinds {
239 filled_box_cursor, hollow_box_cursor, bar_cursor 239 filled_box_cursor, hollow_box_cursor, bar_cursor
240 }; 240 };
241 241
242 #define PIXEL_WIDTH(f) ((f)->display.x->pixel_width)
243 #define PIXEL_HEIGHT(f) ((f)->display.x->pixel_height)
244
245 /* Each X frame object points to its own struct x_display object 242 /* Each X frame object points to its own struct x_display object
246 in the display.x field. The x_display structure contains all 243 in the display.x field. The x_display structure contains all
247 the information that is specific to X windows. */ 244 the information that is specific to X windows. */
248 245
249 struct x_display 246 struct x_display
314 char *icon_label; 311 char *icon_label;
315 312
316 /* Flag to set when the X window needs to be completely repainted. */ 313 /* Flag to set when the X window needs to be completely repainted. */
317 int needs_exposure; 314 int needs_exposure;
318 315
319 /* What kind of text cursor is drawn in this window right now? (If 316 /* What kind of text cursor is drawn in this window right now?
320 there is no cursor (phys_cursor_x < 0), then this means nothing. */ 317 (If there is no cursor (phys_cursor_x < 0), then this means nothing.) */
321 enum text_cursor_kinds text_cursor_kind; 318 enum text_cursor_kinds current_cursor;
319
320 /* What kind of text cursor should we draw in the future?
321 This should always be filled_box_cursor or bar_cursor. */
322 enum text_cursor_kinds desired_cursor;
322 323
323 /* These are the current window manager hints. It seems that 324 /* These are the current window manager hints. It seems that
324 XSetWMHints, when presented with an unset bit in the `flags' 325 XSetWMHints, when presented with an unset bit in the `flags'
325 member of the hints structure, does not leave the corresponding 326 member of the hints structure, does not leave the corresponding
326 attribute unchanged; rather, it resets that attribute to its 327 attribute unchanged; rather, it resets that attribute to its
339 }; 340 };
340 341
341 /* Return the window associated with the frame F. */ 342 /* Return the window associated with the frame F. */
342 #define FRAME_X_WINDOW(f) ((f)->display.x->window_desc) 343 #define FRAME_X_WINDOW(f) ((f)->display.x->window_desc)
343 344
345 /* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */
346 #define PIXEL_WIDTH(f) ((f)->display.x->pixel_width)
347 #define PIXEL_HEIGHT(f) ((f)->display.x->pixel_height)
348
349 #define FRAME_DESIRED_CURSOR(f) ((f)->display.x->desired_cursor)
350
344 351
345 /* When X windows are used, a glyf may be a 16 bit unsigned datum. 352 /* When X windows are used, a glyf may be a 16 bit unsigned datum.
346 The high order byte is the face number and is used as an index 353 The high order byte is the face number and is used as an index
347 in the face table. A face is a font plus: 354 in the face table. A face is a font plus:
348 1) the unhighlighted foreground color, 355 1) the unhighlighted foreground color,