    indexing
    	description: "Process creation startup information."
    	legal: "See notice at end of class."
    	status: "See notice at end of class."
    	date: "$Date: 2006-03-22 23:29:03 -0800 (Wed, 22 Mar 2006) $"
    	revision: "$Revision: 57641 $"

    class interface
    	WEL_STARTUP_INFO

    create
    	make
    			-- Allocate item.
    		ensure -- from WEL_STRUCTURE
    			not_shared: not shared

    feature -- Access

    	background_blue: INTEGER_32
    			-- Add blue to background
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	background_green: INTEGER_32
    			-- Add green to background
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	background_intensity: INTEGER_32
    			-- Increase console background intensity
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	background_red: INTEGER_32
    			-- Add red to background
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	fill_attributes: INTEGER_32
    			-- Color used for background and text of a console application
    			-- See class WEL_FILL_ATTRIBUTE_CONSTANTS for possible value.
    		require
    			flag_has_startf_use_fill_attributes: flag_set (flags, startf_use_fill_attributes)

    	flags: INTEGER_32
    			-- Valid fields
    			-- See WEL_STARTUP_FLAGS for possible values.

    	foreground_blue: INTEGER_32
    			-- Add blue to foreground
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	foreground_green: INTEGER_32
    			-- Add green to foreground
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	foreground_intensity: INTEGER_32
    			-- Increase console foreground intensity
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	foreground_red: INTEGER_32
    			-- Add red to foreground
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	generating_type: STRING_8
    			-- Name of current object's generating type
    			-- (type of which it is a direct instance)
    			-- (from ANY)

    	generator: STRING_8
    			-- Name of current object's generating class
    			-- (base class of the type of which it is a direct instance)
    			-- (from ANY)

    	height: INTEGER_32
    			-- Height of new window if any
    		require
    			flag_has_startf_use_size: flag_set (flags, startf_use_size)

    	is_valid_fill_attributes (an_integer: INTEGER_32): BOOLEAN
    			-- Is `an_integer' a valid fill atrtibutes?
    			-- (from WEL_FILL_ATTRIBUTES_CONSTANTS)

    	is_valid_startup_flag (a_flag: INTEGER_32): BOOLEAN
    			-- Is `a_flag' a valid startup flag?
    			-- (from WEL_STARTUP_CONSTANTS)

    	is_valid_startup_flags (a_flags: INTEGER_32): BOOLEAN
    			-- Is `a_flags' a valid startup flags combination?
    			-- (from WEL_STARTUP_CONSTANTS)

    	item: POINTER
    			-- Generic Windows handle or structure pointer.
    			-- Can be a HWND, HICON, RECT *, WNDCLASS *, etc...
    			-- (from WEL_ANY)

    	show_command: INTEGER_32
    			-- Default show command used for a GUI application
    		require
    			flag_has_startf_use_show_window: flag_set (flags, startf_use_show_window)

    	startf_force_off_feedback: INTEGER_32
    			-- Feedback cursor forced off
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_force_on_feedback: INTEGER_32
    			-- Cursor set to feedback until window intialization is done
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_use_count_chars: INTEGER_32
    			-- Attributes x_character_count and y_character_count from WEL_STARTUP_INFO are meaningful
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_use_fill_attributes: INTEGER_32
    			-- Attribute fill_attributes from WEL_STARTUP_INFO is meaningful
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_use_position: INTEGER_32
    			-- Attributes x_offset and y_offset from WEL_STARTUP_INFO are meaningful
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_use_show_window: INTEGER_32
    			-- Attribute show_command from WEL_STARTUP_INFO is meaningful
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_use_size: INTEGER_32
    			-- Attributes width and height from WEL_STARTUP_INFO are meaningful
    			-- (from WEL_STARTUP_CONSTANTS)

    	startf_use_std_handles: INTEGER_32
    			-- Attributes std_input, std_output and std_error from WEL_STARTUP_INFO are meaningful
    			-- (from WEL_STARTUP_CONSTANTS)

    	std_error: POINTER
    			-- Standard error output process handle
    		require
    			flag_has_startf_use_std_handles: flag_set (flags, startf_use_std_handles)

    	std_input: POINTER
    			-- Standard input process handle
    		require
    			flag_has_startf_use_std_handles: flag_set (flags, startf_use_std_handles)

    	std_output: POINTER
    			-- Standard output process handle
    		require
    			flag_has_startf_use_std_handles: flag_set (flags, startf_use_std_handles)

    	title: STRING_32
    			-- Console application title

    	width: INTEGER_32
    			-- Width of new window if any
    		require
    			flag_has_startf_use_size: flag_set (flags, startf_use_size)

    	x_character_count: INTEGER_32
    			-- Console application screen buffer in character columns
    		require
    			flag_has_startf_use_count_chars: flag_set (flags, startf_use_count_chars)

    	x_offset: INTEGER_32
    			-- X offset, in pixels, of upper left corner of window
    			-- if a new window is created.
    		require
    			flag_has_startf_use_position: flag_set (flags, startf_use_position)

    	y_character_count: INTEGER_32
    			-- Console application screen buffer in character lines
    		require
    			flag_has_startf_use_count_chars: flag_set (flags, startf_use_count_chars)

    	y_offset: INTEGER_32
    			-- Y offset, in pixels, of upper left corner of window
    			-- if a new window is created.
    		require
    			flag_has_startf_use_position: flag_set (flags, startf_use_position)

    feature -- Measurement

    	structure_size: INTEGER_32
    			-- Size to allocate (in bytes)
    		ensure -- from WEL_STRUCTURE
    			positive_result: Result > 0

    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 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 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: like Current): 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

    	exists: BOOLEAN
    			-- Does the item exist?
    			-- (from WEL_ANY)
    		ensure -- from WEL_ANY
    			Result = (item /= default_pointer)

    	flag_set (flags, mask: INTEGER_32): BOOLEAN
    			-- Is `mask' set in flags?
    			-- (from WEL_BIT_OPERATIONS)

    	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))

    	shared: BOOLEAN
    			-- Is item shared by another object?
    			-- If False (by default), item will
    			-- be destroyed by destroy_item.
    			-- If True, item will not be destroyed.
    			-- (from WEL_ANY)

    feature -- Status setting

    	set_shared
    			-- Set shared to True.
    			-- (from WEL_ANY)
    		ensure -- from WEL_ANY
    			shared: shared

    	set_unshared
    			-- Set shared to False.
    			-- (from WEL_ANY)
    		ensure -- from WEL_ANY
    			unshared: not shared

    feature -- Element change

    	set_item (an_item: POINTER)
    			-- Set item with `an_item'
    			-- (from WEL_ANY)
    		ensure -- from WEL_ANY
    			item_set: item = an_item

    feature -- Removal

    	dispose
    			-- Destroy the inner structure of `Current'.
    			--
    			-- This function should be called by the GC when the
    			-- object is collected or by the user if `Current' is
    			-- no more usefull.
    			-- (from WEL_ANY)

    feature -- Duplication

    	frozen deep_copy (other: like Current)
    			-- 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: like Current
    			-- New object structure recursively duplicated from Current.
    			-- (from ANY)
    		ensure -- from ANY
    			deep_equal: deep_equal (Current, Result)

    	frozen standard_copy (other: like Current)
    			-- 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: like Current
    			-- 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: like Current
    			-- 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

    	clear_flag (flags, mask: INTEGER_32): INTEGER_32
    			-- Clear the `mask' in flags
    			-- (from WEL_BIT_OPERATIONS)
    		ensure -- from WEL_BIT_OPERATIONS
    			flag_unset: not flag_set (Result, mask)

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

    	frozen default: like Current
    			-- 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)

    	initialize
    			-- Fill Current with zeros.
    			-- (from WEL_STRUCTURE)
    		require -- from WEL_STRUCTURE
    			exists: exists

    	initialize_with_character (a_character: CHARACTER_8)
    			-- Fill current with `a_character'.
    			-- (from WEL_STRUCTURE)
    		require -- from WEL_STRUCTURE
    			exists: exists

    	is_equal (other: like Current): BOOLEAN
    			-- Is `other' attached to an object considered
    			-- equal to current object?
    			-- (from WEL_STRUCTURE)
    		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

    	memory_copy (source_pointer: POINTER; length: INTEGER_32)
    			-- Copy `length' bytes from `source_pointer' to item.
    			-- (from WEL_STRUCTURE)
    		require -- from WEL_STRUCTURE
    			length_small_enough: length <= structure_size
    			length_large_enough: length > 0
    			exists: exists

    	set_flag (flags, mask: INTEGER_32): INTEGER_32
    			-- Set the `mask' in flags
    			-- (from WEL_BIT_OPERATIONS)
    		ensure -- from WEL_BIT_OPERATIONS
    			flag_set: flag_set (Result, mask)

    feature -- Element Change

    	add_flag (a_flag: INTEGER_32)
    			-- Add `a_flag' to flags.
    			-- See class WEL_STARTUP_FLAGS for possible `a_flag' value.
    		require
    			valid_flag: is_valid_startup_flag (a_flag)
    		ensure
    			flags_set: flag_set (flags, a_flag)

    	set_fill_attributes (a_fill_attributes: like fill_attributes)
    			-- Set fill_attributes with `a_fill_attributes'.
    			-- See class `WEL_FILL_ATTRIBUTES_CONSTANTS' for possible `a_fill_attributes' value.
    		require
    			valid_fill_attributes: is_valid_fill_attributes (a_fill_attributes)
    		ensure
    			fill_attributes_set: fill_attributes = a_fill_attributes

    	set_flags (a_flags: INTEGER_32)
    			-- Set flags with `a_flags'
    		require
    			valid_flags: is_valid_startup_flags (a_flags)
    		ensure
    			flags_set: flags = a_flags

    	set_height (a_height: like height)
    			-- Set height with `a_height'.
    		require
    			valid_height: a_height > 0
    		ensure
    			height_set: height = a_height

    	set_show_command (a_command: like show_command)
    			-- Set show_command with `a_command'.
    		ensure
    			show_command_set: show_command = a_command

    	set_std_error (an_error_output: POINTER)
    			-- Set std_error with `an_error_output'.
    		ensure
    			error_output_set: std_error = an_error_output

    	set_std_input (an_input: POINTER)
    			-- Set std_input with `an_input'.
    		ensure
    			std_input_set: std_input = an_input

    	set_std_output (an_output: POINTER)
    			-- Set std_output with `an_output'.
    		ensure
    			std_output_set: std_output = an_output

    	set_title (a_title: STRING_GENERAL)
    			-- Set title with `a_title'.
    		require
    			non_void_title: a_title /= Void
    		ensure
    			title_set: title.is_equal (a_title)

    	set_width (a_width: like width)
    			-- Set width with `a_width'.
    		require
    			valid_width: a_width > 0
    		ensure
    			width_set: width = a_width

    	set_x_character_count (a_character_count: like x_character_count)
    			-- Set `character_count' with `a_character_count'.
    		require
    			valid_count: a_character_count > 0
    		ensure
    			character_count_set: x_character_count = a_character_count

    	set_x_offset (an_offset: like x_offset)
    			-- Set x_offset with `an_offset'.
    		ensure
    			offset_set: x_offset = an_offset

    	set_y_character_count (a_character_count: like y_character_count)
    			-- Set `character_count' with `a_character_count'.
    		require
    			valid_count: a_character_count > 0
    		ensure
    			character_count_set: y_character_count = a_character_count

    	set_y_offset (an_offset: like y_offset)
    			-- Set y_offset with `an_offset'.
    		ensure
    			offset_set: y_offset = an_offset

    feature -- Output

    	io: STD_FILES
    			-- Handle to standard file setup
    			-- (from ANY)

    	out: STRING_8
    			-- New string containing terse printable representation
    			-- of current object
    			-- Was declared in ANY as synonym of tagged_out.
    			-- (from ANY)

    	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
    			-- Was declared in ANY as synonym of out.
    			-- (from ANY)

    feature -- Platform

    	operating_environment: OPERATING_ENVIRONMENT
    			-- Objects available from the operating system
    			-- (from ANY)

    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 WEL_STARTUP_INFO