aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-06-14 08:39:40 +0000
committerYAMAMOTO Mitsuharu2007-06-14 08:39:40 +0000
commita28c8af38985cd56829f6d38c8913b311d95df72 (patch)
tree175096af91d6b5fd8a8db872a19bf295f8cfbe60 /src
parentc6829f81ad9bca81d6b688c01783e96447bbcd4e (diff)
downloademacs-a28c8af38985cd56829f6d38c8913b311d95df72.tar.gz
emacs-a28c8af38985cd56829f6d38c8913b311d95df72.zip
(struct mac_output) [USE_MAC_TOOLBAR]: New member
toolbar_win_gravity. (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: Add externs.
Diffstat (limited to 'src')
-rw-r--r--src/macterm.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/macterm.h b/src/macterm.h
index 7984ff2b970..f6ab9f70449 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -333,6 +333,16 @@ struct mac_output
333 /* Hints for the size and the position of a window. */ 333 /* Hints for the size and the position of a window. */
334 XSizeHints *size_hints; 334 XSizeHints *size_hints;
335 335
336#if USE_MAC_TOOLBAR
337 /* This variable records the gravity value of the window position if
338 the window has an external tool bar when it is created. The
339 position of the window is adjusted using this information when
340 the tool bar is first redisplayed. Once the tool bar is
341 redisplayed, it is set to 0 in order to avoid further
342 adjustment. */
343 int toolbar_win_gravity;
344#endif
345
336#if USE_CG_DRAWING 346#if USE_CG_DRAWING
337 /* Quartz 2D graphics context. */ 347 /* Quartz 2D graphics context. */
338 CGContextRef cg_context; 348 CGContextRef cg_context;
@@ -441,6 +451,12 @@ struct scroll_bar {
441 being dragged, this is Qnil. */ 451 being dragged, this is Qnil. */
442 Lisp_Object dragging; 452 Lisp_Object dragging;
443 453
454#ifdef MAC_OSX
455 /* t if the background of the fringe that is adjacent to a scroll
456 bar is extended to the gap between the fringe and the bar. */
457 Lisp_Object fringe_extended_p;
458#endif
459
444#ifdef USE_TOOLKIT_SCROLL_BARS 460#ifdef USE_TOOLKIT_SCROLL_BARS
445 /* The position and size of the scroll bar handle track area in 461 /* The position and size of the scroll bar handle track area in
446 pixels, relative to the frame. */ 462 pixels, relative to the frame. */
@@ -651,6 +667,10 @@ extern void mac_prepare_for_quickdraw P_ ((struct frame *));
651#endif 667#endif
652extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); 668extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *));
653extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); 669extern int mac_quit_char_key_p P_ ((UInt32, UInt32));
670#if USE_MAC_TOOLBAR
671extern void update_frame_tool_bar P_ ((FRAME_PTR f));
672extern void free_frame_tool_bar P_ ((FRAME_PTR f));
673#endif
654 674
655#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 675#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
656#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 676#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0