• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching +refs:frame +refs:width

1 /* Define frame-object for GNU Emacs.
23 includes frame.h some emacs source includes both dispextern.h and
24 frame.h */
34 actual terminal frame */
45 /* The structure representing a frame. */
93 /* A structure describing a termcap frame display. */
98 struct frame
107 /* Name of this frame: a Lisp string. It is used for looking up resources,
115 /* This is the frame title specified explicitly, if any.
119 /* The frame which should receive keystrokes that occur in this
120 frame, or nil if they should go to the frame itself. This is
121 usually nil, but if the frame is minibufferless, we can use this
122 to redirect keystrokes to a surrogate minibuffer frame when
126 to the frame itself. Whenever the Fselect_frame function is used
127 to shift from one frame to the other, any redirections to the
128 original frame are shifted to the newly selected frame; if
132 /* This frame's root window. Every frame has one.
133 If the frame has only a minibuffer window, this is it.
134 Otherwise, if the frame has a minibuffer window, this is its sibling. */
137 /* This frame's selected window.
138 Each frame has its own window hierarchy
139 and one of the windows in it is selected within the frame.
140 The selected window of the selected frame is Emacs's selected window. */
143 /* This frame's minibuffer window.
145 but only the selected frame's minibuffer window
149 /* Parameter alist of this frame.
150 These are the parameters specified when creating the frame
151 or modified with modify-frame-parameters. */
154 /* List of scroll bars on this frame.
174 /* A vector that records the entire structure of this frame's menu bar.
184 /* List of buffers viewed in this frame, for other-buffer. */
191 /* A window used to display the tool-bar of a frame. */
205 /* A buffer to hold the frame's name. We can't use the Lisp
215 /* 1 means that glyphs on this frame have been initialized so it can
224 /* Margin at the top of the frame. Used to display the tool-bar. */
234 /* Cost of inserting 1 line on this frame */
236 /* Cost of deleting 1 line on this frame */
238 /* Cost of inserting n lines on this frame */
240 /* Cost of deleting n lines on this frame */
243 /* Size of this frame, excluding fringes, scroll bars etc.,
247 /* Total size of this frame (i.e. its native window), in units of
251 /* New text height and width for pending size change.
255 /* Pixel position of the frame window (x and y offsets in root window). */
258 /* Size of the frame window in pixels. */
271 /* Border width of the frame window as known by the (X) window system. */
275 just inside the window's border. When the frame is selected,
288 /* The output method says how the contents of this frame
306 /* Total width of fringes reserved for drawing truncation bitmaps,
307 continuation bitmaps and alike. The width is in canonical char
308 units of the frame. This must currently be the case because window
313 /* The extra width (in pixels) currently allotted for fringes. */
317 /* A pointer to the kboard structure associated with this frame.
335 /* Nonzero if last attempt at redisplay on this frame was preempted. */
338 /* visible is nonzero if the frame is currently displayed; we check
339 it to see if we should bother updating the frame's contents.
343 frame becomes visible again, it must be marked as garbaged. The
349 1, then the frame is obscured - we still consider it to be
351 must take care to garbage the frame when it ceaces to be obscured
354 iconified is nonzero if the frame is currently iconified.
365 frame has been made invisible without an icon. */
373 /* Nonzero if this frame should be redrawn. */
376 /* True if frame actually has a minibuffer window on it.
377 0 if using a minibuffer window that isn't on this frame. */
380 /* 0 means, if this frame has just one window,
384 /* Non-zero if the hardware device this frame is displaying on can
389 actually display them on this frame. */
406 /* Non-0 means raise this frame to the top of the heap when selected. */
409 /* Non-0 means lower this frame to the bottom of the stack when left. */
412 /* True if frame's root window can't be split. */
415 /* If this is set, then Emacs won't change the frame name to indicate
416 the current buffer, etcetera. If the user explicitly sets the frame
421 /* Nonzero if size of some window on this frame has changed. */
424 /* Storage for messages to this frame. */
431 /* Configured width of the scroll bar, in pixels and in characters.
434 to compute the actual width on the fly, using config_scroll_bar_cols
435 and the current font width. */
439 /* The size of the extra width currently allotted for vertical
440 scroll bars in this frame, in pixels. */
443 /* The baud rate that was used to calculate costs for this frame. */
452 frame parameter. 0 means don't do gamma correction. */
455 /* Additional space to put between text lines on this frame. */
458 /* Set to non-zero in change_frame_size when size of frame changed
459 Clear the frame in clear_garbaged_frames if set. */
463 update_frame, usually after resizing the frame. */
466 /* Set to non-zero if the default face for the frame has been
471 /* Set to non-zero if this frame has already been hscrolled during
475 /* Set to non-zero when current redisplay has updated frame. */
489 typedef struct frame *FRAME_PTR;
491 #define XFRAME(p) (eassert (GC_FRAMEP(p)),(struct frame *) XPNTR (p))
494 /* Given a window, return its frame as a Lisp_Object. */
495 #define WINDOW_FRAME(w) (w)->frame
497 /* Test a frame for particular kinds of display methods. */
504 /* FRAME_WINDOW_P tests whether the frame is a window, and is
520 /* Nonzero if frame F is still alive (not deleted). */
523 /* Nonzero if frame F is a minibuffer-only frame. */
527 /* Nonzero if frame F contains a minibuffer window.
531 /* Pixel height of frame F, including non-toolkit menu bar and
535 /* Pixel width of frame F. */
538 /* Height of frame F, measured in canonical lines, including
542 /* Width of frame F, measured in canonical character columns,
546 /* Number of lines of frame F used for menu bar.
552 /* Nonzero if this frame should display a tool bar
560 /* Number of lines of frame F used for the tool-bar. */
565 /* Lines above the top-most window in frame F. */
570 /* Nonzero if this frame should display a menu bar
580 /* Nonzero if frame F is currently visible but hidden. */
583 /* Nonzero if frame F is currently iconified. */
591 /* Nonzero means do not allow splitting this frame's window. */
597 /* Nonzero if a size change has been requested for frame F
602 /* The minibuffer window of frame F, if it has one; otherwise nil. */
605 /* The root window of the window tree of frame F. */
608 /* The currently selected window of the window tree of frame F. */
619 /* Nonzero if frame F supports scroll bars.
621 on frame F. */
624 /* This frame slot says whether scroll bars are currently enabled for frame F,
634 /* Width that a scroll bar in frame F should have, if there is one.
639 /* Width that a scroll bar in frame F should have, if there is one.
644 /* Width of a scroll bar in frame F, measured in columns (characters),
646 the right in this frame, or there are no scroll bars, value is 0. */
653 /* Width of a left scroll bar in frame F, measured in pixels */
660 /* Width of a scroll bar in frame F, measured in columns (characters),
662 the left in this frame, or there are no scroll bars, value is 0. */
669 /* Width of a right scroll bar area in frame F, measured in pixels */
676 /* Actual width of a scroll bar in frame F, measured in columns. */
683 /* Actual width of a scroll bar area in frame F, measured in pixels. */
690 /* Total width of frame F, in columns (characters),
691 including the width used by scroll bars if any. */
695 /* Set the width of frame F to VAL.
696 VAL is the width of a full-frame window,
703 /* Given a value WIDTH for frame F's nominal width,
706 #define FRAME_TOTAL_COLS_ARG(f, width) \
707 ((width) \
716 /* Nonzero if frame F has scroll bars. */
729 /* Return a pointer to the face cache of frame F. */
733 /* Return the size of message_buf of the frame F. We multiply the
734 width of the frame by 4 because multi-byte form may require at most
739 /* Emacs's redisplay code could become confused if a frame's
740 visibility changes at arbitrary times. For example, if a frame is
744 complete, which should never happen. The next time the frame
751 clear the frame's visibility and iconification flags, they just set
759 Also, if a frame used to be invisible, but has just become visible,
777 loop will set FRAME_VAR, a Lisp_Object, to each frame in
795 extern struct frame *last_nonminibuf_frame;
797 extern struct frame *make_terminal_frame P_ ((void));
798 extern struct frame *make_frame P_ ((int));
800 extern struct frame *make_minibuffer_frame P_ ((void));
801 extern struct frame *make_frame_without_minibuffer P_ ((Lisp_Object,
805 extern int other_visible_frames P_ ((struct frame *));
815 /* The currently selected frame. */
819 /* Value is a pointer to the selected frame. If the selected frame
826 : (abort (), (struct frame *) 0))
834 /* Canonical y-unit on frame F.
835 This value currently equals the line height of the frame (which is
840 /* Canonical x-unit on frame F.
841 This value currently equals the average width of the default font of F. */
845 /* Space glyph width of the default font of frame F. */
850 /* Pixel width of areas used to display truncation marks, continuation
855 /* Total width of fringes reserved for drawing truncation bitmaps,
856 continuation bitmaps and alike. The width is in canonical char
857 units of the frame. This must currently be the case because window
863 /* Pixel-width of the left and right fringe. */
868 /* Total width of fringes in pixels. */
874 /* Pixel-width of internal border lines */
897 y-unit are fractions of FRAME_LINE_HEIGHT of a frame. Both are
900 /* Convert canonical value X to pixels. F is the frame whose
901 canonical char width is to be used. X must be a Lisp integer or
909 /* Convert canonical value Y to pixels. F is the frame whose
918 /* Convert pixel-value X to canonical units. F is the frame whose
919 canonical character width is to be used. X is a C integer. Result
920 is a Lisp float if X is not a multiple of the canon width,
928 /* Convert pixel-value Y to canonical units. F is the frame whose
930 Result is a Lisp float if Y is not a multiple of the canon width,
945 Return the upper/left pixel position of the character cell on frame F
956 /* Return the pixel width/height of frame F if it has
982 frame F? */
984 #define FRAME_PIXEL_WIDTH_TO_TEXT_COLS(f, width) \
985 (FRAME_PIXEL_X_TO_COL (f, ((width) \
1051 extern void x_set_scroll_bar_default_width P_ ((struct frame *));
1052 extern void x_set_offset P_ ((struct frame *, int, int, int));
1053 extern void x_wm_set_icon_position P_ ((struct frame *, int, int));
1055 extern Lisp_Object x_new_font P_ ((struct frame *, char *));
1056 extern Lisp_Object x_new_fontset P_ ((struct frame *, char *));
1059 /* These are in frame.c */
1067 extern void x_fullscreen_adjust P_ ((struct frame *f, int *, int *,
1070 extern void x_set_frame_parameters P_ ((struct frame *, Lisp_Object));
1071 extern void x_report_frame_params P_ ((struct frame *, Lisp_Object *));
1073 extern void x_set_fullscreen P_ ((struct frame *, Lisp_Object, Lisp_Object));
1074 extern void x_set_line_spacing P_ ((struct frame *, Lisp_Object, Lisp_Object));
1075 extern void x_set_screen_gamma P_ ((struct frame *, Lisp_Object, Lisp_Object));
1076 extern void x_set_font P_ ((struct frame *, Lisp_Object, Lisp_Object));
1077 extern void x_set_fringe_width P_ ((struct frame *, Lisp_Object, Lisp_Object));
1078 extern void x_set_border_width P_ ((struct frame *, Lisp_Object, Lisp_Object));
1079 extern void x_set_internal_border_width P_ ((struct frame *, Lisp_Object,
1081 extern void x_set_visibility P_ ((struct frame *, Lisp_Object, Lisp_Object));
1082 extern void x_set_autoraise P_ ((struct frame *, Lisp_Object, Lisp_Object));
1083 extern void x_set_autolower P_ ((struct frame *, Lisp_Object, Lisp_Object));
1084 extern void x_set_unsplittable P_ ((struct frame *, Lisp_Object, Lisp_Object));
1085 extern void x_set_vertical_scroll_bars P_ ((struct frame *, Lisp_Object,
1087 extern void x_set_scroll_bar_width P_ ((struct frame *, Lisp_Object,
1090 extern Lisp_Object x_icon_type P_ ((struct frame *));
1092 extern int x_figure_window_size P_ ((struct frame *, Lisp_Object, int));