INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Defines the style, color and pattern of ", "a physical brush. ", "WEL: library of reusable components for Eiffel. ", "Based on WEL library for ISE Eiffel, used with permission. "
project: "Windows Eiffel Library"
copyright: "(c) 1986-1997 Interactive Software Engineering Inc. ", "Modifications and extensions: ", "(c) 1997 Object Tools ", "All rights reserved. Duplication and distribution prohibited", "May be used only with Visual Eiffel under terms of user ", "license "
cluster: wel
class WEL_LOG_BRUSH
inherit

WEL_STRUCTURE
rename
make as structure_make
end
creation

make,
make_by_brush
feature {NONE}-- Initialization

make (a_style: INTEGER; a_color: WEL_COLOR_REF; a_hatch: INTEGER)
-- Make a log brush using `a_style', `a_color' and
-- `a_hatch' type.
-- See class WEL_BRUSH_STYLE_CONSTANTS for `a_style'
-- values.
-- See class WEL_HS_CONSTANTS for `a_hatch' values.
require
color_not_void: a_color /= void
ensure
style_set: style = a_style
color_set: color.is_equal (a_color)
hatch_set: hatch = a_hatch

make_by_brush (brush: WEL_BRUSH)
-- Make a log brush using the information of `brush'.
require
brush_not_void: brush /= void
brush_exists: brush.exists
ensure
style_set: style = brush.style
color_set: color.is_equal (brush.color)
hatch_set: hatch = brush.hatch
feature -- Access

style: INTEGER
-- Brush style

color: WEL_COLOR_REF
-- Brush color
ensure
result_not_void: Result /= void

hatch: INTEGER
-- Brush hatch
feature -- Element change

set_style (a_style: INTEGER)
-- Set `style' with `a_style'
ensure
style_set: style = a_style

set_color (a_color: WEL_COLOR_REF)
-- Set `color' with `a_color'
require
a_color_not_void: a_color /= void
ensure
color_set: color.item = a_color.item

set_hatch (a_hatch: INTEGER)
-- Set `hatch' with `a_hatch'
ensure
hatch_set: hatch = a_hatch
feature -- Measurement

structure_size: INTEGER
-- Size to allocate (in bytes)
invariant

color_not_void: color /= void
end -- class WEL_LOG_BRUSH

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES