45 |
/* Structure recording bitmaps and reference count. |
/* Structure recording bitmaps and reference count. |
46 |
If REFCOUNT is 0 then this record is free to be reused. */ |
If REFCOUNT is 0 then this record is free to be reused. */ |
47 |
|
|
48 |
struct mac_bitmap_record |
struct mac_bitmap_record |
49 |
{ |
{ |
50 |
char *bitmap_data; |
char *bitmap_data; |
51 |
int refcount; |
int refcount; |
321 |
/* Foreground color for scroll bars. A value of -1 means use the |
/* Foreground color for scroll bars. A value of -1 means use the |
322 |
default (black for non-toolkit scroll bars). */ |
default (black for non-toolkit scroll bars). */ |
323 |
unsigned long scroll_bar_foreground_pixel; |
unsigned long scroll_bar_foreground_pixel; |
324 |
|
|
325 |
/* Background color for scroll bars. A value of -1 means use the |
/* Background color for scroll bars. A value of -1 means use the |
326 |
default (background color of the frame for non-toolkit scroll |
default (background color of the frame for non-toolkit scroll |
327 |
bars). */ |
bars). */ |
337 |
/* Window whose cursor is hourglass_cursor. This window is temporarily |
/* Window whose cursor is hourglass_cursor. This window is temporarily |
338 |
mapped to display a hourglass-cursor. */ |
mapped to display a hourglass-cursor. */ |
339 |
Window hourglass_window; |
Window hourglass_window; |
340 |
|
|
341 |
/* Non-zero means hourglass cursor is currently displayed. */ |
/* Non-zero means hourglass cursor is currently displayed. */ |
342 |
unsigned hourglass_p : 1; |
unsigned hourglass_p : 1; |
343 |
|
|
558 |
|
|
559 |
/* Return the length of the rectangle within which the top of the |
/* Return the length of the rectangle within which the top of the |
560 |
handle must stay. This isn't equivalent to the inside height, |
handle must stay. This isn't equivalent to the inside height, |
561 |
because the scroll bar handle has a minimum height. |
because the scroll bar handle has a minimum height. |
562 |
|
|
563 |
This is the real range of motion for the scroll bar, so when we're |
This is the real range of motion for the scroll bar, so when we're |
564 |
scaling buffer positions to scroll bar positions, we use this, not |
scaling buffer positions to scroll bar positions, we use this, not |
626 |
+ (f)->output_data.mac->internal_border_width) |
+ (f)->output_data.mac->internal_border_width) |
627 |
|
|
628 |
|
|
629 |
/* Return the row/column (zero-based) of the character cell containing |
/* Return the row/column (zero-based) of the character cell containing |
630 |
the pixel on FRAME at ROW/COL. */ |
the pixel on FRAME at ROW/COL. */ |
631 |
#define PIXEL_TO_CHAR_ROW(f, row) \ |
#define PIXEL_TO_CHAR_ROW(f, row) \ |
632 |
(((row) - (f)->output_data.mac->internal_border_width) \ |
(((row) - (f)->output_data.mac->internal_border_width) \ |