aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (struct mac_output): New member `internal_border_width'.YAMAMOTO Mitsuharu2007-03-051-0/+3
|
* (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: NewYAMAMOTO Mitsuharu2007-02-241-0/+3
| | | | member `min_handle'.
* (x_display_info_for_display): Remove extern.YAMAMOTO Mitsuharu2007-02-231-11/+12
| | | | | (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit value to be unpacked to 32-bit on LP64 model.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.YAMAMOTO Mitsuharu2007-01-121-4/+2
| | | | (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
* (FONT_MAX_WIDTH): Remove unused macro.YAMAMOTO Mitsuharu2007-01-091-5/+5
| | | | | | (XCreateGC): Change type in extern. (XDrawLine): Rename from mac_draw_line_to_pixmap. (mac_quit_char_key_p) [MAC_OSX]: Add extern.
* (MAC_EMACS_CREATOR_CODE): New enumerator.YAMAMOTO Mitsuharu2007-01-051-0/+5
|
* (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.YAMAMOTO Mitsuharu2006-12-151-0/+1
|
* (create_apple_event_from_event_ref)YAMAMOTO Mitsuharu2006-10-311-6/+7
| | | | | | (create_apple_event_from_drag_ref, xrm_merge_string_database) (xrm_get_resource, xrm_get_preference_database): Add const qualifier to arguments in externs.
* (struct mac_output): Remove member menubar_active.YAMAMOTO Mitsuharu2006-09-191-5/+5
| | | | | (do_menu_choice): Remove extern. (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
* (struct mac_output) [TARGET_API_MAC_CARBON]: Remove memberYAMAMOTO Mitsuharu2006-08-271-12/+5
| | | | | | | file_name. (FRAME_FILE_NAME): Remove macro. (install_window_handler, create_apple_event_from_event_ref): Return OSStatus instead of OSErr.
* (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.YAMAMOTO Mitsuharu2006-06-031-0/+5
|
* (mac_font_panel_visible_p, mac_show_hide_font_panel): Add externs.YAMAMOTO Mitsuharu2006-05-291-0/+2
|
* (TYPE_FILE_NAME): Change from macro to enumerator.YAMAMOTO Mitsuharu2006-05-241-2/+44
| | | | | | | | | | | (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator. (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise. (gestaltSystemVersionMajor, gestaltSystemVersionMinor) (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]: Likewise. (typeUTF8Text, kEventParamWindowMouseLocation) [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise. (x_get_focus_frame, mac_ae_put_lisp): Add externs.
* (mac_set_font_info_for_selection): Add 2nd and 3rd args in extern.YAMAMOTO Mitsuharu2006-05-101-1/+1
|
* (mac_set_font_info_for_selection): Add extern.YAMAMOTO Mitsuharu2006-05-071-0/+1
|
* (mac_make_lispy_event_code): Remove extern.YAMAMOTO Mitsuharu2006-05-051-2/+5
| | | | | | | (mac_post_mouse_moved_event): Add extern. (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to `const AEDesc *' in externs. (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
* (mac_update_title_bar): Add extern.YAMAMOTO Mitsuharu2006-05-011-0/+8
| | | | | (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'. (FRAME_FILE_NAME): New macro.
* (x_set_mouse_position, x_set_mouse_pixel_position)YAMAMOTO Mitsuharu2006-04-121-0/+28
| | | | | | | | | (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources) (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC) (do_menu_choice, have_menus_p, x_real_positions) (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width) (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar) (free_frame_menubar): Add externs.
* (struct mac_output) [USE_CG_DRAWING]: New member cg_context.YAMAMOTO Mitsuharu2006-03-121-0/+8
| | | | (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
* (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)YAMAMOTO Mitsuharu2006-03-061-0/+4
| | | | (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
* (unibyte_display_via_language_environment): DeleteKenichi Handa2006-02-071-3/+0
| | | | extern.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (TYPE_FILE_NAME): New define.YAMAMOTO Mitsuharu2005-12-241-2/+2
| | | | (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
* (struct mac_output): Remove unused memberYAMAMOTO Mitsuharu2005-12-211-3/+0
| | | | menu_command_in_progress.
* (create_apple_event_from_event_ref): Remove 5th argument from extern.YAMAMOTO Mitsuharu2005-12-191-1/+1
|
* (mac_make_lispy_event_code, mac_aedesc_to_lisp): Add externs.YAMAMOTO Mitsuharu2005-12-101-1/+8
| | | | | (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise. (Fmac_get_preference): Add EXFUN.
* (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]: Add prototype.YAMAMOTO Mitsuharu2005-11-231-0/+1
|
* (mac_clear_area): Add extern.YAMAMOTO Mitsuharu2005-10-161-0/+2
|
* (mac_term_init): Add types to extern.YAMAMOTO Mitsuharu2005-10-081-70/+14
| | | | | | | (struct mac_output): Remove members mWP and pending_menu_activation. Put members scroll_bar_foreground_pixel and scroll_bar_background_pixel in #if 0. (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
* (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.YAMAMOTO Mitsuharu2005-08-311-5/+0
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
|
* (struct mac_display_info): Change types of scratch_cursor_gcYAMAMOTO Mitsuharu2005-07-181-2/+5
| | | | | black_relief.gc, and white_relief.gc to GC. (XCreateGC, XParseGeometry): Move externs from macgui.h.
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: NewYAMAMOTO Mitsuharu2005-05-061-0/+6
| | | | members track_top and track_height.
* (x_clear_frame_selections): Add extern.YAMAMOTO Mitsuharu2005-04-241-0/+4
|
* (cfstring_create_with_string) [TARGET_API_MAC_CARBON]: New extern.YAMAMOTO Mitsuharu2005-04-161-5/+6
|
* (xrm_merge_string_database, xrm_get_resource)YAMAMOTO Mitsuharu2005-03-161-0/+10
| | | | | | | (xrm_get_preference_database): Add externs. [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp) (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp) (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
* (struct mac_output) [TARGET_API_MAC_CARBON]: New memberYAMAMOTO Mitsuharu2005-03-161-3/+10
| | | | | | hourglass_control. (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines. (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
* (install_window_handler, remove_window_handler)YAMAMOTO Mitsuharu2005-03-041-0/+7
| | | | | (posix_pathname_to_fsspec, fsspec_to_posix_pathname) (mac_clear_font_name_table): New externs.
* * macfns.c (x_set_foreground_color, x_set_background_color): SyncSteven Tamm2005-01-161-0/+2
| | | | | | | with xfns.c. (mac_window, x_create_tip_frame): Use XSetWindowBackground. * macterm.c (XSetBackground, XSetWindowBackground): New functions. * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
* * dispextern.h: Change HAVE_CARBON to MAC_OS.Steven Tamm2004-12-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (struct glyph_string): Likewise. * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of mac_initialize. * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name): Change TARGET_API_MAC_CARBON to HAVE_CARBON. * fns.c (vector): Change MAC_OSX to MAC_OS. * frame.c (x_set_frame_parameters, x_report_frame_params) (x_set_fullscreen): Remove #ifndef HAVE_CARBON. (x_set_border_width, Vdefault_frame_scroll_bars): Change HAVE_CARBON to MAC_OS. * image.c [MAC_OS]: Include sys/stat.h. [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and QuickTimeComponents.h. * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern. [!MAC_OSX] (select): Use mac_wait_next_event. [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes. [!MAC_OSX] (select, run_mac_command): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (mac_clear_font_name_table): Add extern. (Fmac_clear_font_name_table): New defun. (syms_of_mac): Defsubr it. [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define. [MAC_OSX] (select_and_poll_event): New function. [MAC_OSX] (sys_select): Use it. [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function. [MAC_OSX && SELECT_USE_CFSOCKET] (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and RunLoop for simultaneously monitoring two kinds of inputs, window events and process outputs, without periodically polling. * macfns.c (mac_initialized): Remove extern. (stricmp): Put in #if 0. All callers changed to use xstricmp in xfaces.c. (strnicmp): Decrement `n' at the end of each loop, not the beginning. (check_mac): Use the term "Mac native windows" instead of "Mac OS". (check_x_display_info, x_display_info_for_name): Sync with xfns.c. (mac_get_rdb_resource): New function (from w32reg.c). (x_get_string_resource): Use it. (install_window_handler): Add extern. (mac_window): New function. (Fx_create_frame): Use it instead of make_mac_frame. Set parameter for Qfullscreen. Call x_wm_set_size_hint. (Fx_open_connection, Fx_close_connection): New defuns. (syms_of_macfns): Defsubr them. (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add kWindowNoUpdatesAttribute to the window attribute. (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow. (x_create_tip_frame): Don't call ShowWindow. (Fx_show_tip): Call ShowWindow. (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (mac_frame_parm_handlers): Set handlers for Qfullscreen. (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0. * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h. (Window): Typedef to WindowPtr and move outside `#if TARGET_API_MAC_CARBON'. (XSizeHints): New struct. * macterm.c (x_update_begin, x_update_end) [TARGET_API_MAC_CARBON]: Disable screen updates during update of a frame. (x_draw_glyph_string_background, x_draw_glyph_string_foreground) [MAC_OS8]: Use XDrawImageString/XDrawImageString16. (construct_mouse_click): Put in #if 0. (x_check_fullscreen, x_check_fullscreen_move): Remove decls. (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (activate_scroll_bars, deactivate_scroll_bars) [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl. (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window if the position is neither user-specified nor program-specified. (x_free_frame_resources): Free size_hints. (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints. (mac_clear_font_name_table): New function. (mac_do_list_fonts): Initialize font_name_table if needed. (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT around mac_do_list_fonts. (mac_unload_font): New function. (x_load_font): Add BLOCK_INPUT around XLoadQueryFont. (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations and definitions with #if TARGET_API_MAC_CARBON. [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl. (install_window_handler): Add decl. (do_window_update): Add BeginUpdate/EndUpdate for the tooltip window. Use UpdateControls. Get the rectangle that should be updated and restrict the target of expose_frame to it. (do_grow_window): Set minimum height/width according to size_hints. (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow. (do_zoom_window): Don't use x_set_window_size. [USE_CARBON_EVENTS] (mac_handle_window_event): New function. (install_window_handler): New function. [!USE_CARBON_EVENTS] (mouse_region): New variable. [!USE_CARBON_EVENTS] (mac_wait_next_event): New function. (XTread_socket) [USE_CARBON_EVENTS]: Move call to GetEventDispatcherTarget inside BLOCK_INPUT. (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event. Update mouse_region when mouse is moved. (make_mac_frame): Remove. (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize mouse pointer shapes. Change values of f->left_pos and f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't call ShowWindow. (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from Vinvocation_name and Vsystem_name. (mac_make_rdb): New function (from w32term.c). (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has already been opened. Don't pass argument to mac_initialize_display_info. Don't set dpyinfo->height/width. Add entries to x_display_list and x_display_name_list. (x_delete_display): New function. (mac_initialize): Don't call mac_initialize_display_info. (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide. * macterm.h (check_mac): Add extern. (struct mac_output): New member size_hints. (FRAME_SIZE_HINTS): New macro. (mac_unload_font): Add extern. * xdisp.c (expose_window, expose_frame): Remove kludges for Mac. * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
* * macterm.h (cfstring_create_with_utf8_cstring): Added prototype.Steven Tamm2004-12-031-0/+4
| | | | | | | | | | | | | * image.c (image_load_quartz2d): Use cfstring_create_with_utf8_cstring * macmenu.c (add_menu_item): Use cfstring_create_with_utf8_cstring * macfns.c (x_set_name, x_set_title): Use cfstring_create_with_utf8_cstring (Fx_file_dialog): Use cfstring_create_with_utf8_cstring and use constant CFRefs instead of creating them each time for labels. * mac.c (cfstring_create_with_utf8_cstring): Added to prevent crashes with invalid characters.
* Various fixes to support USE_LSB_TAG with carbon emacs. Mostly fixingSteven Tamm2004-05-141-2/+12
| | | | prototypes and confusions between pointers and lisp objects
* * macterm.h (x_list_fonts, x_get_font_info, x_load_font)Kim F. Storm2004-03-111-0/+22
| | | | | | | (x_query_font, x_find_ccl_program, x_set_window_size) (x_make_frame_visible, mac_initialize, XCreatePixmap) (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground) (mac_draw_line_to_pixmap): Add prototypes.
* Image consolidation:Kim F. Storm2004-03-111-0/+1
| | | | | (struct mac_bitmap_record): Add file member. Not currently used, but simplifies code sharing.
* Inserting Yamomotosan's changes for MacOSX image support, better supportSteven Tamm2004-02-261-30/+16
| | | | of Asian fonts, and some long awaited header cleanup and centralization.
* Add arch taglinesMiles Bader2003-09-011-0/+2
|
* (struct mac_output): Move members left_pos, top_pos,Kim F. Storm2003-05-241-120/+0
| | | | | | | | | | | | | | | | | | border_width, pixel_height, pixel_width, line_height, internal_border_width, vertical_scroll_bar_extra, left_fringe_width, right_fringe_width, fringe_cols, fringes_extra, win_gravity, size_hint_flags, want_fullscreen, x_pixels_diff, y_pixels_diff to struct frame (frame.h). (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h. (FRAME_DEFAULT_FONT_WIDTH): Remove macro. (PIXEL_WIDTH, PIXEL_HEIGHT) (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH) (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to frame.h and renamed [see frame.h changes]. (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH) (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL) (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h and renamed [see frame.h changes].
* Fix build on Mac OS X with Carbon.Andrew Choi2003-04-011-0/+8
|