indexing
description: "A keyboard accelerator defines actions to be performed when akey is pressed. See `{EV_TITLED_WINDOW}.accelerators'"
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "accelerator, keyboard, key, shortcut, hotkey"
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
class interface
EV_ACCELERATOR
create
default_create
EV_ANY
require ANY
True
ensure then EV_ANY
is_coupled: implementation /= Void
is_initialized: is_initialized
default_create_called_set: default_create_called
is_in_default_state: is_in_default_state
make_with_key_combination (a_key: EV_KEY; require_control, require_alt, require_shift: BOOLEAN)
`a_key'
require
a_key_not_void: a_key /= Void
feature
alt_required: BOOLEAN
actions
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.alt_required
control_required: BOOLEAN
actions
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.control_required
data: ANY
EV_ANY
generating_type: STRING_8
ANY
generator: STRING_8
ANY
key: EV_KEY
actions
require
not_destroyed: not is_destroyed
ensure
bridge_ok: equal (Result, implementation.key)
parented: BOOLEAN
`Current'
`Current'
`Current'
require
not_destroyed: not is_destroyed
shift_required: BOOLEAN
actions
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.shift_required
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure 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
`some'`other'
ANY
ensure 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
`some'`other'
ANY
ensure 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
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
is_equal (other: like Current): BOOLEAN
`other'`Current'
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
out: STRING_8
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
disable_alt_required
alt_required
require
not_destroyed: not is_destroyed
not_parented: not parented
ensure
not_alt_required: not alt_required
disable_control_required
control_required
require
not_destroyed: not is_destroyed
not_parented: not parented
ensure
not_control_required: not control_required
disable_shift_required
shift_required
require
not_destroyed: not is_destroyed
not_parented: not parented
ensure
not_shift_required: not shift_required
enable_alt_required
alt_required
require
not_destroyed: not is_destroyed
not_parented: not parented
ensure
alt_required: alt_required
enable_control_required
control_required
require
not_destroyed: not is_destroyed
not_parented: not parented
ensure
control_required: control_required
enable_shift_required
shift_required
require
not_destroyed: not is_destroyed
not_parented: not parented
ensure
shift_required: shift_required
set_key (a_key: EV_KEY)
`a_key'key
require
not_destroyed: not is_destroyed
a_key_not_void: a_key /= Void
not_parented: not parented
ensure
a_key_assigned: key.is_equal (a_key)
feature
set_data (some_data: like data)
`some_data'data
EV_ANY
require EV_ANY
not_destroyed: not is_destroyed
ensure EV_ANY
data_assigned: data = some_data
feature
copy (other: like Current)
`other'
EV_ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
destroy
`Current'
EV_ANY
ensure EV_ANY
is_destroyed: is_destroyed
feature
actions: EV_NOTIFY_ACTION_SEQUENCE
`Current'
require
not_destroyed: not is_destroyed
ensure
result_not_void: Result /= Void
feature
io: STD_FILES
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
feature
is_destroyed: BOOLEAN
`Current'
EV_ANY
ensure EV_ANY
bridge_ok: Result = implementation.is_destroyed
invariant
key_not_void: key /= Void
EV_ANY
is_initialized: is_initialized
is_coupled: implementation /= Void and then implementation.interface = Current
default_create_called: default_create_called
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
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 EV_ACCELERATOR