indexing
description: "Object brush which can be selected into a DC."
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class interface
WEL_BRUSH
create
make_by_sys_color (sys_color: INTEGER)
sys_color
WEL_COLOR_CONSTANTSsys_color
ensure
shared: shared
item_not_void: item /= default_pointer
make_solid (a_color: WEL_COLOR_REF)
a_color
require
a_color_not_void: a_color /= void
ensure
color_set: exists implies color.item = a_color.item
item_not_void: item /= default_pointer
make_hatch (a_hatch: INTEGER; a_color: WEL_COLOR_REF)
hatch_stylea_color
WEL_HS_CONSTANTSa_hatch
require
a_color_not_void: a_color /= void
ensure
hatch_set: exists implies hatch = a_hatch
color_set: exists implies color.item = a_color.item
item_not_void: item /= default_pointer
make_by_pattern (bitmap: WEL_BITMAP)
bitmap
require
bitmap_not_void: bitmap /= void
bitmap_exists: bitmap.exists
ensure
item_not_void: item /= default_pointer
make_indirect (a_log_brush: WEL_LOG_BRUSH)
a_log_brush
require
a_log_brush_not_void: a_log_brush /= void
ensure
item_not_void: item /= default_pointer
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
hatch: INTEGER
require
exists: exists
item: POINTER
WEL_ANY
log_brush: WEL_LOG_BRUSH
Current
require
exists: exists
ensure
result_not_void: Result /= void
style: INTEGER
require
exists: exists
feature
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
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_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_BRUSH