indexing
description: "[
Character format containing color, font and effects information for text formatting.
]"
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
class interface
EV_CHARACTER_FORMAT
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_font (a_font: EV_FONT)
`Current'`a_font'
require
font_not_void: a_font /= Void
ensure
font_set: font.is_equal (a_font)
make_with_font_and_color (a_font: EV_FONT; a_color, a_background_color: EV_COLOR)
`Current'`a_font'`a_color'
`a_background_color'
require
font_not_void: a_font /= Void
color_not_void: a_color /= Void
background_color_not_void: a_background_color /= Void
ensure
font_set: font.is_equal (a_font)
color_set: color.is_equal (a_color)
make_with_values (a_font: EV_FONT; a_color, a_background_color: EV_COLOR; an_effect: EV_CHARACTER_FORMAT_EFFECTS)
`Current'`a_font'`a_color'`a_background_color'`an_effect'
require
font_not_void: a_font /= Void
color_not_void: a_color /= Void
background_color_not_void: a_background_color /= Void
effect_not_void: an_effect /= Void
ensure
font_set: font.is_equal (a_font)
color_set: color.is_equal (a_color)
effect_set: effects.is_equal (an_effect)
feature
background_color: EV_COLOR
require
not_destroyed: not is_destroyed
ensure
result_not_void: Result /= Void
color: EV_COLOR
require
not_destroyed: not is_destroyed
ensure
result_not_void: Result /= Void
data: ANY
EV_ANY
effects: EV_CHARACTER_FORMAT_EFFECTS
font
require
not_destroyed: not is_destroyed
ensure
result_not_void: Result /= Void
font: EV_FONT
require
not_destroyed: not is_destroyed
ensure
result_not_void: Result /= Void
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))
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
is_equal (other: like Current): BOOLEAN
`Current'`other'
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
set_background_color (a_color: EV_COLOR)
`a_color'
require
not_destroyed: not is_destroyed
color_not_void: a_color /= Void
ensure
color_set: background_color.is_equal (a_color)
set_color (a_color: EV_COLOR)
`a_color'
require
not_destroyed: not is_destroyed
color_not_void: a_color /= Void
ensure
color_set: color.is_equal (a_color)
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
set_effects (an_effect: EV_CHARACTER_FORMAT_EFFECTS)
`an_effect'effects
require
not_destroyed: not is_destroyed
effect_not_void: an_effect /= Void
ensure
effects_set: effects.is_equal (an_effect)
set_font (a_font: EV_FONT)
`a_font'
require
not_destroyed: not is_destroyed
font_not_void: a_font /= Void
ensure
font_set: font.is_equal (a_font)
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
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
font_not_void: font /= Void
color_not_void: color /= Void
effects_not_void: effects /= 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_CHARACTER_FORMAT