indexing
description: "Apearance of a screen pointer cursor, typically moved by a mouse."
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "mouse, pointer, cursor, arrow"
date: "$Date: 2006-07-13 10:29:33 -0700 (Thu, 13 Jul 2006) $"
revision: "$Revision: 61289 $"
class interface
EV_POINTER_STYLE
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_predefined (a_contants: INTEGER_32)
require
valid: (create {EV_POINTER_STYLE_CONSTANTS}).is_valid (a_contants)
make_with_pixel_buffer (a_pixel_buffer: EV_PIXEL_BUFFER; a_x, a_y: INTEGER_32)
`a_pixel_buffer'`a_x'`a_y'
require
a_pixel_buffer_not_void: a_pixel_buffer /= Void
make_with_pixmap (a_pixmap: EV_PIXMAP; a_x, a_y: INTEGER_32)
`a_pixmap'`a_x'`a_y'
require
a_pixmap_not_void: a_pixmap /= Void
make_with_cursor (a_cursor: EV_CURSOR)
`a_cursor'
convert
make_with_cursor ({EV_CURSOR})
feature
data: ANY
EV_ANY
generating_type: STRING_8
ANY
generator: STRING_8
ANY
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))
is_equal (other: like Current): 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: 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
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
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
create_implementation
implementation
require EV_ANY
implementation_not_already_created: implementation = Void
ensure EV_ANY
implementation_created: implementation /= Void
implementation: EV_POINTER_STYLE_I
feature
destroy
`Current'
EV_ANY
ensure EV_ANY
is_destroyed: is_destroyed
set_x_hotspot (a_x: INTEGER_32)
x_hotspot`a_x'
require
not_destroyed: not is_destroyed
valid: 0 <= a_x and a_x <= width
ensure
set: x_hotspot = a_x
set_y_hotspot (a_y: INTEGER_32)
y_hotspot`a_y'
require
not_destoryed: not is_destroyed
valid: 0 <= a_y and a_y <= height
ensure
set: y_hotspot = a_y
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
feature
height: INTEGER_32
width: INTEGER_32
x_hotspot: INTEGER_32
ensure
valid: Result <= width
y_hotspot: INTEGER_32
ensure
valid: Result <= height
feature
is_destroyed: BOOLEAN
`Current'
EV_ANY
ensure EV_ANY
bridge_ok: Result = implementation.is_destroyed
invariant
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_POINTER_STYLE