indexing
description: "Drawing object used to draw lines and borders."
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class interface
WEL_PEN
create
make (a_style, a_width: INTEGER; a_color: WEL_COLOR_REF)
a_stylea_widtha_color
WEL_PS_CONSTANTSa_style
require
valid_pen_style_constant: valid_pen_style_constant (a_style)
positive_width: a_width >= 0
color_not_void: a_color /= void
ensure
pen_created: item /= default_pointer
make_solid (a_width: INTEGER; a_color: WEL_COLOR_REF)
a_widtha_color
require
positive_width: a_width >= 0
a_color_not_void: a_color /= void
ensure
style_set: exists implies style = ps_solid
width_set: exists implies width = a_width
color_set: exists implies color.item = a_color.item
make_indirect (a_log_pen: WEL_LOG_PEN)
a_log_pen
require
a_log_pen_not_void: a_log_pen /= void
make_by_pointer (a_pointer: POINTER)
itema_pointer
item
a_pointer
WEL_GDI_ANY
ensure WEL_ANY
item_set: item = a_pointer
shared: shared
feature
color: WEL_COLOR_REF
require
exists: exists
ensure
result_not_void: Result /= void
gdi_objects_count: INTEGER
WEL_GDI_ANY
item: POINTER
WEL_ANY
log_pen: WEL_LOG_PEN
Current
require
exists: exists
ensure
result_not_void: Result /= void
style: INTEGER
require
exists: exists
ensure
valid_result: valid_pen_style_constant (Result)
width: INTEGER
require
exists: exists
ensure
positive_result: Result >= 0
feature
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
shared: BOOLEAN
item
item
destroy_item
item
WEL_ANY
feature
valid_pen_style_constant (c: INTEGER): BOOLEAN
c
WEL_PS_CONSTANTS
feature
set_shared
shared
WEL_ANY
ensure WEL_ANY
shared: shared
set_unshared
shared
WEL_ANY
ensure WEL_ANY
unshared: not shared
feature
set_item (an_item: POINTER)
iteman_item
WEL_ANY
ensure WEL_ANY
item_set: item = an_item
feature
delete
Current
WEL_REFERENCE_TRACKABLE
require WEL_REFERENCE_TRACKABLE
reference_not_tracked: not reference_tracked
ensure WEL_REFERENCE_TRACKABLE
destroyed: not shared implies not exists
dispose
Current
delete
WEL_REFERENCE_TRACKABLE
feature
to_integer: INTEGER
item
WEL_ANY
ensure WEL_ANY
Result = cwel_pointer_to_integer (item)
feature
reference_tracked: BOOLEAN
Current
WEL_REFERENCE_TRACKABLE
references_count: INTEGER
WEL_REFERENCE_TRACKABLE
feature
decrement_reference
delete
WEL_REFERENCE_TRACKABLE
require WEL_REFERENCE_TRACKABLE
exists: exists
tracking_references_started: reference_tracked
enable_reference_tracking
references_tracked
WEL_REFERENCE_TRACKABLE
require WEL_REFERENCE_TRACKABLE
exists: exists
tracking_reference_not_started: not reference_tracked
increment_reference
WEL_REFERENCE_TRACKABLE
require WEL_REFERENCE_TRACKABLE
exists: exists
tracking_references_started: reference_tracked
object_id: INTEGER
Current
WEL_REFERENCE_TRACKABLE
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- WEL_PEN