indexing
description: "Contains information about character formatting in a rich edit control."
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class interface
WEL_CHARACTER_FORMAT
create
make
make_by_pointer (a_pointer: POINTER)
itema_pointer
item
a_pointer
WEL_ANY
ensure WEL_ANY
item_set: item = a_pointer
shared: shared
feature
char_set: INTEGER
char_set
WEL_LOG_FONT
effects: INTEGER
WEL_CFE_CONSTANTS
face_name: STRING
ensure
result_not_void: Result /= void
height: INTEGER
item: POINTER
WEL_ANY
mask: INTEGER
WEL_CFM_CONSTANTS
max_face_name_length: INTEGER
offset: INTEGER
pitch_and_family: INTEGER
pitch_and_familyWEL_LOG_FONT
text_color: WEL_COLOR_REF
ensure
result_not_void: Result /= void
feature
structure_size: INTEGER
ensure WEL_STRUCTURE
positive_result: Result > 0
feature
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
has_effects (an_effects: INTEGER): BOOLEAN
an_effectseffects
WEL_CFE_CONSTANTSan_effects
has_mask (a_mask: INTEGER): BOOLEAN
a_maskmask
WEL_CFM_CONSTANTSa_mask
shared: BOOLEAN
item
item
destroy_item
item
WEL_ANY
feature
set_shared
shared
WEL_ANY
ensure WEL_ANY
shared: shared
set_unshared
shared
WEL_ANY
ensure WEL_ANY
unshared: not shared
feature
add_effects (an_effects: INTEGER)
an_effectseffects
WEL_CFE_CONSTANTSa_mask
ensure
has_effects: has_effects (an_effects)
add_mask (a_mask: INTEGER)
a_maskmask
WEL_CFM_CONSTANTSa_mask
ensure
has_mask: has_mask (a_mask)
remove_effects (an_effects: INTEGER)
an_effectseffects
WEL_CFE_CONSTANTSa_mask
ensure
has_not_effects: not has_effects (an_effects)
remove_mask (a_mask: INTEGER)
a_maskmask
WEL_CFM_CONSTANTSa_mask
ensure
has_not_mask: not has_mask (a_mask)
set_all_masks
mask
set_bold
set_char_set (a_char_set: INTEGER)
char_seta_char_set
ensure
char_set_set: char_set = a_char_set
set_default_format
set_effects (an_effects: INTEGER)
effectsan_effects
WEL_CFE_CONSTANTSa_mask
ensure
effects_set: effects = an_effects
set_face_name (a_face_name: STRING)
face_namea_face_name
require
a_face_name_not_void: a_face_name /= void
valid_count: a_face_name.count <= max_face_name_length
ensure
face_name_set: face_name.is_equal (a_face_name)
set_height (a_height: INTEGER)
heighta_height
ensure
height_set: height = a_height * 20
set_italic
set_item (an_item: POINTER)
iteman_item
WEL_ANY
ensure WEL_ANY
item_set: item = an_item
set_mask (a_mask: INTEGER)
maska_mask
WEL_CFM_CONSTANTSa_mask
ensure
mask_set: mask = a_mask
set_offset (an_offset: INTEGER)
offsetan_offset
ensure
offset_set: offset = an_offset
set_pitch_and_family (a_pitch_and_family: INTEGER)
pitch_and_familya_pitch_and_family
ensure
pitch_and_family_set: pitch_and_family = a_pitch_and_family
set_protected
set_strike_out
set_text_color (a_color: WEL_COLOR_REF)
text_colora_text_color
ensure
text_color_set: text_color.item = a_color.item
set_underline
unset_bold
unset_italic
unset_protected
unset_strike_out
unset_underline
feature
dispose
Current
Current
WEL_ANY
feature
to_integer: INTEGER
item
WEL_ANY
ensure WEL_ANY
Result = cwel_pointer_to_integer (item)
feature
initialize
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
initialize_with_character (a_character: CHARACTER)
a_character
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
memory_copy (source_pointer: POINTER; length: INTEGER)
lengthsource_pointeritem
WEL_STRUCTURE
require WEL_STRUCTURE
length_small_enough: length <= structure_size
length_large_enough: length > 0
exists: exists
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- WEL_CHARACTER_FORMAT