indexing
	description: "EiffelVision accelerator. Mswindows implementation."
	legal: "See notice at end of class."
	status: "See notice at end of class."
	date: "$Date$"
	revision: "$Revision$"

class interface
	EV_ACCELERATOR_IMP

create 
	make (an_interface: like interface)
			-- Create `Current' with interface `an_interface'.
		require -- from EV_ANY_I
			an_interface_not_void: an_interface /= Void
		ensure -- from EV_ANY_I
			interface_assigned: interface = an_interface
			base_make_called: base_make_called

feature -- Access

	alt_required: BOOLEAN
			-- Must the alt key be pressed?

	command_id: INTEGER_32
			-- Command id of accelerator
			-- (from WEL_ACCELERATOR)

	control_required: BOOLEAN
			-- Must the control key be pressed?

	disable_parented
			-- Assign False to parented.
			-- (from EV_ACCELERATOR_I)

	enable_parented
			-- Assign True to parented.
			-- (from EV_ACCELERATOR_I)

	flags: INTEGER_32
			-- Flags of accelerator
			-- (from WEL_ACCELERATOR)

	generating_type: STRING_8
			-- Name of current object's generating type
			-- (type of which it is a direct instance)
			-- (from ANY)

	generator: STRING_8
			-- Name of current object's generating class
			-- (base class of the type of which it is a direct instance)
			-- (from ANY)

	id: INTEGER_32
			-- Unique identifier within system.
			-- (from EV_ID_IMP)

	item: POINTER
			-- Generic Windows handle or structure pointer.
			-- Can be a HWND, HICON, RECT *, WNDCLASS *, etc...
			-- (from WEL_ANY)

	key: EV_KEY
			-- `Result' is key used by `Current' key combination.

	wel_key: INTEGER_32
			-- Key of accelerator
			-- (from WEL_ACCELERATOR)

	key_code_from_key_string (key_string: STRING_GENERAL): INTEGER_32
			-- Key code value from `key_string'
			-- (from EV_KEY_CONSTANTS)
		require -- from EV_KEY_CONSTANTS
			key_string_not_void: key_string /= Void

	key_strings: ARRAY [STRING_32]
			-- String representations of all key codes.
			-- (from EV_KEY_CONSTANTS)

	parented: BOOLEAN
			-- Does `Current' have a parent?
			-- (from EV_ACCELERATOR_I)

	shift_required: BOOLEAN
			-- Must the shift key be pressed?

	vk_0: INTEGER_32 is 48
			-- (from WEL_VK_CONSTANTS)

	vk_1: INTEGER_32 is 49
			-- (from WEL_VK_CONSTANTS)

	vk_2: INTEGER_32 is 50
			-- (from WEL_VK_CONSTANTS)

	vk_3: INTEGER_32 is 51
			-- (from WEL_VK_CONSTANTS)

	vk_4: INTEGER_32 is 52
			-- (from WEL_VK_CONSTANTS)

	vk_5: INTEGER_32 is 53
			-- (from WEL_VK_CONSTANTS)

	vk_6: INTEGER_32 is 54
			-- (from WEL_VK_CONSTANTS)

	vk_7: INTEGER_32 is 55
			-- (from WEL_VK_CONSTANTS)

	vk_8: INTEGER_32 is 56
			-- (from WEL_VK_CONSTANTS)

	vk_9: INTEGER_32 is 57
			-- Vk_a thru Vk_z are the same as their ASCII equivalents: 'A' thru 'Z'.
			-- (from WEL_VK_CONSTANTS)

	vk_a: INTEGER_32 is 65
			-- (from WEL_VK_CONSTANTS)

	vk_add: INTEGER_32 is 107
			-- Declared in Windows as VK_ADD
			-- (from WEL_VK_CONSTANTS)

	vk_alt: INTEGER_32 is 18
			-- Declared in Windows as VK_MENU
			-- Was declared in WEL_VK_CONSTANTS as synonym of Vk_menu.
			-- (from WEL_VK_CONSTANTS)

	vk_apps: INTEGER_32 is 93
			-- Declared in Windows as VK_APPS
			-- Vk_0 thru Vk_9 are the same as their ASCII equivalents: '0' thru '9'.
			-- (from WEL_VK_CONSTANTS)

	vk_b: INTEGER_32 is 66
			-- (from WEL_VK_CONSTANTS)

	vk_back: INTEGER_32 is 8
			-- Declared in Windows as VK_BACK
			-- (from WEL_VK_CONSTANTS)

	vk_c: INTEGER_32 is 67
			-- (from WEL_VK_CONSTANTS)

	vk_cancel: INTEGER_32 is 3
			-- Declared in Windows as VK_CANCEL
			-- (from WEL_VK_CONSTANTS)

	vk_capital: INTEGER_32 is 20
			-- Declared in Windows as VK_CAPITAL
			-- (from WEL_VK_CONSTANTS)

	vk_clear: INTEGER_32 is 12
			-- Declared in Windows as VK_CLEAR
			-- (from WEL_VK_CONSTANTS)

	vk_control: INTEGER_32 is 17
			-- Declared in Windows as VK_CONTROL
			-- (from WEL_VK_CONSTANTS)

	vk_d: INTEGER_32 is 68
			-- (from WEL_VK_CONSTANTS)

	vk_decimal: INTEGER_32 is 110
			-- Declared in Windows as VK_DECIMAL
			-- (from WEL_VK_CONSTANTS)

	vk_delete: INTEGER_32 is 46
			-- Declared in Windows as VK_DELETE
			-- (from WEL_VK_CONSTANTS)

	vk_divide: INTEGER_32 is 111
			-- Declared in Windows as VK_DIVIDE
			-- (from WEL_VK_CONSTANTS)

	vk_down: INTEGER_32 is 40
			-- Declared in Windows as VK_DOWN
			-- (from WEL_VK_CONSTANTS)

	vk_e: INTEGER_32 is 69
			-- (from WEL_VK_CONSTANTS)

	vk_end: INTEGER_32 is 35
			-- Declared in Windows as VK_END
			-- (from WEL_VK_CONSTANTS)

	vk_escape: INTEGER_32 is 27
			-- Declared in Windows as VK_ESCAPE
			-- (from WEL_VK_CONSTANTS)

	vk_execute: INTEGER_32 is 43
			-- Declared in Windows as VK_EXECUTE
			-- (from WEL_VK_CONSTANTS)

	vk_f: INTEGER_32 is 70
			-- (from WEL_VK_CONSTANTS)

	vk_f1: INTEGER_32 is 112
			-- Declared in Windows as VK_F1
			-- (from WEL_VK_CONSTANTS)

	vk_f10: INTEGER_32 is 121
			-- Declared in Windows as VK_F10
			-- (from WEL_VK_CONSTANTS)

	vk_f11: INTEGER_32 is 122
			-- Declared in Windows as VK_F11
			-- (from WEL_VK_CONSTANTS)

	vk_f12: INTEGER_32 is 123
			-- Declared in Windows as VK_F12
			-- (from WEL_VK_CONSTANTS)

	vk_f13: INTEGER_32 is 124
			-- Declared in Windows as VK_F13
			-- (from WEL_VK_CONSTANTS)

	vk_f14: INTEGER_32 is 125
			-- Declared in Windows as VK_F14
			-- (from WEL_VK_CONSTANTS)

	vk_f15: INTEGER_32 is 126
			-- Declared in Windows as VK_F15
			-- (from WEL_VK_CONSTANTS)

	vk_f16: INTEGER_32 is 127
			-- Declared in Windows as VK_F16
			-- (from WEL_VK_CONSTANTS)

	vk_f17: INTEGER_32 is 128
			-- Declared in Windows as VK_F17
			-- (from WEL_VK_CONSTANTS)

	vk_f18: INTEGER_32 is 129
			-- Declared in Windows as VK_F18
			-- (from WEL_VK_CONSTANTS)

	vk_f19: INTEGER_32 is 130
			-- Declared in Windows as VK_F19
			-- (from WEL_VK_CONSTANTS)

	vk_f2: INTEGER_32 is 113
			-- Declared in Windows as VK_F2
			-- (from WEL_VK_CONSTANTS)

	vk_f20: INTEGER_32 is 131
			-- Declared in Windows as VK_F20
			-- (from WEL_VK_CONSTANTS)

	vk_f21: INTEGER_32 is 132
			-- Declared in Windows as VK_F21
			-- (from WEL_VK_CONSTANTS)

	vk_f22: INTEGER_32 is 133
			-- Declared in Windows as VK_F22
			-- (from WEL_VK_CONSTANTS)

	vk_f23: INTEGER_32 is 134
			-- Declared in Windows as VK_F23
			-- (from WEL_VK_CONSTANTS)

	vk_f24: INTEGER_32 is 135
			-- Declared in Windows as VK_F24
			-- (from WEL_VK_CONSTANTS)

	vk_f3: INTEGER_32 is 114
			-- Declared in Windows as VK_F3
			-- (from WEL_VK_CONSTANTS)

	vk_f4: INTEGER_32 is 115
			-- Declared in Windows as VK_F4
			-- (from WEL_VK_CONSTANTS)

	vk_f5: INTEGER_32 is 116
			-- Declared in Windows as VK_F5
			-- (from WEL_VK_CONSTANTS)

	vk_f6: INTEGER_32 is 117
			-- Declared in Windows as VK_F6
			-- (from WEL_VK_CONSTANTS)

	vk_f7: INTEGER_32 is 118
			-- Declared in Windows as VK_F7
			-- (from WEL_VK_CONSTANTS)

	vk_f8: INTEGER_32 is 119
			-- Declared in Windows as VK_F8
			-- (from WEL_VK_CONSTANTS)

	vk_f9: INTEGER_32 is 120
			-- Declared in Windows as VK_F9
			-- (from WEL_VK_CONSTANTS)

	vk_g: INTEGER_32 is 71
			-- (from WEL_VK_CONSTANTS)

	vk_h: INTEGER_32 is 72
			-- (from WEL_VK_CONSTANTS)

	vk_help: INTEGER_32 is 47
			-- Declared in Windows as VK_HELP
			-- (from WEL_VK_CONSTANTS)

	vk_home: INTEGER_32 is 36
			-- Declared in Windows as VK_HOME
			-- (from WEL_VK_CONSTANTS)

	vk_i: INTEGER_32 is 73
			-- (from WEL_VK_CONSTANTS)

	vk_insert: INTEGER_32 is 45
			-- Declared in Windows as VK_INSERT
			-- (from WEL_VK_CONSTANTS)

	vk_j: INTEGER_32 is 74
			-- (from WEL_VK_CONSTANTS)

	vk_k: INTEGER_32 is 75
			-- (from WEL_VK_CONSTANTS)

	vk_l: INTEGER_32 is 76
			-- (from WEL_VK_CONSTANTS)

	vk_lbutton: INTEGER_32 is 1
			-- Declared in Windows as VK_LBUTTON
			-- (from WEL_VK_CONSTANTS)

	vk_lcontrol: INTEGER_32 is 162
			-- Declared in Windows as VK_LCONTROL
			-- (from WEL_VK_CONSTANTS)

	vk_left: INTEGER_32 is 37
			-- Declared in Windows as VK_LEFT
			-- (from WEL_VK_CONSTANTS)

	vk_lmenu: INTEGER_32 is 164
			-- Declared in Windows as VK_LMENU
			-- (from WEL_VK_CONSTANTS)

	vk_lshift: INTEGER_32 is 160
			-- Declared in Windows as VK_LSHIFT
			-- (from WEL_VK_CONSTANTS)

	vk_m: INTEGER_32 is 77
			-- (from WEL_VK_CONSTANTS)

	vk_mbutton: INTEGER_32 is 4
			-- Declared in Windows as VK_MBUTTON
			-- (from WEL_VK_CONSTANTS)

	vk_menu: INTEGER_32 is 18
			-- Declared in Windows as VK_MENU
			-- Was declared in WEL_VK_CONSTANTS as synonym of Vk_alt.
			-- (from WEL_VK_CONSTANTS)

	vk_multiply: INTEGER_32 is 106
			-- Declared in Windows as VK_MULTIPLY
			-- (from WEL_VK_CONSTANTS)

	vk_n: INTEGER_32 is 78
			-- (from WEL_VK_CONSTANTS)

	vk_next: INTEGER_32 is 34
			-- Declared in Windows as VK_NEXT
			-- (from WEL_VK_CONSTANTS)

	vk_numlock: INTEGER_32 is 144
			-- Declared in Windows as VK_NUMLOCK
			-- (from WEL_VK_CONSTANTS)

	vk_numpad0: INTEGER_32 is 96
			-- Declared in Windows as VK_NUMPAD0
			-- (from WEL_VK_CONSTANTS)

	vk_numpad1: INTEGER_32 is 97
			-- Declared in Windows as VK_NUMPAD1
			-- (from WEL_VK_CONSTANTS)

	vk_numpad2: INTEGER_32 is 98
			-- Declared in Windows as VK_NUMPAD2
			-- (from WEL_VK_CONSTANTS)

	vk_numpad3: INTEGER_32 is 99
			-- Declared in Windows as VK_NUMPAD3
			-- (from WEL_VK_CONSTANTS)

	vk_numpad4: INTEGER_32 is 100
			-- Declared in Windows as VK_NUMPAD4
			-- (from WEL_VK_CONSTANTS)

	vk_numpad5: INTEGER_32 is 101
			-- Declared in Windows as VK_NUMPAD5
			-- (from WEL_VK_CONSTANTS)

	vk_numpad6: INTEGER_32 is 102
			-- Declared in Windows as VK_NUMPAD6
			-- (from WEL_VK_CONSTANTS)

	vk_numpad7: INTEGER_32 is 103
			-- Declared in Windows as VK_NUMPAD7
			-- (from WEL_VK_CONSTANTS)

	vk_numpad8: INTEGER_32 is 104
			-- Declared in Windows as VK_NUMPAD8
			-- (from WEL_VK_CONSTANTS)

	vk_numpad9: INTEGER_32 is 105
			-- Declared in Windows as VK_NUMPAD9
			-- (from WEL_VK_CONSTANTS)

	vk_o: INTEGER_32 is 79
			-- (from WEL_VK_CONSTANTS)

	vk_p: INTEGER_32 is 80
			-- (from WEL_VK_CONSTANTS)

	vk_pause: INTEGER_32 is 19
			-- Declared in Windows as VK_PAUSE
			-- (from WEL_VK_CONSTANTS)

	vk_print: INTEGER_32 is 42
			-- Declared in Windows as VK_PRINT
			-- (from WEL_VK_CONSTANTS)

	vk_prior: INTEGER_32 is 33
			-- Declared in Windows as VK_PRIOR
			-- (from WEL_VK_CONSTANTS)

	vk_q: INTEGER_32 is 81
			-- (from WEL_VK_CONSTANTS)

	vk_r: INTEGER_32 is 82
			-- (from WEL_VK_CONSTANTS)

	vk_rbutton: INTEGER_32 is 2
			-- Declared in Windows as VK_RBUTTON
			-- (from WEL_VK_CONSTANTS)

	vk_rcontrol: INTEGER_32 is 163
			-- Declared in Windows as VK_RCONTROL
			-- (from WEL_VK_CONSTANTS)

	vk_return: INTEGER_32 is 13
			-- Declared in Windows as VK_RETURN
			-- (from WEL_VK_CONSTANTS)

	vk_right: INTEGER_32 is 39
			-- Declared in Windows as VK_RIGHT
			-- (from WEL_VK_CONSTANTS)

	vk_rmenu: INTEGER_32 is 165
			-- Declared in Windows as VK_RMENU
			-- (from WEL_VK_CONSTANTS)

	vk_rshift: INTEGER_32 is 161
			-- Declared in Windows as VK_RSHIFT
			-- (from WEL_VK_CONSTANTS)

	vk_s: INTEGER_32 is 83
			-- (from WEL_VK_CONSTANTS)

	vk_scroll: INTEGER_32 is 145
			-- Declared in Windows as VK_SCROLL
			-- (from WEL_VK_CONSTANTS)

	vk_select: INTEGER_32 is 41
			-- Declared in Windows as VK_SELECT
			-- (from WEL_VK_CONSTANTS)

	vk_separator: INTEGER_32 is 108
			-- Declared in Windows as VK_SEPARATOR
			-- (from WEL_VK_CONSTANTS)

	vk_shift: INTEGER_32 is 16
			-- Declared in Windows as VK_SHIFT
			-- (from WEL_VK_CONSTANTS)

	vk_snapshot: INTEGER_32 is 44
			-- Declared in Windows as VK_SNAPSHOT
			-- (from WEL_VK_CONSTANTS)

	vk_space: INTEGER_32 is 32
			-- Declared in Windows as VK_SPACE
			-- (from WEL_VK_CONSTANTS)

	vk_subtract: INTEGER_32 is 109
			-- Declared in Windows as VK_SUBTRACT
			-- (from WEL_VK_CONSTANTS)

	vk_t: INTEGER_32 is 84
			-- (from WEL_VK_CONSTANTS)

	vk_tab: INTEGER_32 is 9
			-- Declared in Windows as VK_TAB
			-- (from WEL_VK_CONSTANTS)

	vk_u: INTEGER_32 is 85
			-- (from WEL_VK_CONSTANTS)

	vk_up: INTEGER_32 is 38
			-- Declared in Windows as VK_UP
			-- (from WEL_VK_CONSTANTS)

	vk_v: INTEGER_32 is 86
			-- (from WEL_VK_CONSTANTS)

	vk_w: INTEGER_32 is 87
			-- (from WEL_VK_CONSTANTS)

	vk_x: INTEGER_32 is 88
			-- (from WEL_VK_CONSTANTS)

	vk_y: INTEGER_32 is 89
			-- (from WEL_VK_CONSTANTS)

	vk_z: INTEGER_32 is 90
			-- (from WEL_VK_CONSTANTS)
	
feature -- Measurement

	structure_size: INTEGER_32
			-- Size to allocate (in bytes)
			-- (from WEL_ACCELERATOR)
		ensure -- from WEL_STRUCTURE
			positive_result: Result > 0
	
feature -- Comparison

	frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void
			-- or attached to isomorphic object structures?
			-- (from ANY)
		ensure -- from ANY
			shallow_implies_deep: standard_equal (some, other) implies Result
			both_or_none_void: (some = Void) implies (Result = (other = Void))
			same_type: (Result and (some /= Void)) implies some.same_type (other)
			symmetric: Result implies deep_equal (other, some)

	frozen equal (some: ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void or attached
			-- to objects considered equal?
			-- (from ANY)
		ensure -- from ANY
			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))

	frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void or attached to
			-- field-by-field identical objects of the same type?
			-- Always uses default object comparison criterion.
			-- (from ANY)
		ensure -- from ANY
			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))

	frozen standard_is_equal (other: like Current): BOOLEAN
			-- Is `other' attached to an object of the same type
			-- as current object, and field-by-field identical to it?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			same_type: Result implies same_type (other)
			symmetric: Result implies other.standard_is_equal (Current)
	
feature -- Status report

	conforms_to (other: ANY): BOOLEAN
			-- Does type of current object conform to type
			-- of `other' (as per Eiffel: The Language, chapter 13)?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void

	exists: BOOLEAN
			-- Does the item exist?
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			Result = (item /= default_pointer)

	same_type (other: ANY): BOOLEAN
			-- Is type of current object identical to type of `other'?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			definition: Result = (conforms_to (other) and other.conforms_to (Current))

	shared: BOOLEAN
			-- Is item shared by another object?
			-- If False (by default), item will
			-- be destroyed by destroy_item.
			-- If True, item will not be destroyed.
			-- (from WEL_ANY)
	
feature -- Status setting

	set_shared
			-- Set shared to True.
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			shared: shared

	set_unshared
			-- Set shared to False.
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			unshared: not shared
	
feature -- Element change

	disable_alt_required
			-- Remove "Alt" from the key combination of `Current'.

	disable_control_required
			-- Remove "Control" from the key combination of `Current'.

	disable_shift_required
			-- Remove "Shift" from the key combination of `Current'.

	enable_alt_required
			-- "Alt" must be pressed for the key combination.

	enable_control_required
			-- "Control" must be pressed for the key combination.

	enable_shift_required
			-- "Shift" must be pressed for the key combination.

	set_command_id (a_command_id: INTEGER_32)
			-- Set command_id to `a_command_id'.
			-- (from WEL_ACCELERATOR)
		require -- from WEL_ACCELERATOR
			valid_command_id: a_command_id >= 0
		ensure -- from WEL_ACCELERATOR
			command_id_set: command_id = a_command_id

	set_flags (a_flags: INTEGER_32)
			-- Set flags to `a_flags'.
			-- (from WEL_ACCELERATOR)
		ensure -- from WEL_ACCELERATOR
			flags_set: flags = a_flags

	set_item (an_item: POINTER)
			-- Set item with `an_item'
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			item_set: item = an_item

	set_key (a_key: EV_KEY)
			-- Set `a_key_code' as new key that has to be pressed.

	wel_set_key (a_key: INTEGER_32)
			-- Set key to `a_key'.
			-- (from WEL_ACCELERATOR)
		ensure -- from WEL_ACCELERATOR
			key_set: wel_key = a_key
	
feature -- Removal

	dispose
			-- Destroy the inner structure of `Current'.
			--
			-- This function should be called by the GC when the
			-- object is collected or by the user if `Current' is
			-- no more usefull. 
			-- (from WEL_ANY)
	
feature -- Conversion

	key_code_from_wel (a_wel_code: INTEGER_32): INTEGER_32
			-- Corresponding key code for ``a_wel_code''.
			-- (from EV_WEL_KEY_CONVERSION)
		require -- from EV_WEL_KEY_CONVERSION
			a_wel_code_valid: valid_wel_code (a_wel_code)

	key_code_to_wel (a_key_code: INTEGER_32): INTEGER_32
			-- Corresponding WEL code for ``a_key_code''.
			-- (from EV_WEL_KEY_CONVERSION)
		require -- from EV_WEL_KEY_CONVERSION
			a_key_code_valid: valid_key_code (a_key_code)
	
feature -- Duplication

	frozen deep_copy (other: like Current)
			-- Effect equivalent to that of:
			--		copy (`other' . deep_twin)
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			deep_equal: deep_equal (Current, other)

	frozen deep_twin: like Current
			-- New object structure recursively duplicated from Current.
			-- (from ANY)
		ensure -- from ANY
			deep_equal: deep_equal (Current, Result)

	frozen standard_copy (other: like Current)
			-- Copy every field of `other' onto corresponding field
			-- of current object.
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
			type_identity: same_type (other)
		ensure -- from ANY
			is_standard_equal: standard_is_equal (other)

	frozen standard_twin: like Current
			-- New object field-by-field identical to `other'.
			-- Always uses default copying semantics.
			-- (from ANY)
		ensure -- from ANY
			standard_twin_not_void: Result /= Void
			equal: standard_equal (Result, Current)

	frozen twin: like Current
			-- New object equal to `Current'
			-- twin calls copy; to change copying/twining semantics, redefine copy.
			-- (from ANY)
		ensure -- from ANY
			twin_not_void: Result /= Void
			is_equal: Result.is_equal (Current)
	
feature -- Basic operations

	copy (other: like Current)
			-- Update current object using fields of object attached
			-- to `other', so as to yield equal objects.
			-- (from WEL_STRUCTURE)
		require -- from ANY
			other_not_void: other /= Void
			type_identity: same_type (other)
		ensure -- from ANY
			is_equal: is_equal (other)

	frozen default: like Current
			-- Default value of object's type
			-- (from ANY)

	frozen default_pointer: POINTER
			-- Default value of type `POINTER'
			-- (Avoid the need to write `p'.default for
			-- some `p' of type `POINTER'.)
			-- (from ANY)

	default_rescue
			-- Process exception for routines with no Rescue clause.
			-- (Default: do nothing.)
			-- (from ANY)

	frozen do_nothing
			-- Execute a null action.
			-- (from ANY)

	structure_initialize
			-- Fill Current with zeros.
			-- (from WEL_STRUCTURE)
		require -- from WEL_STRUCTURE
			exists: exists

	initialize_with_character (a_character: CHARACTER_8)
			-- Fill current with `a_character'.
			-- (from WEL_STRUCTURE)
		require -- from WEL_STRUCTURE
			exists: exists

	is_equal (other: like Current): BOOLEAN
			-- Is `other' attached to an object considered
			-- equal to current object?
			-- (from WEL_STRUCTURE)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			symmetric: Result implies other.is_equal (Current)
			consistent: standard_is_equal (other) implies Result

	memory_copy (source_pointer: POINTER; length: INTEGER_32)
			-- Copy `length' bytes from `source_pointer' to item.
			-- (from WEL_STRUCTURE)
		require -- from WEL_STRUCTURE
			length_small_enough: length <= structure_size
			length_large_enough: length > 0
			exists: exists
	
feature -- Constants

	key_0: INTEGER_32 is 1
			-- (from EV_KEY_CONSTANTS)

	key_1: INTEGER_32 is 2
			-- (from EV_KEY_CONSTANTS)

	key_2: INTEGER_32 is 3
			-- (from EV_KEY_CONSTANTS)

	key_3: INTEGER_32 is 4
			-- (from EV_KEY_CONSTANTS)

	key_4: INTEGER_32 is 5
			-- (from EV_KEY_CONSTANTS)

	key_5: INTEGER_32 is 6
			-- (from EV_KEY_CONSTANTS)

	key_6: INTEGER_32 is 7
			-- (from EV_KEY_CONSTANTS)

	key_7: INTEGER_32 is 8
			-- (from EV_KEY_CONSTANTS)

	key_8: INTEGER_32 is 9
			-- (from EV_KEY_CONSTANTS)

	key_9: INTEGER_32 is 10
			-- (from EV_KEY_CONSTANTS)

	key_a: INTEGER_32 is 68
			-- (from EV_KEY_CONSTANTS)

	key_alt: INTEGER_32 is 96
			-- (from EV_KEY_CONSTANTS)

	key_b: INTEGER_32 is 69
			-- (from EV_KEY_CONSTANTS)

	key_back_space: INTEGER_32 is 40
			-- (from EV_KEY_CONSTANTS)

	key_backquote: INTEGER_32 is 56
			-- (from EV_KEY_CONSTANTS)

	key_backslash: INTEGER_32 is 54
			-- (from EV_KEY_CONSTANTS)

	key_c: INTEGER_32 is 70
			-- (from EV_KEY_CONSTANTS)

	key_caps_lock: INTEGER_32 is 45
			-- (from EV_KEY_CONSTANTS)

	key_close_bracket: INTEGER_32 is 52
			-- (from EV_KEY_CONSTANTS)

	key_comma: INTEGER_32 is 47
			-- (from EV_KEY_CONSTANTS)

	key_ctrl: INTEGER_32 is 95
			-- (from EV_KEY_CONSTANTS)

	key_d: INTEGER_32 is 71
			-- (from EV_KEY_CONSTANTS)

	key_dash: INTEGER_32 is 57
			-- (from EV_KEY_CONSTANTS)

	key_delete: INTEGER_32 is 67
			-- (from EV_KEY_CONSTANTS)

	key_down: INTEGER_32 is 59
			-- (from EV_KEY_CONSTANTS)

	key_e: INTEGER_32 is 72
			-- (from EV_KEY_CONSTANTS)

	key_end: INTEGER_32 is 65
			-- (from EV_KEY_CONSTANTS)

	key_enter: INTEGER_32 is 41
			-- (from EV_KEY_CONSTANTS)

	key_equal: INTEGER_32 is 48
			-- (from EV_KEY_CONSTANTS)

	key_escape: INTEGER_32 is 42
			-- (from EV_KEY_CONSTANTS)

	key_f: INTEGER_32 is 73
			-- (from EV_KEY_CONSTANTS)

	key_f1: INTEGER_32 is 27
			-- (from EV_KEY_CONSTANTS)

	key_f10: INTEGER_32 is 36
			-- (from EV_KEY_CONSTANTS)

	key_f11: INTEGER_32 is 37
			-- (from EV_KEY_CONSTANTS)

	key_f12: INTEGER_32 is 38
			-- (from EV_KEY_CONSTANTS)

	key_f2: INTEGER_32 is 28
			-- (from EV_KEY_CONSTANTS)

	key_f3: INTEGER_32 is 29
			-- (from EV_KEY_CONSTANTS)

	key_f4: INTEGER_32 is 30
			-- (from EV_KEY_CONSTANTS)

	key_f5: INTEGER_32 is 31
			-- (from EV_KEY_CONSTANTS)

	key_f6: INTEGER_32 is 32
			-- (from EV_KEY_CONSTANTS)

	key_f7: INTEGER_32 is 33
			-- (from EV_KEY_CONSTANTS)

	key_f8: INTEGER_32 is 34
			-- (from EV_KEY_CONSTANTS)

	key_f9: INTEGER_32 is 35
			-- (from EV_KEY_CONSTANTS)

	key_g: INTEGER_32 is 74
			-- (from EV_KEY_CONSTANTS)

	key_h: INTEGER_32 is 75
			-- (from EV_KEY_CONSTANTS)

	key_home: INTEGER_32 is 64
			-- (from EV_KEY_CONSTANTS)

	key_i: INTEGER_32 is 76
			-- (from EV_KEY_CONSTANTS)

	key_insert: INTEGER_32 is 66
			-- (from EV_KEY_CONSTANTS)

	key_j: INTEGER_32 is 77
			-- (from EV_KEY_CONSTANTS)

	key_k: INTEGER_32 is 78
			-- (from EV_KEY_CONSTANTS)

	key_l: INTEGER_32 is 79
			-- (from EV_KEY_CONSTANTS)

	key_left: INTEGER_32 is 60
			-- (from EV_KEY_CONSTANTS)

	key_left_meta: INTEGER_32 is 97
			-- (from EV_KEY_CONSTANTS)

	key_m: INTEGER_32 is 80
			-- (from EV_KEY_CONSTANTS)

	key_menu: INTEGER_32 is 99
			-- (from EV_KEY_CONSTANTS)

	key_n: INTEGER_32 is 81
			-- (from EV_KEY_CONSTANTS)

	key_num_lock: INTEGER_32 is 24
			-- (from EV_KEY_CONSTANTS)

	key_numpad_0: INTEGER_32 is 11
			-- (from EV_KEY_CONSTANTS)

	key_numpad_1: INTEGER_32 is 12
			-- (from EV_KEY_CONSTANTS)

	key_numpad_2: INTEGER_32 is 13
			-- (from EV_KEY_CONSTANTS)

	key_numpad_3: INTEGER_32 is 14
			-- (from EV_KEY_CONSTANTS)

	key_numpad_4: INTEGER_32 is 15
			-- (from EV_KEY_CONSTANTS)

	key_numpad_5: INTEGER_32 is 16
			-- (from EV_KEY_CONSTANTS)

	key_numpad_6: INTEGER_32 is 17
			-- (from EV_KEY_CONSTANTS)

	key_numpad_7: INTEGER_32 is 18
			-- (from EV_KEY_CONSTANTS)

	key_numpad_8: INTEGER_32 is 19
			-- (from EV_KEY_CONSTANTS)

	key_numpad_9: INTEGER_32 is 20
			-- (from EV_KEY_CONSTANTS)

	key_numpad_add: INTEGER_32 is 21
			-- (from EV_KEY_CONSTANTS)

	key_numpad_decimal: INTEGER_32 is 26
			-- (from EV_KEY_CONSTANTS)

	key_numpad_divide: INTEGER_32 is 22
			-- (from EV_KEY_CONSTANTS)

	key_numpad_multiply: INTEGER_32 is 23
			-- (from EV_KEY_CONSTANTS)

	key_numpad_subtract: INTEGER_32 is 25
			-- (from EV_KEY_CONSTANTS)

	key_o: INTEGER_32 is 82
			-- (from EV_KEY_CONSTANTS)

	key_open_bracket: INTEGER_32 is 51
			-- (from EV_KEY_CONSTANTS)

	key_p: INTEGER_32 is 83
			-- (from EV_KEY_CONSTANTS)

	key_page_down: INTEGER_32 is 63
			-- (from EV_KEY_CONSTANTS)

	key_page_up: INTEGER_32 is 62
			-- (from EV_KEY_CONSTANTS)

	key_pause: INTEGER_32 is 44
			-- (from EV_KEY_CONSTANTS)

	key_period: INTEGER_32 is 49
			-- (from EV_KEY_CONSTANTS)

	key_q: INTEGER_32 is 84
			-- (from EV_KEY_CONSTANTS)

	key_quote: INTEGER_32 is 55
			-- (from EV_KEY_CONSTANTS)

	key_r: INTEGER_32 is 85
			-- (from EV_KEY_CONSTANTS)

	key_right: INTEGER_32 is 61
			-- (from EV_KEY_CONSTANTS)

	key_right_meta: INTEGER_32 is 98
			-- (from EV_KEY_CONSTANTS)

	key_s: INTEGER_32 is 86
			-- (from EV_KEY_CONSTANTS)

	key_scroll_lock: INTEGER_32 is 46
			-- (from EV_KEY_CONSTANTS)

	key_semicolon: INTEGER_32 is 50
			-- (from EV_KEY_CONSTANTS)

	key_shift: INTEGER_32 is 94
			-- (from EV_KEY_CONSTANTS)

	key_slash: INTEGER_32 is 53
			-- (from EV_KEY_CONSTANTS)

	key_space: INTEGER_32 is 39
			-- (from EV_KEY_CONSTANTS)

	key_t: INTEGER_32 is 87
			-- (from EV_KEY_CONSTANTS)

	key_tab: INTEGER_32 is 43
			-- (from EV_KEY_CONSTANTS)

	key_u: INTEGER_32 is 88
			-- (from EV_KEY_CONSTANTS)

	key_up: INTEGER_32 is 58
			-- (from EV_KEY_CONSTANTS)

	key_v: INTEGER_32 is 89
			-- (from EV_KEY_CONSTANTS)

	key_w: INTEGER_32 is 90
			-- (from EV_KEY_CONSTANTS)

	key_x: INTEGER_32 is 91
			-- (from EV_KEY_CONSTANTS)

	key_y: INTEGER_32 is 92
			-- (from EV_KEY_CONSTANTS)

	key_z: INTEGER_32 is 93
			-- (from EV_KEY_CONSTANTS)
	
feature -- Contract support

	valid_key_code (a_code: INTEGER_32): BOOLEAN
			-- Is ``a_code'' a valid key code?
			-- (from EV_KEY_CONSTANTS)

	valid_wel_code (a_wel_code: INTEGER_32): BOOLEAN
			-- Is ``a_wel_code'' valid?
			-- (from EV_WEL_KEY_CONVERSION)
	
feature -- Events

	actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when key is pressed.
			-- (from EV_ACCELERATOR_I)
	
feature -- Output

	io: STD_FILES
			-- Handle to standard file setup
			-- (from ANY)

	out: STRING_8
			-- New string containing terse printable representation
			-- of current object
			-- Was declared in ANY as synonym of tagged_out.
			-- (from ANY)

	print (some: ANY)
			-- Write terse external representation of `some'
			-- on standard output.
			-- (from ANY)

	frozen tagged_out: STRING_8
			-- New string containing terse printable representation
			-- of current object
			-- Was declared in ANY as synonym of out.
			-- (from ANY)
	
feature -- Platform

	operating_environment: OPERATING_ENVIRONMENT
			-- Objects available from the operating system
			-- (from ANY)
	
invariant
		-- from EV_ANY_I
	interface_coupled: is_usable implies interface /= Void and then interface.implementation = Current
	base_make_called: base_make_called

		-- from ANY
	reflexive_equality: standard_is_equal (Current)
	reflexive_conformance: conforms_to (Current)

		-- from WEL_ACCELERATOR
	valid_command_id: command_id >= 0

		-- from EV_ID_IMP
	make_called: id > 0

indexing
	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 EV_ACCELERATOR_IMP