indexing
description: "This class stores information deliverdwith notifactions to header controls"
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class interface
WEL_HD_NOTIFY
create
make
item
WEL_STRUCTURE
ensure WEL_STRUCTURE
not_shared: not shared
make_by_pointer (a_pointer: POINTER)
itema_pointer
item
a_pointer
WEL_ANY
ensure WEL_ANY
item_set: item = a_pointer
shared: shared
make_by_nmhdr (a_nmhdr: WEL_NMHDR)
a_nmhdr
require
a_nmhdr_not_void: a_nmhdr /= void
feature
button_index: INTEGER
require
exists: exists
header_item: WEL_HD_ITEM
WEL_HD_ITEM
require
exists: exists
item: POINTER
WEL_ANY
item_index: INTEGER
require
exists: exists
nmhdr: WEL_NMHDR
require
exists: exists
feature
structure_size: INTEGER
ensure WEL_STRUCTURE
positive_result: Result > 0
feature
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
flag_set (flags, mask: INTEGER): BOOLEAN
maskflags
WEL_BIT_OPERATIONS
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
set_button_index (value: INTEGER)
require
exists: exists
good_value: value >= 0 and value <= 2
set_header_item (hd_item: WEL_HD_ITEM)
WEL_HD_ITEM
require
exists: exists
hd_item_exists: hd_item /= void and then hd_item.exists
set_item (an_item: POINTER)
iteman_item
WEL_ANY
ensure WEL_ANY
item_set: item = an_item
set_item_index (value: INTEGER)
require
exists: exists
feature
dispose
Current
Current
WEL_ANY
feature
to_integer: INTEGER
item
WEL_ANY
ensure WEL_ANY
Result = cwel_pointer_to_integer (item)
feature
clear_flag (flags, mask: INTEGER): INTEGER
maskflags
WEL_BIT_OPERATIONS
ensure WEL_BIT_OPERATIONS
flag_unset: not flag_set (Result, mask)
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
set_flag (flags, mask: INTEGER): INTEGER
maskflags
WEL_BIT_OPERATIONS
ensure WEL_BIT_OPERATIONS
flag_set: flag_set (Result, mask)
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- WEL_HD_NOTIFY