}
static int
-note_mouse_movement (struct frame *frame, CGFloat x, CGFloat y)
+ns_note_mouse_movement (struct frame *frame, CGFloat x, CGFloat y)
/* ------------------------------------------------------------------------
Called by EmacsView on mouseMovement events. Passes on
to emacs mainstream code if we moved off of a rect of interest
last_mouse_window = window;
}
- if (!note_mouse_movement (emacsframe, pt.x, pt.y))
+ if (!ns_note_mouse_movement (emacsframe, pt.x, pt.y))
help_echo_string = previous_help_echo_string;
XSETFRAME (frame, emacsframe);
{
/* NOTE: help_echo_{window,pos,object} are set in xdisp.c
(note_mouse_highlight), which is called through the
- note_mouse_movement () call above. */
+ ns_note_mouse_movement () call above. */
any_help_event_p = YES;
gen_help_event (help_echo_string, frame, help_echo_window,
help_echo_object, help_echo_pos);
and window input. */
static int
-construct_console_modifiers (void)
+w32_construct_console_modifiers (void)
{
int mods;
int mods;
/* Convert to emacs modifiers. */
- mods = w32_kbd_mods_to_emacs (construct_console_modifiers (), wparam);
+ mods = w32_kbd_mods_to_emacs (w32_construct_console_modifiers (), wparam);
return mods;
}
if (count)
{
W32Msg wmsg;
- DWORD console_modifiers = construct_console_modifiers ();
+ DWORD console_modifiers = w32_construct_console_modifiers ();
int *b = buf, strip_ExtraMods = 1, hairy = 0;
const char *type_CtrlAlt = NULL;
/* If not defined as a function key, change it to a WM_CHAR message. */
if (wParam > 255 || !lispy_function_keys[wParam])
{
- DWORD modifiers = construct_console_modifiers ();
+ DWORD modifiers = w32_construct_console_modifiers ();
if (!NILP (Vw32_recognize_altgr)
&& modifier_set (VK_LCONTROL) && modifier_set (VK_RMENU))
already be defined at this point. */
Lisp_Object fname
= code_convert_string_norecord (utf_16_fn, cs, 0);
- Lisp_Object action = lispy_file_action (fni->Action);
+ Lisp_Object action = w32_lispy_file_action (fni->Action);
inev.kind = FILE_NOTIFY_EVENT;
inev.timestamp = GetTickCount ();
static void x_update_end (struct frame *);
static void w32_frame_up_to_date (struct frame *);
static void x_clear_frame (struct frame *);
-static void frame_highlight (struct frame *);
-static void frame_unhighlight (struct frame *);
+static void w32_frame_highlight (struct frame *);
+static void w32_frame_unhighlight (struct frame *);
static void x_new_focus_frame (struct w32_display_info *,
struct frame *);
static void x_focus_changed (int, int, struct w32_display_info *,
***********************************************************************/
static void
-frame_highlight (struct frame *f)
+w32_frame_highlight (struct frame *f)
{
gui_update_cursor (f, 1);
x_set_frame_alpha (f);
}
static void
-frame_unhighlight (struct frame *f)
+w32_frame_unhighlight (struct frame *f)
{
gui_update_cursor (f, 1);
x_set_frame_alpha (f);
if (dpyinfo->x_highlight_frame != old_highlight)
{
if (old_highlight)
- frame_unhighlight (old_highlight);
+ w32_frame_unhighlight (old_highlight);
if (dpyinfo->x_highlight_frame)
- frame_highlight (dpyinfo->x_highlight_frame);
+ w32_frame_highlight (dpyinfo->x_highlight_frame);
}
}
\f
the mouse. */
static Lisp_Object
-construct_mouse_click (struct input_event *result, W32Msg *msg, struct frame *f)
+w32_construct_mouse_click (struct input_event *result, W32Msg *msg,
+ struct frame *f)
{
int button = 0;
int up = 0;
}
static Lisp_Object
-construct_mouse_wheel (struct input_event *result, W32Msg *msg, struct frame *f)
+w32_construct_mouse_wheel (struct input_event *result, W32Msg *msg,
+ struct frame *f)
{
POINT p;
int delta;
}
static Lisp_Object
-construct_drag_n_drop (struct input_event *result, W32Msg *msg, struct frame *f)
+w32_construct_drag_n_drop (struct input_event *result, W32Msg *msg,
+ struct frame *f)
{
Lisp_Object files;
Lisp_Object frame;
/* File event notifications (see w32notify.c). */
Lisp_Object
-lispy_file_action (DWORD action)
+w32_lispy_file_action (DWORD action)
{
static char unknown_fmt[] = "unknown-action(%d)";
Lisp_Object retval;
function runs when the WM_EMACS_FILENOTIFY message arrives from a
watcher thread. */
static void
-queue_notifications (struct input_event *event, W32Msg *msg, struct frame *f,
- int *evcount)
+w32_queue_notifications (struct input_event *event, W32Msg *msg,
+ struct frame *f, int *evcount)
{
struct notifications_set *ns = NULL;
Lisp_Object frame;
already be defined at this point. */
Lisp_Object fname
= code_convert_string_norecord (utf_16_fn, cs, 0);
- Lisp_Object action = lispy_file_action (fni->Action);
+ Lisp_Object action = w32_lispy_file_action (fni->Action);
event->kind = FILE_NOTIFY_EVENT;
event->timestamp = msg->msg.time;
another motion event, so we can check again the next time it moves. */
static int
-note_mouse_movement (struct frame *frame, MSG *msg)
+w32_note_mouse_movement (struct frame *frame, MSG *msg)
{
struct w32_display_info *dpyinfo;
int mouse_x = LOWORD (msg->lParam);
last_mouse_window = window;
}
- if (!note_mouse_movement (f, &msg.msg))
+ if (!w32_note_mouse_movement (f, &msg.msg))
help_echo_string = previous_help_echo_string;
}
else
if (f)
{
- construct_mouse_click (&inev, &msg, f);
+ w32_construct_mouse_click (&inev, &msg, f);
/* Is this in the tool-bar? */
if (WINDOWP (f->tool_bar_window)
|| f == dpyinfo->w32_focus_frame)
/* Emit an Emacs wheel-up/down event. */
{
- construct_mouse_wheel (&inev, &msg, f);
+ w32_construct_mouse_wheel (&inev, &msg, f);
/* Ignore any mouse motion that happened before this
event; any subsequent mouse-movement Emacs events
if (f1 && FRAME_LIVE_P (f1) && FRAME_W32_P (f1))
{
- construct_mouse_wheel (&inev, &msg, f1);
+ w32_construct_mouse_wheel (&inev, &msg, f1);
f1->mouse_moved = false;
f1->last_tool_bar_item = -1;
dpyinfo->last_mouse_frame = f1;
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
- construct_drag_n_drop (&inev, &msg, f);
+ w32_construct_drag_n_drop (&inev, &msg, f);
break;
case WM_HSCROLL:
case WM_EMACS_FILENOTIFY:
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
- queue_notifications (&inev, &msg, f, &count);
+ w32_queue_notifications (&inev, &msg, f, &count);
break;
#endif
};
extern struct notifications_set *notifications_set_head;
extern Lisp_Object w32_get_watch_object (void *);
-extern Lisp_Object lispy_file_action (DWORD);
+extern Lisp_Object w32_lispy_file_action (DWORD);
extern int handle_file_notifications (struct input_event *);
extern void w32_initialize_display_info (Lisp_Object);
static void x_wm_set_icon_pixmap (struct frame *, ptrdiff_t);
static void x_initialize (void);
-static bool get_current_wm_state (struct frame *, Window, int *, bool *);
+static bool x_get_current_wm_state (struct frame *, Window, int *, bool *);
/* Flush display of frame F. */
\f
static void
-frame_highlight (struct frame *f)
+x_frame_highlight (struct frame *f)
{
/* We used to only do this if Vx_no_window_manager was non-nil, but
the ICCCM (section 4.1.6) says that the window's border pixmap
}
static void
-frame_unhighlight (struct frame *f)
+x_frame_unhighlight (struct frame *f)
{
/* We used to only do this if Vx_no_window_manager was non-nil, but
the ICCCM (section 4.1.6) says that the window's border pixmap
if (dpyinfo->x_highlight_frame != old_highlight)
{
if (old_highlight)
- frame_unhighlight (old_highlight);
+ x_frame_unhighlight (old_highlight);
if (dpyinfo->x_highlight_frame)
- frame_highlight (dpyinfo->x_highlight_frame);
+ x_frame_highlight (dpyinfo->x_highlight_frame);
}
}
the mouse. */
static Lisp_Object
-construct_mouse_click (struct input_event *result,
- const XButtonEvent *event,
- struct frame *f)
+x_construct_mouse_click (struct input_event *result,
+ const XButtonEvent *event,
+ struct frame *f)
{
/* Make the event type NO_EVENT; we'll change that when we decide
otherwise. */
another motion event, so we can check again the next time it moves. */
static bool
-note_mouse_movement (struct frame *frame, const XMotionEvent *event)
+x_note_mouse_movement (struct frame *frame, const XMotionEvent *event)
{
XRectangle *r;
struct x_display_info *dpyinfo;
Lisp_Object lval = Qnil;
bool sticky = false;
- get_current_wm_state (f, window, &value, &sticky);
+ x_get_current_wm_state (f, window, &value, &sticky);
switch (value)
{
/* EnterNotify counts as mouse movement,
so update things that depend on mouse position. */
if (f && !f->output_data.x->hourglass_p)
- note_mouse_movement (f, &event->xmotion);
+ x_note_mouse_movement (f, &event->xmotion);
#ifdef USE_GTK
/* We may get an EnterNotify on the buttons in the toolbar. In that
case we moved out of any highlighted area and need to note this. */
if (!f && dpyinfo->last_mouse_glyph_frame)
- note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion);
+ x_note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion);
#endif
goto OTHER;
#ifdef USE_GTK
/* See comment in EnterNotify above */
else if (dpyinfo->last_mouse_glyph_frame)
- note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion);
+ x_note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion);
#endif
goto OTHER;
last_mouse_window = window;
}
- if (!note_mouse_movement (f, &event->xmotion))
+ if (!x_note_mouse_movement (f, &event->xmotion))
help_echo_string = previous_help_echo_string;
}
else
&& event->xbutton.time > ignore_next_mouse_click_timeout)
{
ignore_next_mouse_click_timeout = 0;
- construct_mouse_click (&inev.ie, &event->xbutton, f);
+ x_construct_mouse_click (&inev.ie, &event->xbutton, f);
}
if (event->type == ButtonRelease)
ignore_next_mouse_click_timeout = 0;
}
else
- construct_mouse_click (&inev.ie, &event->xbutton, f);
+ x_construct_mouse_click (&inev.ie, &event->xbutton, f);
}
if (FRAME_X_EMBEDDED_P (f))
xembed_send_message (f, event->xbutton.time,
Return true iff we are not hidden. */
static bool
-get_current_wm_state (struct frame *f,
- Window window,
- int *size_state,
- bool *sticky)
+x_get_current_wm_state (struct frame *f,
+ Window window,
+ int *size_state,
+ bool *sticky)
{
unsigned long actual_size;
int i;
int value = FULLSCREEN_NONE;
Lisp_Object lval;
bool sticky = false;
- bool not_hidden = get_current_wm_state (f, event->window, &value, &sticky);
+ bool not_hidden = x_get_current_wm_state (f, event->window, &value, &sticky);
lval = Qnil;
switch (value)