aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32fns.c
Commit message (Collapse)AuthorAgeFilesLines
...
* [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.Jason Rumney2002-03-231-18/+2
|
* (Fx_create_frame): Enable tool-bar when images are supported.Jason Rumney2002-03-221-1/+6
|
* (x_set_cursor_color): Set cursor_gc as well.Jason Rumney2002-03-221-10/+29
| | | | | (clear_image_cache): Block input, fix logic, clear matrices in all frames that share this cache.
* (x_clear_image_1): Disable color table code.Jason Rumney2002-03-211-0/+2
|
* (QCtype): Remove duplicate declaration andKim F. Storm2002-03-211-4/+2
| | | | initialization (is now declared in process.c).
* (x_set_cursor_color): Set foreground of cursor, not frame.Jason Rumney2002-03-201-95/+232
| | | | | | | | | (Fimage_size, Fimage_mask_p, XPutPixel): New functions. (four_corners_best, x_clear_image_1, x_clear_image) (x_alloc_image_color, postprocess_image) (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image) (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows. (init_xfns, syms_of_w32fns): Initialize image functions and constants.
* (w32_to_all_x_charsets): Return correct type in startup case.Jason Rumney2002-03-161-1/+2
|
* (Fx_display_color_cells): Force 24+ bit color depths to 24-bit.Juanma Barranquero2002-03-081-1/+3
|
* (w32_wnd_proc) <WM_TIMER>: Fix last change.Jason Rumney2002-02-231-0/+1
|
* (mouse_move_timer, mouse_button_timer): Initialize.Jason Rumney2002-02-231-9/+36
| | | | | | | | | | (menu_free_timer): New variable. (MENU_FREE_ID, MENU_FREE_DELAY): New constants. (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer. <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a menu command is in progress. <WM_COMMAND>: Set the menu_command_in_progress flag. Kill any menu_free_timer that is running.
* *** empty log message ***Jason Rumney2002-02-181-18/+110
|
* (w32_load_system_font): Prevent Cleartype fonts from loading.Jason Rumney2002-02-091-0/+18
| | | | (Fx_show_tip): Ensure tip frames are above other topmost windows.
* (enum_font_cb2): Don't let charsets unknown to WindowsJason Rumney2002-02-091-5/+7
| | | | match each other.
* (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.Jason Rumney2002-01-241-8/+6
| | | | Combine the regions returned by BeginPaint and GetUpdateRect.
* (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.Jason Rumney2002-01-231-3/+5
|
* (w32_visible_system_caret_hwnd): New static variable.Jason Rumney2002-01-201-3/+34
| | | | | | | (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it. <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if the user requests it. Use system default width when creating. <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
* (w32_load_system_font, w32_to_x_charset): Use strnicmpJason Rumney2002-01-201-87/+230
| | | | | | | | | | | | | in place of stricmp. (w32_list_synthesized_fonts): Removed. (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions. (struct enumfont_t): New element; list. (enum_font_cb2): List all style and charset variations of a font. (Fw32_select_font): New optional argument; include_proportional. Exclude vertical fonts. Exclude proportional fonts unless include_proportional is non-nil. (w32_enable_synthesized_fonts): Change to a boolean. (Fw32_send_sys_command): Doc fix.
* (Fx_create_frame): Bind redisplay-dont-pause aroundJason Rumney2002-01-191-0/+4
| | | | call to face-set-after-frame-default.
* (w32_pass_extra_mouse_buttons_to_system): New user option.Jason Rumney2002-01-131-2/+23
| | | | | (syms_of_w32fns): DEFVAR_BOOL it. (w32_wnd_proc): Handle new "XBUTTON" messages.
* (compute_tip_xy): If tooltip won't fit on the screenJason Rumney2002-01-051-28/+32
| | | | | | to the left or to the right of the pointer, put it against the left screen edge. (x_frame_parms): Add missing braces around initializer.
* (x_report_frame_params): Makes the scroll-bar-width frame parameter haveEli Zaretskii2001-12-131-0/+4
| | | | a numeric value all the time.
* (x_report_frame_params): Return actual fringe widths.Kim F. Storm2001-12-051-0/+4
|
* (trackmouse_window, track_mouse_event_fn): New vars.Jason Rumney2001-12-011-6/+51
| | | | | | | (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame. <WM_EXITMENULOOP>: Free menu strings. <WM_MOUSELEAVE>: Stop tracking mouse. (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
* Merged fringe width related changes from xfns.c.Kim F. Storm2001-12-011-8/+26
|
* (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.Jason Rumney2001-11-281-11/+8
| | | | (Fx_show_tip): Don't subtract last width from row width.
* (x_create_tip_frame): Set frame's fringes_extra to 0.Jason Rumney2001-11-251-6/+14
| | | | | (Fx_show_tip): Block input during frame creation. (Fx_show_tip, Fx_hide_tip): Enable.
* (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.Jason Rumney2001-11-241-27/+51
| | | | | | | | | <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction. (my_create_tip_window, Fx_show_tip): Adjust size for external border. (my_create_tip_window): Assign tip_window. (x_create_tip_frame): Use same defaults as X. (compute_tip_xy): Remove unused variable. Use full screen width. (Fx_show_tip): Do not double height. Call ShowWindow directly.
* (x_window_to_frame): Remove irrelevant TODO comment.Jason Rumney2001-11-221-77/+100
| | | | | | | (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly. (my_create_tip_window): New function. (x_create_tip_frame, compute_tip_xy): Adapt for Windows. (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
* (Vw32_system_coding_system): Remove.Jason Rumney2001-11-201-9/+2
| | | | (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
* (x_set_frame_parameters): Avoid infinite recursion forJason Rumney2001-11-181-115/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some items. (x_set_internal_border_width): Set frame garbaged when window doesn't exist yet. (Fx_create_frame): Accept zero tool_bar_button_relief. (x_clear_image_1, four_corners_best, image_background) (image_background_transparent): New functions. (xpm_format, png_format, jpeg_format, tiff_format, gif_format) (gs_format): Add `:background' entry. (lookup_image): Set IMG's background color if specified. (pbm_load, xbm_load_image, png_load): Set IMG's background field when appropriate. (x_clear_image_1): Reset `background_valid' and `background_transparent_valid' fields. (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of calculating it here. Set IMG's background_transparent field. (enum xpm_keyword_index): Add XPM_BACKGROUND. (enum png_keyword_index): Add PNG_BACKGROUND. (enum jpeg_keyword_index): Add JPEG_BACKGROUND. (enum tiff_keyword_index): Add TIFF_BACKGROUND. (enum gif_keyword_index): Add GIF_BACKGROUND. (enum gs_keyword_index): Add GS_BACKGROUND. (pbm_load, png_load, jpeg_load, tiff_load, gif_load): Pre-calculate image background color where necessary. (x_create_x_image_and_pixmap, xbm_load, gs_load): Use display info's n_cbits entry for screen depth. (Fx_show_tip): Remove unused variables `buffer', `top', `left', `max_width' and `max_height'.
* Fringe cleanup.Kim F. Storm2001-11-161-2/+2
| | | | Use renamed symbols.
* Doc fixes.Jason Rumney2001-11-131-7/+8
|
* (Fx_synchronize): Reindent.Pavel Janík2001-11-131-3/+3
|
* Change doc-string comments to `new style'. [w/`doc:' keyword]. Doc fixes.Jason Rumney2001-11-131-382/+363
| | | | | Don't define max. (Fx_open_connection): Only execute once.
* (enum_font_cb2): Use leading @ on face name to detectJason Rumney2001-11-101-5/+11
| | | | | | vertical fonts. Allow them if face name is explicitly specified. Do not give up if we find a font that cannot be converted to an xlfd.
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-52/+52
|
* (w32_to_x_charset): Increase size of XLFD charset buffer.Jason Rumney2001-10-301-9/+12
| | | | (enum_font_cb2): Ignore fonts with vertical orientation.
* (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.Jason Rumney2001-10-271-0/+26
| | | | | <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor position using the system caret.
* (Fx_file_dialog): Pass a filter to GetOpenFileName.Jason Rumney2001-10-211-379/+875
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync with xfns.c: (x_laplace_read_row, x_laplace_write_row): Removed. (postprocess_image): New function. (lookup_image): Call it for all image types except PostScript. (x_kill_gs_process): Call postprocess_image. (tiff_error_handler, tiff_warning_handler): New functions. (tiff_load): Install them as handlers. (x_kill_gs_process): Recognize if someone has cleared the image cache under us. (valid_image_p): Protect better against invalid image specifications. Previous code could signal an error. (Fx_hide_tip, Fshow_tip): Doc fix. (Fv_max_tooltip_size): New variable. (syns_of_xfns): DEFVAR_LISP it. (Fx_show_tip): Add parameter TEXT. Set the tip frame's root window buffer to *tip* right after creating the frame. Set frame's window_width. Use a maximum tooltip size specified by Vx_max_tooltip_size, if that has valid contents. (compute_tip_xy): Add parameters WIDTH and HEIGHT. Make sure the tooltip is completely visible. (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil. (Fx_create_frame): Adjust the frame's height for presence of the tool bar before calling x_figure_window_size. (x_set_tool_bar_lines): Clear the tool bar window's current matrix when the window gets smaller. (x_set_foreground_color): Set frame's cursor_pixel. (x_set_foreground_color, x_set_background_color): Cleaned up. (x_set_font): Handle case of x_new_fontset returning the same name as before, although there was a change in fontsets.
* (w32_load_system_font): Cache codepage for font, inAndrew Innes2001-10-171-1/+7
| | | | font_info.charset field.
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-7/+7
| | | | with lisp system changes.
* Update calls to openp.Stefan Monnier2001-10-121-2/+2
|
* (x_to_w32_color): Fix argument to alloca.Andrew Innes2001-10-041-16/+57
| | | | | | | | | | | | | | | (w32_load_system_font): Don't believe what GetLanguageFontInfo says; query codepage info directly to determine if font is double byte. (x_to_w32_charset): Handle private format for unknown charsets. Handle wildcards in charset spec, by ignoring them. (w32_codepage_for_font): Fix argument to alloca. Don't remove "*-" prefix from charset. (x_to_w32_font): Enlarge remainder array for safety. Specifically handle the truncated font spec form constructed by font_list_1, so that we correctly identify the charset fields. Don't remove "*-" prefix from charset. (w32_list_synthesized_fonts): Fix argument to alloca.
* (w32_createwindow): Undo last change.Andrew Innes2001-09-051-1/+1
|
* (w32_createwindow): Remove the WS_CLIPCHILDREN styleAndrew Innes2001-09-041-7/+17
| | | | | | | | from Emacs frames, so that calls to GetClipBox in w32term.c correctly report when part of a frame is visible (including scrollbars, etc). This prevents repeated redrawing of frames when only a scrollbar is visible. (w32_wnd_proc): Add more frame information to debugging output.
* (w32_to_x_font): Change prototype to fit the declaration.Eli Zaretskii2001-05-121-2/+4
| | | | (x_to_w32_font): Add prototype.
* (Fx_create_frame): Clear Vwindow_list.Gerd Moellmann2001-03-061-0/+5
|
* (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINESJason Rumney2001-02-231-7/+0
| | | | to height unconditionally.
* Rename everything containing *busy_cursor* and similarGerd Moellmann2001-02-211-80/+82
| | | | | | | to *hourglass*. (syms_of_w32fns): Rename x-busy-pointer-shape to x-hourglass-pointer-shape, display-busy-cursor to display-hourglass, busy-cursor-delay to hourglass-delay.
* (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing theAndrew Innes2001-02-141-0/+4
| | | | Emacs frame above the screen size.