aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsterm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsterm.h')
-rw-r--r--src/nsterm.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index f419391a11e..bc535b47d97 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -1,5 +1,5 @@
1/* Definitions and headers for communication with NeXT/Open/GNUstep API. 1/* Definitions and headers for communication with NeXT/Open/GNUstep API.
2 Copyright (C) 1989, 1993, 2005, 2008-2011 Free Software Foundation, Inc. 2 Copyright (C) 1989, 1993, 2005, 2008-2012 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -362,7 +362,7 @@ extern EmacsMenu *mainMenu, *svcsMenu, *dockMenu;
362#endif 362#endif
363 363
364#ifndef NS_HAVE_NSINTEGER 364#ifndef NS_HAVE_NSINTEGER
365#if defined(__LP64__) && __LP64__ 365#if defined (__LP64__) && __LP64__
366typedef double CGFloat; 366typedef double CGFloat;
367typedef long NSInteger; 367typedef long NSInteger;
368typedef unsigned long NSUInteger; 368typedef unsigned long NSUInteger;
@@ -416,8 +416,8 @@ struct ns_bitmap_record
416/* this to map between emacs color indices and NSColor objects */ 416/* this to map between emacs color indices and NSColor objects */
417struct ns_color_table 417struct ns_color_table
418{ 418{
419 unsigned int size; 419 ptrdiff_t size;
420 unsigned int avail; 420 ptrdiff_t avail;
421#ifdef __OBJC__ 421#ifdef __OBJC__
422 NSColor **colors; 422 NSColor **colors;
423 NSMutableSet *empty_indices; 423 NSMutableSet *empty_indices;
@@ -447,7 +447,7 @@ struct nsfont_info
447{ 447{
448 struct font font; 448 struct font font;
449 449
450 char *name; /* postscript name, uniquely identifies on NS systems */ 450 char *name; /* PostScript name, uniquely identifies on NS systems */
451 float width; /* this and following metrics stored as float rather than int */ 451 float width; /* this and following metrics stored as float rather than int */
452 float height; 452 float height;
453 float underpos; 453 float underpos;
@@ -467,11 +467,10 @@ struct nsfont_info
467#endif 467#endif
468 char bold, ital; /* convenience flags */ 468 char bold, ital; /* convenience flags */
469 char synthItal; 469 char synthItal;
470 float voffset; /* mean of ascender/descender offsets */
471 XCharStruct max_bounds; 470 XCharStruct max_bounds;
472 /* we compute glyph codes and metrics on-demand in blocks of 256 indexed 471 /* we compute glyph codes and metrics on-demand in blocks of 256 indexed
473 by hibyte, lobyte */ 472 by hibyte, lobyte */
474 unsigned short **glyphs; /* map unicode index to glyph */ 473 unsigned short **glyphs; /* map Unicode index to glyph */
475 struct font_metrics **metrics; 474 struct font_metrics **metrics;
476}; 475};
477 476
@@ -761,6 +760,7 @@ extern void ns_release_object (void *obj);
761extern void ns_retain_object (void *obj); 760extern void ns_retain_object (void *obj);
762extern void *ns_alloc_autorelease_pool (); 761extern void *ns_alloc_autorelease_pool ();
763extern void ns_release_autorelease_pool (); 762extern void ns_release_autorelease_pool ();
763extern const char *ns_get_defaults_value ();
764 764
765/* in nsmenu */ 765/* in nsmenu */
766extern void update_frame_tool_bar (FRAME_PTR f); 766extern void update_frame_tool_bar (FRAME_PTR f);
@@ -795,6 +795,10 @@ extern void x_set_tool_bar_lines (struct frame *f,
795 Lisp_Object oldval); 795 Lisp_Object oldval);
796extern void x_activate_menubar (struct frame *); 796extern void x_activate_menubar (struct frame *);
797extern void free_frame_menubar (struct frame *); 797extern void free_frame_menubar (struct frame *);
798extern void x_free_frame_resources (struct frame *);
799
800#define NSAPP_DATA2_RUNASSCRIPT 10
801extern void ns_run_ascript (void);
798 802
799extern void ns_init_paths (void); 803extern void ns_init_paths (void);
800extern void syms_of_nsterm (void); 804extern void syms_of_nsterm (void);
@@ -825,6 +829,13 @@ extern unsigned long ns_get_rgb_color (struct frame *f,
825 float r, float g, float b, float a); 829 float r, float g, float b, float a);
826extern NSPoint last_mouse_motion_position; 830extern NSPoint last_mouse_motion_position;
827 831
832/* From nsterm.m, needed in nsfont.m. */
833#ifdef __OBJC__
834extern void
835ns_draw_text_decoration (struct glyph_string *s, struct face *face,
836 NSColor *defaultCol, CGFloat width, CGFloat x);
837#endif
838
828#ifdef NS_IMPL_GNUSTEP 839#ifdef NS_IMPL_GNUSTEP
829extern char gnustep_base_version[]; /* version tracking */ 840extern char gnustep_base_version[]; /* version tracking */
830#endif 841#endif