indexing
description: "EiffelVision box, implementation interface."
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "container, box"
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
deferred class interface
EV_BOX_I
feature
accept_cursor: EV_POINTER_STYLE
pebble
EV_PICK_AND_DROPABLE_I
actual_drop_target_agent: FUNCTION [ANY, TUPLE [INTEGER_32, INTEGER_32], EV_ABSTRACT_PICK_AND_DROPABLE]
`Void'
`Current'
EV_WIDGET_I
background_color: EV_COLOR
EV_COLORIZABLE_I
border_width: INTEGER_32
ensure
positive_result: Result >= 0
client_height: INTEGER_32
EV_CONTAINER_I
ensure EV_CONTAINER_I
positive: Result >= 0
client_width: INTEGER_32
EV_CONTAINER_I
ensure EV_CONTAINER_I
positive: Result >= 0
configurable_target_menu_handler: PROCEDURE [ANY, TUPLE [menu: EV_MENU; target_list: ARRAYED_LIST [EV_PND_TARGET_DATA]; source: EV_PICK_AND_DROPABLE; source_pebble: ANY]]
EV_PICK_AND_DROPABLE_I
cursor: EV_DYNAMIC_LIST_CURSOR [EV_WIDGET]
EV_DYNAMIC_LIST_I
ensure EV_DYNAMIC_LIST_I
not_void: Result /= Void
default_key_processing_handler: PREDICATE [ANY, TUPLE [EV_KEY]]
`Current'
`True'
EV_WIDGET_I
deny_cursor: EV_POINTER_STYLE
EV_PICK_AND_DROPABLE_I
foreground_color: EV_COLOR
EV_COLORIZABLE_I
generating_type: STRING_8
ANY
ensure ANY
generating_type_not_void: Result /= Void
generating_type_not_empty: not Result.is_empty
generator: STRING_8
ANY
ensure ANY
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
help_context: FUNCTION [ANY, TUPLE, EV_HELP_CONTEXT]
EV_HELP_CONTEXTABLE_I
ensure EV_HELP_CONTEXTABLE_I
current_if_exists: internal_help_context /= Void implies Result = internal_help_context
i_th (i: INTEGER_32): EV_WIDGET
`i'
EV_DYNAMIC_LIST_I
require EV_DYNAMIC_LIST_I
i_within_bounds: i > 0 and then i <= count
ensure EV_DYNAMIC_LIST_I
not_void: Result /= Void
index: INTEGER_32
EV_DYNAMIC_LIST_I
index_of (v: like item; i: INTEGER_32): INTEGER_32
`v'
`i'
EV_DYNAMIC_LIST_I
require EV_DYNAMIC_LIST_I
positive_occurrences: i > 0
internal_pointer_style: EV_POINTER_STYLE
EV_WIDGET_I
is_dock_executing: BOOLEAN
`Current'
EV_DOCKABLE_SOURCE_I
is_dockable: BOOLEAN
`Current'
EV_DOCKABLE_SOURCE_I
is_external_docking_enabled: BOOLEAN
`Current'
EV_DOCKABLE_SOURCE_I
is_external_docking_relative: BOOLEAN
`Current'
`Current'
EV_DOCKABLE_SOURCE_I
is_homogeneous: BOOLEAN
item: EV_WIDGET
EV_DYNAMIC_LIST_I
require EV_CONTAINER_I
True
require EV_DYNAMIC_LIST_I
readable: index > 0 and then index <= count
ensure EV_DYNAMIC_LIST_I
not_void: Result /= Void
merged_radio_button_groups: ARRAYED_LIST [EV_CONTAINER]
`Result'
`Current'
EV_CONTAINER_I
ensure EV_CONTAINER_I
current_not_included: Result /= Void implies not Result.has (interface)
not_external_docking_enabled: BOOLEAN
`is_externally_dockable'
`is_externally_dockable'
`True'`is_externally_dockable'
EV_DOCKABLE_SOURCE_I
not_is_external_docking_relative: BOOLEAN
`Current'
`Current'
is_external_docking_relative
EV_DOCKABLE_SOURCE_I
off: BOOLEAN
EV_DYNAMIC_LIST_I
original_parent_position: INTEGER_32
EV_DOCKABLE_SOURCE_I
padding: INTEGER_32
ensure
positive: Result >= 0
parent: EV_CONTAINER
`Current'
`Current'
EV_WIDGET_I
pebble: ANY
EV_PICK_AND_DROPABLE_I
pebble_function: FUNCTION [ANY, TUPLE, ANY]
EV_PICK_AND_DROPABLE_I
pebble_positioning_enabled: BOOLEAN
`True'
pebble_x_positionpebble_y_position
`False'
EV_PICK_AND_DROPABLE_I
pebble_x_position: INTEGER_32
`Current'
EV_PICK_AND_DROPABLE_I
pebble_y_position: INTEGER_32
`Current'
EV_PICK_AND_DROPABLE_I
background_pixmap: EV_PIXMAP
`Current'
EV_PIXMAPABLE_I
pointer_position: EV_COORDINATE
`Current'
EV_WIDGET_I
ensure EV_WIDGET_I
result_not_void: Result /= Void
pointer_style: EV_POINTER_STYLE
`set_pointer_position'
EV_WIDGET_I
real_source: EV_DOCKABLE_SOURCE
`Result'
`Current'
EV_DOCKABLE_SOURCE_I
real_target: EV_DOCKABLE_TARGET
`Result'
`Current'
EV_WIDGET_I
retrieve_item_by_data (data: ANY; should_compare_objects: BOOLEAN): EV_WIDGET
`Result'`Current'
`some_data'
`should_compare_objects'
EV_DYNAMIC_LIST_I
retrieve_items_by_data (data: ANY; should_compare_objects: BOOLEAN): ARRAYED_LIST [EV_WIDGET]
`Result'`Current'
`some_data'
`should_compare_objects'
EV_DYNAMIC_LIST_I
feature
count: INTEGER_32
EV_DYNAMIC_LIST_I
height: INTEGER_32
EV_POSITIONED_I
minimum_height: INTEGER_32
EV_POSITIONED_I
minimum_width: INTEGER_32
EV_POSITIONED_I
screen_x: INTEGER_32
EV_WIDGET_I
screen_y: INTEGER_32
EV_WIDGET_I
width: INTEGER_32
EV_POSITIONED_I
x_position: INTEGER_32
x_position
EV_POSITIONED_I
y_position: INTEGER_32
y_position
EV_POSITIONED_I
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 (other /= Void and then 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 is_deep_equal (other: EV_BOX_I): BOOLEAN
`Current'`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
is_equal (other: EV_BOX_I): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
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: EV_BOX_I): 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
closest_dockable_target: EV_DOCKABLE_TARGET
`Result'is_dockable
`Result'`Void'
EV_DOCKABLE_SOURCE_I
ensure EV_DOCKABLE_SOURCE_I
result_is_dockable: Result /= Void implies Result.is_docking_enabled
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
get_next_target (a_widget: EV_WIDGET): EV_DOCKABLE_TARGET
`Result'is_dockable
`current_target'
`Result'`Void'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
a_widget_not_void: a_widget /= Void
ensure EV_DOCKABLE_SOURCE_I
result_is_dockable: Result /= Void implies Result.is_docking_enabled
has (v: like item): BOOLEAN
`v'
EV_DYNAMIC_LIST_I
require EV_DYNAMIC_LIST_I
v_not_void: v /= Void
internal_non_sensitive: BOOLEAN
`Current'
interface
EV_SENSITIVE_I
is_destroyed: BOOLEAN
`Current'
EV_ANY_I
is_docking_enabled: BOOLEAN
`Current'
EV_DOCKABLE_TARGET_I
is_transport_enabled: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_configurable_target_menu: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_drag_and_drop: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_pick_and_drop: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_target_menu: BOOLEAN
EV_PICK_AND_DROPABLE_I
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))
user_is_sensitive: BOOLEAN
EV_SENSITIVE_I
valid_cursor (p: CURSOR): BOOLEAN
`p'
`p'
`Current'
EV_DYNAMIC_LIST_I
veto_dock_function: FUNCTION [ANY, TUPLE [EV_DOCKABLE_SOURCE], BOOLEAN]
EV_DOCKABLE_TARGET_I
feature
disable_dockable
`Current'
EV_DOCKABLE_SOURCE_I
ensure EV_DOCKABLE_SOURCE_I
not_is_dockable: not is_dockable
disable_docking
is_docking_enabled
`Current'
EV_DOCKABLE_TARGET_I
ensure EV_DOCKABLE_TARGET_I
not_dockable: not is_docking_enabled
id_not_stored_in_application: not (create {EV_ENVIRONMENT}).application.implementation.dockable_targets.has (interface.object_id)
disable_external_docking
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
ensure EV_DOCKABLE_SOURCE_I
not_externally_dockable: not is_external_docking_enabled
disable_external_docking_relative
`False'is_external_docking_relative
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
external_docking_enabled: is_external_docking_enabled
ensure EV_DOCKABLE_SOURCE_I
external_docking_not_relative: not is_external_docking_relative
disable_pebble_positioning
`False'pebble_positioning_enabled
EV_PICK_AND_DROPABLE_I
disable_transport
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
is_transport_disabled: not is_transport_enabled
enable_dockable
`Current'
EV_DOCKABLE_SOURCE_I
ensure EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
enable_docking
is_docking_enabled
`Current'
EV_DOCKABLE_TARGET_I
ensure EV_DOCKABLE_TARGET_I
is_dockable: is_docking_enabled
id_stored_in_application: (create {EV_ENVIRONMENT}).application.implementation.dockable_targets.has (interface.object_id)
enable_external_docking
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
ensure EV_DOCKABLE_SOURCE_I
is_externally_dockable: is_external_docking_enabled
enable_external_docking_relative
`True'is_external_docking_relative
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
external_docking_enabled: is_external_docking_enabled
ensure EV_DOCKABLE_SOURCE_I
external_docking_not_relative: is_external_docking_relative
enable_pebble_positioning
`True'pebble_positioning_enabled
EV_PICK_AND_DROPABLE_I
enable_transport
EV_PICK_AND_DROPABLE_I
require EV_PICK_AND_DROPABLE_I
pebble_not_void: pebble /= Void or pebble_function /= Void
ensure EV_PICK_AND_DROPABLE_I
is_transport_enabled: interface.implementation.is_transport_enabled
hide
`Current'
EV_WIDGET_I
internal_disable_dockable
disable_dockable
EV_DOCKABLE_SOURCE_I
internal_enable_dockable
enable_dockable
EV_DOCKABLE_SOURCE_I
merge_radio_button_groups (other: EV_CONTAINER)
`Current'`other'
EV_CONTAINER_I
remove_default_key_processing_handler
default_key_processing_handler
EV_WIDGET_I
ensure EV_WIDGET_I
default_key_processing_handler_removed: default_key_processing_handler = Void
remove_pebble
pebble
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
pebble_removed: pebble = Void and pebble_function = Void
is_transport_disabled: not is_transport_enabled
remove_real_source
real_source`Void'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
ensure EV_DOCKABLE_SOURCE_I
real_source_void: real_source = Void
remove_real_target
real_target`Void'
EV_WIDGET_I
ensure EV_WIDGET_I
real_target_void: real_target = Void
reset_pebble_function
pebble_function
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
pebble_function_preserved: pebble_function = old pebble_function
pebble_without_function: pebble_function = Void implies (pebble = old pebble)
pebble_with_function: pebble_function /= Void implies pebble = Void
set_accept_cursor (a_cursor: like accept_cursor)
`a_cursor'
pebble
EV_PICK_AND_DROPABLE_I
set_actual_drop_target_agent (an_agent: like actual_drop_target_agent)
`an_agent'actual_drop_target_agent
EV_WIDGET_I
require EV_WIDGET_I
an_agent_not_void: an_agent /= Void
ensure EV_WIDGET_I
assigned: actual_drop_target_agent = an_agent
set_configurable_target_menu_handler (a_handler: like configurable_target_menu_handler)
`a_handler'
EV_PICK_AND_DROPABLE_I
set_configurable_target_menu_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_target_menu: mode_is_configurable_target_menu
set_default_colors
EV_COLORIZABLE_I
set_default_key_processing_handler (a_handler: like default_key_processing_handler)
default_key_processing_handler`a_handler'
EV_WIDGET_I
set_deny_cursor (a_cursor: like deny_cursor)
`a_cursor'
pebble
EV_PICK_AND_DROPABLE_I
set_drag_and_drop_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_drag_and_drop: mode_is_drag_and_drop
set_focus
EV_WIDGET_I
set_pebble (a_pebble: like pebble)
`a_pebble'pebble
EV_PICK_AND_DROPABLE_I
require EV_PICK_AND_DROPABLE_I
a_pebble_not_void: a_pebble /= Void
ensure EV_PICK_AND_DROPABLE_I
pebble_assigned: interface.implementation.pebble = a_pebble
is_transport_enabled: interface.implementation.is_transport_enabled
set_pebble_function (a_function: FUNCTION [ANY, TUPLE, ANY])
`a_function'pebble_function
EV_PICK_AND_DROPABLE_I
require EV_PICK_AND_DROPABLE_I
a_function_not_void: a_function /= Void
ensure EV_PICK_AND_DROPABLE_I
pebble_function_assigned: interface.implementation.pebble_function = a_function
is_transport_enabled: interface.implementation.is_transport_enabled
set_pebble_position (a_x, a_y: INTEGER_32)
`Current'
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
pick_x_assigned: pick_x = a_x
pick_y_assigned: pick_y = a_y
set_pick_and_drop_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_pick_and_drop: mode_is_pick_and_drop
set_real_source (dockable_source: EV_DOCKABLE_SOURCE)
`dockable_source'
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
dockable_source_not_void: dockable_source /= Void
ensure EV_DOCKABLE_SOURCE_I
real_source_assigned: real_source = dockable_source
set_real_target (a_target: EV_DOCKABL