note description: "Information about messages Wm_mousemove, % %Wm_lbuttondown, Wm_mbuttondown, Wm_rbuttondown, % %Wm_lbuttonup, Wm_mbuttonup, Wm_rbuttonup, % %Wm_lbuttondblclk, Wm_mbuttondblclk, Wm_rbuttondblclk. % %Theses message are sent when the user clicks on the mouse." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_MOUSE_MESSAGE inherit WEL_MESSAGE_INFORMATION WEL_MK_CONSTANTS export {NONE} all end WEL_BIT_OPERATIONS export {NONE} all end create make feature -- Access keys: INTEGER -- Keys flags. -- See class WEL_MK_CONSTANTS for different values. do Result := w_param.to_integer_32 end x: INTEGER -- Horizontal position of cursor do Result := x_position_from_lparam (l_param) end y: INTEGER -- Vertical position of cursor do Result := y_position_from_lparam (l_param) end feature -- Status report control_down: BOOLEAN -- Is the CTRL key down? do Result := flag_set (keys, Mk_control) end shift_down: BOOLEAN -- Is the SHIFT key down? do Result := flag_set (keys, Mk_shift) end left_button_down: BOOLEAN -- Is the left mouse button down? do Result := flag_set (keys, Mk_lbutton) end right_button_down: BOOLEAN -- Is the right mouse button down? do Result := flag_set (keys, Mk_rbutton) end middle_button_down: BOOLEAN -- Is the middle mouse button down? do Result := flag_set (keys, Mk_mbutton) end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class WEL_MOUSE_MESSAGE