150 |
or modified with modify-frame-parameters. */ |
or modified with modify-frame-parameters. */ |
151 |
Lisp_Object param_alist; |
Lisp_Object param_alist; |
152 |
|
|
153 |
/* List of scroll bars on this frame. |
/* List of scroll bars on this frame. |
154 |
Actually, we don't specify exactly what is stored here at all; the |
Actually, we don't specify exactly what is stored here at all; the |
155 |
scroll bar implementation code can use it to store anything it likes. |
scroll bar implementation code can use it to store anything it likes. |
156 |
This field is marked by the garbage collector. It is here |
This field is marked by the garbage collector. It is here |
224 |
int tool_bar_lines; |
int tool_bar_lines; |
225 |
|
|
226 |
int n_tool_bar_items; |
int n_tool_bar_items; |
227 |
|
|
228 |
/* A buffer for decode_mode_line. */ |
/* A buffer for decode_mode_line. */ |
229 |
char *decode_mode_spec_buffer; |
char *decode_mode_spec_buffer; |
230 |
|
|
253 |
|
|
254 |
/* A structure of auxiliary data used for displaying the contents. |
/* A structure of auxiliary data used for displaying the contents. |
255 |
struct x_output is used for X window frames; |
struct x_output is used for X window frames; |
256 |
it is defined in xterm.h. |
it is defined in xterm.h. |
257 |
struct w32_output is used for W32 window frames; |
struct w32_output is used for W32 window frames; |
258 |
it is defined in w32term.h. */ |
it is defined in w32term.h. */ |
259 |
union output_data |
union output_data |
325 |
/* True if frame actually has a minibuffer window on it. |
/* True if frame actually has a minibuffer window on it. |
326 |
0 if using a minibuffer window that isn't on this frame. */ |
0 if using a minibuffer window that isn't on this frame. */ |
327 |
char has_minibuffer; |
char has_minibuffer; |
328 |
|
|
329 |
/* 0 means, if this frame has just one window, |
/* 0 means, if this frame has just one window, |
330 |
show no modeline for that window. */ |
show no modeline for that window. */ |
331 |
char wants_modeline; |
char wants_modeline; |
525 |
/* The currently selected window of the window tree of frame F. */ |
/* The currently selected window of the window tree of frame F. */ |
526 |
#define FRAME_SELECTED_WINDOW(f) (f)->selected_window |
#define FRAME_SELECTED_WINDOW(f) (f)->selected_window |
527 |
|
|
528 |
#define FRAME_INSERT_COST(f) (f)->insert_line_cost |
#define FRAME_INSERT_COST(f) (f)->insert_line_cost |
529 |
#define FRAME_DELETE_COST(f) (f)->delete_line_cost |
#define FRAME_DELETE_COST(f) (f)->delete_line_cost |
530 |
#define FRAME_INSERTN_COST(f) (f)->insert_n_lines_cost |
#define FRAME_INSERTN_COST(f) (f)->insert_n_lines_cost |
531 |
#define FRAME_DELETEN_COST(f) (f)->delete_n_lines_cost |
#define FRAME_DELETEN_COST(f) (f)->delete_n_lines_cost |
532 |
#define FRAME_MESSAGE_BUF(f) (f)->message_buf |
#define FRAME_MESSAGE_BUF(f) (f)->message_buf |
623 |
/* Return the size of message_buf of the frame F. We multiply the |
/* Return the size of message_buf of the frame F. We multiply the |
624 |
width of the frame by 4 because multi-byte form may require at most |
width of the frame by 4 because multi-byte form may require at most |
625 |
4-byte for a character. */ |
4-byte for a character. */ |
626 |
|
|
627 |
#define FRAME_MESSAGE_BUF_SIZE(f) (((int) (f)->width) * 4) |
#define FRAME_MESSAGE_BUF_SIZE(f) (((int) (f)->width) * 4) |
628 |
|
|
629 |
/* Emacs's redisplay code could become confused if a frame's |
/* Emacs's redisplay code could become confused if a frame's |
649 |
Also, if a frame used to be invisible, but has just become visible, |
Also, if a frame used to be invisible, but has just become visible, |
650 |
it must be marked as garbaged, since redisplay hasn't been keeping |
it must be marked as garbaged, since redisplay hasn't been keeping |
651 |
up its contents. */ |
up its contents. */ |
652 |
|
|
653 |
#define FRAME_SAMPLE_VISIBILITY(f) \ |
#define FRAME_SAMPLE_VISIBILITY(f) \ |
654 |
(((f)->async_visible && (f)->visible != (f)->async_visible) ? \ |
(((f)->async_visible && (f)->visible != (f)->async_visible) ? \ |
655 |
SET_FRAME_GARBAGED (f) : 0, \ |
SET_FRAME_GARBAGED (f) : 0, \ |
674 |
loop will set FRAME_VAR, a Lisp_Object, to each frame in |
loop will set FRAME_VAR, a Lisp_Object, to each frame in |
675 |
Vframe_list in succession and execute the statement. LIST_VAR |
Vframe_list in succession and execute the statement. LIST_VAR |
676 |
should be a Lisp_Object too; it is used to iterate through the |
should be a Lisp_Object too; it is used to iterate through the |
677 |
Vframe_list. |
Vframe_list. |
678 |
|
|
679 |
This macro is a holdover from a time when multiple frames weren't always |
This macro is a holdover from a time when multiple frames weren't always |
680 |
supported. An alternate definition of the macro would expand to |
supported. An alternate definition of the macro would expand to |
731 |
|
|
732 |
/* Return the height in lines of the vertical scroll bar in w. If the |
/* Return the height in lines of the vertical scroll bar in w. If the |
733 |
window has a mode line, don't make the scroll bar extend that far. */ |
window has a mode line, don't make the scroll bar extend that far. */ |
734 |
|
|
735 |
#define WINDOW_VERTICAL_SCROLL_BAR_HEIGHT(w) (window_internal_height (w)) |
#define WINDOW_VERTICAL_SCROLL_BAR_HEIGHT(w) (window_internal_height (w)) |
736 |
|
|
737 |
/* The currently selected frame. */ |
/* The currently selected frame. */ |
779 |
(FRAME_WINDOW_P (F) ? FRAME_X_LEFT_FRINGE_WIDTH (F) : 0) |
(FRAME_WINDOW_P (F) ? FRAME_X_LEFT_FRINGE_WIDTH (F) : 0) |
780 |
#define FRAME_RIGHT_FRINGE_WIDTH(F) \ |
#define FRAME_RIGHT_FRINGE_WIDTH(F) \ |
781 |
(FRAME_WINDOW_P (F) ? FRAME_X_RIGHT_FRINGE_WIDTH (F) : 0) |
(FRAME_WINDOW_P (F) ? FRAME_X_RIGHT_FRINGE_WIDTH (F) : 0) |
782 |
|
|
783 |
#else /* not HAVE_WINDOW_SYSTEM */ |
#else /* not HAVE_WINDOW_SYSTEM */ |
784 |
|
|
785 |
#define FRAME_FRINGE_WIDTH(F) 0 |
#define FRAME_FRINGE_WIDTH(F) 0 |
788 |
#define FRAME_RIGHT_FRINGE_WIDTH(F) 0 |
#define FRAME_RIGHT_FRINGE_WIDTH(F) 0 |
789 |
|
|
790 |
#endif /* not HAVE_WINDOW_SYSTEM */ |
#endif /* not HAVE_WINDOW_SYSTEM */ |
791 |
|
|
792 |
|
|
793 |
|
|
794 |
|
|
803 |
/* Convert canonical value X to pixels. F is the frame whose |
/* Convert canonical value X to pixels. F is the frame whose |
804 |
canonical char width is to be used. X must be a Lisp integer or |
canonical char width is to be used. X must be a Lisp integer or |
805 |
float. Value is a C integer. */ |
float. Value is a C integer. */ |
806 |
|
|
807 |
#define PIXEL_X_FROM_CANON_X(F, X) \ |
#define PIXEL_X_FROM_CANON_X(F, X) \ |
808 |
(INTEGERP (X) \ |
(INTEGERP (X) \ |
809 |
? XINT (X) * CANON_X_UNIT (F) \ |
? XINT (X) * CANON_X_UNIT (F) \ |
810 |
: (int) (XFLOAT_DATA (X) * CANON_X_UNIT (F))) |
: (int) (XFLOAT_DATA (X) * CANON_X_UNIT (F))) |
811 |
|
|
812 |
/* Convert canonical value Y to pixels. F is the frame whose |
/* Convert canonical value Y to pixels. F is the frame whose |
813 |
canonical character height is to be used. X must be a Lisp integer |
canonical character height is to be used. X must be a Lisp integer |
814 |
or float. Value is a C integer. */ |
or float. Value is a C integer. */ |
815 |
|
|
816 |
#define PIXEL_Y_FROM_CANON_Y(F, Y) \ |
#define PIXEL_Y_FROM_CANON_Y(F, Y) \ |
817 |
(INTEGERP (Y) \ |
(INTEGERP (Y) \ |
818 |
? XINT (Y) * CANON_Y_UNIT (F) \ |
? XINT (Y) * CANON_Y_UNIT (F) \ |
836 |
#define CANON_Y_FROM_PIXEL_Y(F, Y) \ |
#define CANON_Y_FROM_PIXEL_Y(F, Y) \ |
837 |
((Y) % CANON_Y_UNIT (F) \ |
((Y) % CANON_Y_UNIT (F) \ |
838 |
? make_float ((double) (Y) / CANON_Y_UNIT (F)) \ |
? make_float ((double) (Y) / CANON_Y_UNIT (F)) \ |
839 |
: make_number ((Y) / CANON_Y_UNIT (F))) |
: make_number ((Y) / CANON_Y_UNIT (F))) |
840 |
|
|
841 |
#endif /* not EMACS_FRAME_H */ |
#endif /* not EMACS_FRAME_H */ |