indexing
	description: "Facilities for accessing standardized colors."
	legal: "See notice at end of class."
	status: "See notice at end of class."
	keywords: "color, default"
	date: "$Date: 2007-01-04 17:21:29 -0800 (Thu, 04 Jan 2007) $"
	revision: "$Revision: 65794 $"

class interface
	EV_STOCK_COLORS


create 
	default_create
			-- Process instances of classes with no creation clause.
			-- (Default: do nothing.)
			-- (from ANY)

feature -- Access

	black: EV_COLOR
			-- Black.
		ensure
			result_not_void: Result /= Void

	blue: EV_COLOR
			-- Blue.
		ensure
			result_not_void: Result /= Void

	color_3d_face: EV_COLOR
			-- Used for dialog box background.
			-- Name: "color dialog".
			-- Was declared in EV_STOCK_COLORS as synonym of color_dialog.
		ensure
			result_not_void: Result /= Void

	color_3d_highlight: EV_COLOR
			-- Used for 3D-effects (light color)
			-- Name "color highlight"
		ensure
			result_not_void: Result /= Void

	color_3d_shadow: EV_COLOR
			-- Used for 3D-effects (dark color)
			-- Name "color shadow"
		ensure
			result_not_void: Result /= Void

	color_dialog: EV_COLOR
			-- Used for dialog box background.
			-- Name: "color dialog".
			-- Was declared in EV_STOCK_COLORS as synonym of color_3d_face.
		ensure
			result_not_void: Result /= Void

	color_read_only: EV_COLOR
			-- Used for background of editable when read-only.
			-- Name: "color read only".
		ensure
			result_not_void: Result /= Void

	color_read_write: EV_COLOR
			-- Used for background of editable when write/write enabled.
			-- Name: "color read write".
		ensure
			result_not_void: Result /= Void

	cyan: EV_COLOR
			-- Cyan.
		ensure
			result_not_void: Result /= Void

	dark_blue: EV_COLOR
			-- Dark blue.
		ensure
			result_not_void: Result /= Void

	dark_cyan: EV_COLOR
			-- Dark cyan.
		ensure
			result_not_void: Result /= Void

	dark_gray: EV_COLOR
			-- Dark grey.
			-- Was declared in EV_STOCK_COLORS as synonym of Dark_grey.
		ensure
			result_not_void: Result /= Void

	dark_green: EV_COLOR
			-- Dark green.
		ensure
			result_not_void: Result /= Void

	dark_grey: EV_COLOR
			-- Dark grey.
			-- Was declared in EV_STOCK_COLORS as synonym of Dark_gray.
		ensure
			result_not_void: Result /= Void

	dark_magenta: EV_COLOR
			-- Dark magenta.
		ensure
			result_not_void: Result /= Void

	dark_red: EV_COLOR
			-- Dark red.
		ensure
			result_not_void: Result /= Void

	dark_yellow: EV_COLOR
			-- Dark yellow.
		ensure
			result_not_void: Result /= Void

	default_background_color: EV_COLOR
			-- Used for background of most widgets.
			-- Name: "default background".
		ensure
			result_not_void: Result /= Void

	default_foreground_color: EV_COLOR
			-- Used for foreground of most widgets.
			-- Name: "default foreground".
		ensure
			result_not_void: Result /= Void

	generating_type: STRING_8
			-- Name of current object's generating type
			-- (type of which it is a direct instance)
			-- (from ANY)
		ensure -- from ANY
			generating_type_not_void: Result /= Void
			generating_type_not_empty: not Result.is_empty

	generator: STRING_8
			-- Name of current object's generating class
			-- (base class of the type of which it is a direct instance)
			-- (from ANY)
		ensure -- from ANY
			generator_not_void: Result /= Void
			generator_not_empty: not Result.is_empty

	gray: EV_COLOR
			-- Grey.
			-- Was declared in EV_STOCK_COLORS as synonym of Grey.
		ensure
			result_not_void: Result /= Void

	green: EV_COLOR
			-- Green.
		ensure
			result_not_void: Result /= Void

	grey: EV_COLOR
			-- Grey.
			-- Was declared in EV_STOCK_COLORS as synonym of Gray.
		ensure
			result_not_void: Result /= Void

	magenta: EV_COLOR
			-- Magenta.
		ensure
			result_not_void: Result /= Void

	red: EV_COLOR
			-- Red.
		ensure
			result_not_void: Result /= Void

	white: EV_COLOR
			-- White.
		ensure
			result_not_void: Result /= Void

	yellow: EV_COLOR
			-- Yellow.
		ensure
			result_not_void: Result /= Void
	
feature -- Comparison

	frozen deep_equal (some: ?ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void
			-- or attached to isomorphic object structures?
			-- (from ANY)
		ensure -- from ANY
			shallow_implies_deep: standard_equal (some, other) implies Result
			both_or_none_void: (some = Void) implies (Result = (other = Void))
			same_type: (Result and (some /= Void)) implies (other /= Void and then some.same_type (other))
			symmetric: Result implies deep_equal (other, some)

	frozen equal (some: ?ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void or attached
			-- to objects considered equal?
			-- (from ANY)
		ensure -- from ANY
			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))

	frozen is_deep_equal (other: EV_STOCK_COLORS): BOOLEAN
			-- Are `Current' and `other' attached to isomorphic object structures?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			shallow_implies_deep: standard_is_equal (other) implies Result
			same_type: Result implies same_type (other)
			symmetric: Result implies other.is_deep_equal (Current)

	is_equal (other: EV_STOCK_COLORS): BOOLEAN
			-- Is `other' attached to an object considered
			-- equal to current object?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			symmetric: Result implies other.is_equal (Current)
			consistent: standard_is_equal (other) implies Result

	frozen standard_equal (some: ?ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void or attached to
			-- field-by-field identical objects of the same type?
			-- Always uses default object comparison criterion.
			-- (from ANY)
		ensure -- from ANY
			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))

	frozen standard_is_equal (other: EV_STOCK_COLORS): BOOLEAN
			-- Is `other' attached to an object of the same type
			-- as current object, and field-by-field identical to it?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			same_type: Result implies same_type (other)
			symmetric: Result implies other.standard_is_equal (Current)
	
feature -- Status report

	conforms_to (other: ANY): BOOLEAN
			-- Does type of current object conform to type
			-- of `other' (as per Eiffel: The Language, chapter 13)?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void

	same_type (other: ANY): BOOLEAN
			-- Is type of current object identical to type of `other'?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			definition: Result = (conforms_to (other) and other.conforms_to (Current))
	
feature -- Duplication

	copy (other: EV_STOCK_COLORS)
			-- Update current object using fields of object attached
			-- to `other', so as to yield equal objects.
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
			type_identity: same_type (other)
		ensure -- from ANY
			is_equal: is_equal (other)

	frozen deep_copy (other: EV_STOCK_COLORS)
			-- Effect equivalent to that of:
			--		copy (`other' . deep_twin)
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			deep_equal: deep_equal (Current, other)

	frozen deep_twin: EV_STOCK_COLORS
			-- New object structure recursively duplicated from Current.
			-- (from ANY)
		ensure -- from ANY
			deep_twin_not_void: Result /= Void
			deep_equal: deep_equal (Current, Result)

	frozen standard_copy (other: EV_STOCK_COLORS)
			-- Copy every field of `other' onto corresponding field
			-- of current object.
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
			type_identity: same_type (other)
		ensure -- from ANY
			is_standard_equal: standard_is_equal (other)

	frozen standard_twin: EV_STOCK_COLORS
			-- New object field-by-field identical to `other'.
			-- Always uses default copying semantics.
			-- (from ANY)
		ensure -- from ANY
			standard_twin_not_void: Result /= Void
			equal: standard_equal (Result, Current)

	frozen twin: EV_STOCK_COLORS
			-- New object equal to `Current'
			-- twin calls copy; to change copying/twining semantics, redefine copy.
			-- (from ANY)
		ensure -- from ANY
			twin_not_void: Result /= Void
			is_equal: Result.is_equal (Current)
	
feature -- Basic operations

	all_colors: LINKED_LIST [EV_COLOR]
			-- A list of all the basic colors.
		ensure
			result_not_void: Result /= Void
			all_colors_included: Result.count = 16

	frozen default: ?EV_STOCK_COLORS
			-- Default value of object's type
			-- (from ANY)

	frozen default_pointer: POINTER
			-- Default value of type `POINTER'
			-- (Avoid the need to write `p'.default for
			-- some `p' of type `POINTER'.)
			-- (from ANY)

	default_rescue
			-- Process exception for routines with no Rescue clause.
			-- (Default: do nothing.)
			-- (from ANY)

	frozen do_nothing
			-- Execute a null action.
			-- (from ANY)
	
feature -- Output

	io: STD_FILES
			-- Handle to standard file setup
			-- (from ANY)
		ensure -- from ANY
			io_not_void: Result /= Void

	out: STRING_8
			-- New string containing terse printable representation
			-- of current object
			-- (from ANY)
		ensure -- from ANY
			out_not_void: Result /= Void

	print (some: ?ANY)
			-- Write terse external representation of `some'
			-- on standard output.
			-- (from ANY)

	frozen tagged_out: STRING_8
			-- New string containing terse printable representation
			-- of current object
			-- (from ANY)
		ensure -- from ANY
			tagged_out_not_void: Result /= Void
	
feature -- Platform

	operating_environment: OPERATING_ENVIRONMENT
			-- Objects available from the operating system
			-- (from ANY)
		ensure -- from ANY
			operating_environment_not_void: Result /= Void
	
invariant
		-- from ANY
	reflexive_equality: standard_is_equal (Current)
	reflexive_conformance: conforms_to (Current)

indexing
	copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
		Eiffel Software
		356 Storke Road, Goleta, CA 93117 USA
		Telephone 805-685-1006, Fax 805-685-6869
		Website http://www.eiffel.com
		Customer support http://support.eiffel.com
	]"

end -- class EV_STOCK_COLORS