indexing
	description: "EiffelVision pixmap. Mswindows implementation for widget pixmap (drawable & self-displayable)"
	legal: "See notice at end of class."
	status: "See notice at end of class."
	date: "$Date$"
	revision: "$Revision$"

class interface
	EV_PIXMAP_IMP_WIDGET

create 
	make_with_simple (other: EV_PIXMAP_IMP)
			-- Create the current implementation using `other's
			-- attributes.
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	make_with_drawable (other: EV_PIXMAP_IMP_DRAWABLE)
			-- Create `Current' using attributes of `other'.

feature -- Initialization

	create_drop_actions: EV_PND_ACTION_SEQUENCE
			-- Create a drop action sequence.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			True

	set_default_colors
			-- Set foreground and background color to their default values.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		require -- from  EV_COLORIZABLE_I
			True

	tooltip: STRING_32
			-- Text of tooltip assigned to `Current'.
			-- (from EV_TOOLTIPABLE_IMP)
		require -- from  EV_TOOLTIPABLE_I
			True
	
feature -- Access

	accept_cursor: EV_POINTER_STYLE
			-- Accept cursor set by user.
			-- To be displayed when the screen pointer is over a target that accepts
			-- pebble during pick and drop.
			-- (from EV_PICK_AND_DROPABLE_I)

	actual_drop_target_agent: FUNCTION [ANY, TUPLE [INTEGER_32, INTEGER_32], EV_ABSTRACT_PICK_AND_DROPABLE]
			-- Overrides default drop target on a certain position.
			-- If `Void', will use the default drop target.
			-- Always void if `Current' is not a widget.
			-- (from EV_WIDGET_I)

	arc_cosine (v: REAL_32): REAL_32
			-- Trigonometric arccosine of `v'
			-- (from SINGLE_MATH)

	arc_sine (v: REAL_32): REAL_32
			-- Trigonometric arcsine of `v'
			-- (from SINGLE_MATH)

	arc_tangent (v: REAL_32): REAL_32
			-- Trigonometric arctangent of `v'
			-- (from SINGLE_MATH)

	awaiting_movement: BOOLEAN
			-- Are we currently awaiting the movement threshold to
			-- be reached for as drag and drop or dockable move?
			-- (from EV_SHARED_TRANSPORT_IMP)

	background_color: EV_COLOR
			-- Color used to fill figures.
			-- (from EV_DRAWABLE_IMP)

	blue: INTEGER_32
			-- Intensity value for the blue component
			-- (from WEL_COLOR_REF)

	capture_enabled: BOOLEAN
			-- Is the mouse currently captured?
			-- See constants Capture_xxxx at the end of the class.
			-- (from EV_PICK_AND_DROPABLE_IMP)

	ceiling (v: REAL_32): REAL_32
			-- Least integral value greater than or equal to `v'
			-- (from SINGLE_MATH)

	check_instruction: INTEGER_32 is 7
			-- Exception code for violated check
			-- (from EXCEP_CONST)

	children: LIST [WEL_WINDOW]
			-- Construct a linear representation of children.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
		ensure -- from WEL_COMPOSITE_WINDOW
			result_not_void: Result /= Void

	class_invariant: INTEGER_32 is 6
			-- Exception code for violated class invariant
			-- (from EXCEP_CONST)

	clip_area: EV_RECTANGLE
			-- Clip area used to clip drawing.
			-- If set to Void, no clipping is applied.
			-- (from EV_DRAWABLE_IMP)

	com_exception: INTEGER_32 is 28
			-- Exception code for a COM error.
			-- (from EXCEP_CONST)

	commands: WEL_COMMAND_MANAGER
			-- Command manager associated to the current window.
			-- (from WEL_WINDOW)

	cosine (v: REAL_32): REAL_32
			-- Trigonometric cosine of radian `v' approximated
			-- in the range [-pi/4, +pi/4]
			-- (from SINGLE_MATH)

	create_on_deferred: INTEGER_32 is 17
			-- Create on deferred
			-- (from EXCEP_CONST)

	cursor: WEL_CURSOR
			-- Current cursor used.
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	cursor_on_widget: CELL [EV_WIDGET_IMP]
			-- This cell contains the widget_imp that currently
			-- has the pointer of the mouse. As it is a once
			-- feature, it is a shared data.
			-- it is used for the `mouse_enter' and `mouse_leave'
			-- events.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_PICK_AND_DROPABLE_IMP
			True
		ensure then -- from EV_WIDGET_IMP
			result_exists: Result /= Void

	dashed_line_style: BOOLEAN
			-- Are lines drawn dashed?
			-- (from EV_DRAWABLE_IMP)

	dc: WEL_MEMORY_DC
			-- The device context corresponding to the image
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	default_key_processing_handler: PREDICATE [ANY, TUPLE [EV_KEY]]
			-- Agent used to determine whether the default key processing should occur for `Current'.
			-- If agent returns `True' then default key processing continues as normal, False prevents
			-- default key processing from occuring.
			-- (from EV_WIDGET_I)

	default_parent: EV_INTERNAL_SILLY_WINDOW_IMP
			-- A default parent for creation of `Current'.
			-- (from EV_WIDGET_IMP)
		ensure -- from EV_WIDGET_IMP
			valid_parent: Result /= Void

	default_processing: BOOLEAN
			-- (from WEL_RETURN_VALUE)

	deny_cursor: EV_POINTER_STYLE
			-- Deny cursor set by user.
			-- To be displayed when the screen pointer is not over a valid target.
			-- (from EV_PICK_AND_DROPABLE_I)

	developer_exception: INTEGER_32 is 24
			-- Exception code for developer exception
			-- (from EXCEP_CONST)

	dollar_applied_to_melted_feature: INTEGER_32 is 26
			-- $ applied to melted feature
			-- (from EXCEP_CONST)

	drag_and_drop_starting_movement: INTEGER_32 is 3
			-- Pointer movement in pixels required to start a drag and drop.
			-- (from EV_SHARED_TRANSPORT_IMP)

	drawing_mode: INTEGER_32
			-- Logical operation on pixels when drawing.
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_DRAWABLE_I
			True

	eiffel_runtime_fatal_error: INTEGER_32 is 25
			-- Eiffel run-time fatal error
			-- (from EXCEP_CONST)

	eiffel_runtime_panic: INTEGER_32 is 13
			-- Eiffel run-time panic
			-- (from EXCEP_CONST)

	euler: REAL_64 is 2.7182818284590452354
			-- Logarithm base
			-- (from MATH_CONST)

	ev_set_minimum_height (value: INTEGER_32)
			-- Make `value' the new minimum_height of `Current'.
			-- Should check if the user didn't set the minimum width
			-- before setting a new value.
			-- (from EV_SIZEABLE_PRIMITIVE_IMP)
		require -- from  EV_SIZEABLE_IMP
			True

	ev_set_minimum_size (mw, mh: INTEGER_32)
			-- Make `mw' the new minimum_width and `mh' the new
			-- minimum_height of `Current'.
			-- Should check if the user didn't set the minimum width
			-- before setting a new value.
			-- (from EV_SIZEABLE_PRIMITIVE_IMP)
		require -- from  EV_SIZEABLE_IMP
			True

	ev_set_minimum_width (value: INTEGER_32)
			-- Make `value' the new minimum_width of `Current'.
			-- Should check if the user didn't set the minimum width
			-- before setting a new value.
			-- (from EV_SIZEABLE_PRIMITIVE_IMP)
		require -- from  EV_SIZEABLE_IMP
			True

	exception_in_signal_handler: INTEGER_32 is 20
			-- Exception in signal handler
			-- (from EXCEP_CONST)

	external_exception: INTEGER_32 is 18
			-- Exception code for operating system error
			-- which does not set the `errno' variable
			-- (Unix-specific)
			-- (from EXCEP_CONST)

	floating_point_exception: INTEGER_32 is 5
			-- Exception code for floating point exception
			-- (from EXCEP_CONST)

	floor (v: REAL_32): REAL_32
			-- Greatest integral value less than or equal to `v'
			-- (from SINGLE_MATH)

	focus_on_widget: CELL [EV_WIDGET_IMP]
			-- Widget that has currently the focus.
			-- (from EV_WIDGET_IMP)

	font: EV_FONT
			-- Font of `Current'.
			-- (from EV_FONTABLE_IMP)
		require -- from  EV_FONTABLE_I
			True
		ensure -- from EV_FONTABLE_I
			not_void: Result /= Void

	foreground_color: EV_COLOR
			-- Color used for lines and text.
			-- (from EV_DRAWABLE_IMP)

	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)

	get_bitmap: WEL_BITMAP
			-- Current bitmap used. Void if not initialized, not
			-- Void otherwise (see Invariant at the end of class).
			--
			-- Call `WEL_BITMAP.decrement_reference' when you don't
			-- need it anymore.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		ensure -- from EV_PIXMAP_IMP_STATE
			result_not_void: Result /= Void

	get_mask_bitmap: WEL_BITMAP
			-- Monochrome bitmap used as mask. Void if none.
			--
			-- Call `WEL_BITMAP.decrement_reference' when you don't
			-- need it anymore.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		require -- from EV_PIXMAP_IMP_STATE
			mask_in_use: has_mask
		ensure -- from EV_PIXMAP_IMP_STATE
			result_not_void: Result /= Void

	green: INTEGER_32
			-- Intensity value for the green component
			-- (from WEL_COLOR_REF)

	has_mask: BOOLEAN
			-- Has the current pixmap a mask?
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		ensure -- from EV_PIXMAP_IMP_STATE
			has_mask_implies_mask_bitmap_not_void: Result implies get_mask_bitmap /= Void

	has_return_value: BOOLEAN
			-- Should the window procedure return a value?
			-- (from WEL_RETURN_VALUE)

	display_height: INTEGER_32
			-- Height of `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from  EV_POSITIONED_I
			True

	display_height: INTEGER_32
			-- Height of `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from  EV_POSITIONED_I
			True

	help_context: FUNCTION [ANY, TUPLE, EV_HELP_CONTEXT]
			-- Agent that evaluates to help context sent to help engine when help is requested
			-- (from EV_HELP_CONTEXTABLE_I)
		ensure -- from EV_HELP_CONTEXTABLE_I
			current_if_exists: internal_help_context /= Void implies Result = internal_help_context

	icon: WEL_ICON
			-- Current icon used.
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	incorrect_inspect_value: INTEGER_32 is 9
			-- Exception code for inspect value which is not one
			-- of the inspect constants, if there is no Else_part
			-- (from EXCEP_CONST)

	internal_font: EV_FONT
			-- Font of `Current' for internal queries.
			-- Faster than calling font as we do not need to
			-- create a new EV_FONT every time.
			-- (from EV_FONTABLE_IMP)

	internal_font_height: INTEGER_32
			-- Height required to correctly display font of `Current' in pixels.
			-- (from EV_FONTABLE_IMP)
		ensure -- from EV_FONTABLE_IMP
			result_non_negative: Result >= 0

	internal_pointer_style: EV_POINTER_STYLE
			-- Cursor displayed when screen pointer is over current widget,
			-- as seen from interface.
			-- (from EV_WIDGET_I)

	io_exception: INTEGER_32 is 21
			-- Exception code for I/O error
			-- (from EXCEP_CONST)

	is_dock_executing: BOOLEAN
			-- Is `Current' in the process of a dockable transport?
			-- (from EV_DOCKABLE_SOURCE_I)

	is_dockable: BOOLEAN
			-- Is `Current' dockable?
			-- (from EV_DOCKABLE_SOURCE_I)

	is_external_docking_enabled: BOOLEAN
			-- Is `Current' able to be docked into an EV_DOCKABLE_DIALOG
			-- When there is no valid EV_DRAGABLE_TARGET upon completion
			-- of the transport?
			-- (from EV_DOCKABLE_SOURCE_I)

	is_external_docking_relative: BOOLEAN
			-- Will dockable dialog displayed when `Current' is docked externally
			-- be displayed relative to parent window of `Current'?
			-- Otherwise displayed as a standard window.
			-- (from EV_DOCKABLE_SOURCE_I)

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

	item: INTEGER_32
			-- The Current color.
			-- (from WEL_COLOR_REF)

	key_code_from_key_string (key_string: STRING_GENERAL): INTEGER_32
			-- Key code value from `key_string'
			-- (from EV_KEY_CONSTANTS)
		require -- from EV_KEY_CONSTANTS
			key_string_not_void: key_string /= Void

	key_strings: ARRAY [STRING_32]
			-- String representations of all key codes.
			-- (from EV_KEY_CONSTANTS)

	line_width: INTEGER_32
			-- Line thickness.
			-- (from EV_DRAWABLE_IMP)

	log (v: REAL_32): REAL_32
			-- Natural logarithm of `v'
			-- (from SINGLE_MATH)
		require -- from SINGLE_MATH
			v > 0.0

	log10 (v: REAL_32): REAL_32
			-- Base 10 logarithm of `v'
			-- (from SINGLE_MATH)
		require -- from SINGLE_MATH
			v > 0.0

	log_2 (v: REAL_32): REAL_32
			-- Base 2 logarithm of `v'
			-- (from SINGLE_MATH)
		require -- from SINGLE_MATH
			v > 0.0

	loop_invariant: INTEGER_32 is 11
			-- Exception code for violated loop invariant
			-- (from EXCEP_CONST)

	loop_variant: INTEGER_32 is 10
			-- Exception code for non-decreased loop variant
			-- (from EXCEP_CONST)

	mask_dc: WEL_MEMORY_DC
			-- The device context corresponding to the mask
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	menu: WEL_MENU
			-- Associated menu
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			has_menu: has_menu
		ensure -- from WEL_COMPOSITE_WINDOW
			result_not_void: Result /= Void

	message_return_value: POINTER
			-- Return value of the window procedure.
			-- (from WEL_RETURN_VALUE)
		require -- from WEL_RETURN_VALUE
			has_return_value: has_return_value

	minimum_height: INTEGER_32
			-- Lower bound on height in pixels.
			-- (from EV_SIZEABLE_IMP)
		require -- from  EV_POSITIONED_I
			True

	minimum_width: INTEGER_32
			-- Lower bound on width in pixels.
			-- (from EV_SIZEABLE_IMP)
		require -- from  EV_POSITIONED_I
			True

	no_more_memory: INTEGER_32 is 2
			-- Exception code for failed memory allocation
			-- (from EXCEP_CONST)

	not_external_docking_enabled: BOOLEAN
			-- Attribute used for `is_externally_dockable'. We must implement
			-- `is_externally_dockable' this way as we have no easy solution to
			-- assign `True' to `is_externally_dockable'.
			-- (from EV_DOCKABLE_SOURCE_I)

	not_is_external_docking_relative: BOOLEAN
			-- Will dockable dialog displayed when `Current' is docked externally
			-- be displayed relative to parent window of `Current'?
			-- Otherwise displayed as a standard window.
			-- Internal reversed value of is_external_docking_relative as we cannot
			-- easily initialize a BOOLE to True in this case.
			-- (from EV_DOCKABLE_SOURCE_I)

	number_of_codes: INTEGER_32 is 29
			-- How many codes are there to represent exceptions?
			-- (from EXCEP_CONST)

	operating_system_exception: INTEGER_32 is 22
			-- Exception code for operating system error
			-- which sets the `errno' variable
			-- (Unix-specific)
			-- (from EXCEP_CONST)

	original_parent_position: INTEGER_32
			-- Original position in parent. Required
			-- to restore widget later.
			-- (from EV_DOCKABLE_SOURCE_I)

	original_pressure: REAL_64
			-- Hold the values passed to start transport so when a transport
			-- actually starts, with real_start_transport,these can be passed
			-- as arguments.
			-- (from EV_SHARED_TRANSPORT_IMP)

	original_x: INTEGER_32
			-- (from EV_SHARED_TRANSPORT_IMP)

	original_x_tilt: REAL_64
			-- Hold the values passed to start transport so when a transport
			-- actually starts, with real_start_transport,these can be passed
			-- as arguments.
			-- (from EV_SHARED_TRANSPORT_IMP)

	original_y: INTEGER_32
			-- (from EV_SHARED_TRANSPORT_IMP)

	original_y_tilt: REAL_64
			-- Hold the values passed to start transport so when a transport
			-- actually starts, with real_start_transport,these can be passed
			-- as arguments.
			-- (from EV_SHARED_TRANSPORT_IMP)

	out_of_memory: INTEGER_32 is 15
			-- Out of memory (cannot be ignored)
			-- (from EXCEP_CONST)

	palette: WEL_PALETTE
			-- Current palette used. Void if none.
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	wel_parent: WEL_WINDOW
			-- Parent window
			-- (from WEL_WINDOW)

	parent: EV_CONTAINER
			-- Parent of `Current'
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True

	pebble: ANY
			-- Data to be transported by pick and drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_I)

	pebble_function: FUNCTION [ANY, TUPLE, ANY]
			-- Returns data to be transported by pick and drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_I)

	pebble_positioning_enabled: BOOLEAN
			-- If `True' then pick and drop start coordinates are
			-- pebble_x_position, pebble_y_position.
			-- If `False' then pick and drop start coordinates are
			-- the pointer coordinates.
			-- (from EV_PICK_AND_DROPABLE_I)

	pebble_x_position: INTEGER_32
			-- Initial x position for pick and drop relative to `Current'.
			-- (from EV_PICK_AND_DROPABLE_I)

	pebble_y_position: INTEGER_32
			-- Initial y position for pick and drop relative to `Current'.
			-- (from EV_PICK_AND_DROPABLE_I)

	pi: REAL_64 is 3.14159265358979323846
			-- (from MATH_CONST)

	pointer_position: EV_COORDINATE
			-- Position of the screen pointer relative to `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True
		ensure -- from EV_WIDGET_I
			result_not_void: Result /= Void

	pointer_style: EV_POINTER_STYLE
			-- Pointer displayed when the pointing device is over `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True
		require -- from  EV_DOCKABLE_SOURCE_IMP
			True

	postcondition: INTEGER_32 is 4
			-- Exception code for violated postcondition
			-- (from EXCEP_CONST)

	precondition: INTEGER_32 is 3
			-- Exception code for violated precondition
			-- (from EXCEP_CONST)

	real_source: EV_DOCKABLE_SOURCE
			-- `Result' is EV_DOCKABLE_SOURCE which should be
			-- dragged when docking begins on `Current'.
			-- (from EV_DOCKABLE_SOURCE_I)

	real_target: EV_DOCKABLE_TARGET
			-- `Result' is target used during a dockable transport if
			-- mouse pointer is above `Current'.
			-- (from EV_WIDGET_I)

	red: INTEGER_32
			-- Intensity value for the red component
			-- (from WEL_COLOR_REF)

	rescue_exception: INTEGER_32 is 14
			-- Exception code for exception in rescue clause
			-- (from EXCEP_CONST)

	resumption_failed: INTEGER_32 is 16
			-- Resumption failed (retry did not succeed)
			-- (from EXCEP_CONST)

	retrieve_exception: INTEGER_32 is 23
			-- Exception code for retrieval error
			-- may be raised by `retrieved' in `IO_MEDIUM'.
			-- (from EXCEP_CONST)

	routine_failure: INTEGER_32 is 8
			-- Exception code for failed routine
			-- (from EXCEP_CONST)

	runtime_check_exception: INTEGER_32 is 29
			-- Exception code for runtime check being violated.
			-- (from EXCEP_CONST)

	runtime_io_exception: INTEGER_32 is 27
			-- Exception code for I/O error raised by runtime functions
			-- such as store/retrieve, file access...
			-- (from EXCEP_CONST)

	screen_x: INTEGER_32
			-- Horizontal offset of `Current' relative to screen
			-- (from EV_WIDGET_IMP)
		require -- from  EV_POSITIONED_I
			True

	screen_y: INTEGER_32
			-- Vertical offset of `Current' relative to screen.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_POSITIONED_I
			True

	scroller: WEL_SCROLLER
			-- Scroller object for processing scroll messages.
			-- (from WEL_COMPOSITE_WINDOW)

	signal_exception: INTEGER_32 is 12
			-- Exception code for operating system signal
			-- (from EXCEP_CONST)

	sine (v: REAL_32): REAL_32
			-- Trigonometric sine of radian `v' approximated
			-- in range [-pi/4, +pi/4]
			-- (from SINGLE_MATH)

	sqrt (v: REAL_32): REAL_32
			-- Square root of `v'
			-- (from SINGLE_MATH)
		require -- from SINGLE_MATH
			v >= 0.0

	sqrt2: REAL_64 is 1.41421356237309504880
			-- Square root of 2
			-- (from MATH_CONST)

	sub_pixmap (area: EV_RECTANGLE): EV_PIXMAP
			-- Return the subpixmap of `Current' described by rectangle `area'.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		require -- from EV_DRAWABLE_I
			area_not_void: area /= Void
		ensure -- from EV_DRAWABLE_I
			result_not_void: Result /= Void

	system_menu: WEL_MENU
			-- Associated system menu
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			has_system_menu: has_system_menu
		ensure -- from WEL_COMPOSITE_WINDOW
			result_not_void: Result /= Void

	tangent (v: REAL_32): REAL_32
			-- Trigonometric tangent of radian `v' approximated
			-- in range [-pi/4, +pi/4]
			-- (from SINGLE_MATH)

	tile: EV_PIXMAP
			-- Pixmap that is used to instead of background_color.
			-- If set to Void, background_color is used to fill.
			-- (from EV_DRAWABLE_IMP)

	top_level_window: EV_WINDOW
			-- Top level window that contains `Current'.
			-- (from EV_WIDGET_IMP)

	top_level_window_imp: EV_WINDOW_IMP
			-- Top level window that contains `Current'.
			-- (from EV_PRIMITIVE_IMP)

	transparent_color: EV_COLOR
			-- Color used as transparent (Void by default).
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	transport_executing: BOOLEAN
			-- Is a pick and drop or drag and drop currently
			-- being executed?
			-- (from EV_PICK_AND_DROPABLE_IMP)

	valid_code (c: INTEGER_32): BOOLEAN
			-- Is `c' a valid code to represent some kind of exceptions?
			-- (from EXCEP_CONST)

	vk_0: INTEGER_32 is 48
			-- (from WEL_VK_CONSTANTS)

	vk_1: INTEGER_32 is 49
			-- (from WEL_VK_CONSTANTS)

	vk_2: INTEGER_32 is 50
			-- (from WEL_VK_CONSTANTS)

	vk_3: INTEGER_32 is 51
			-- (from WEL_VK_CONSTANTS)

	vk_4: INTEGER_32 is 52
			-- (from WEL_VK_CONSTANTS)

	vk_5: INTEGER_32 is 53
			-- (from WEL_VK_CONSTANTS)

	vk_6: INTEGER_32 is 54
			-- (from WEL_VK_CONSTANTS)

	vk_7: INTEGER_32 is 55
			-- (from WEL_VK_CONSTANTS)

	vk_8: INTEGER_32 is 56
			-- (from WEL_VK_CONSTANTS)

	vk_9: INTEGER_32 is 57
			-- Vk_a thru Vk_z are the same as their ASCII equivalents: 'A' thru 'Z'.
			-- (from WEL_VK_CONSTANTS)

	vk_a: INTEGER_32 is 65
			-- (from WEL_VK_CONSTANTS)

	vk_add: INTEGER_32 is 107
			-- Declared in Windows as VK_ADD
			-- (from WEL_VK_CONSTANTS)

	vk_alt: INTEGER_32 is 18
			-- Declared in Windows as VK_MENU
			-- Was declared in WEL_VK_CONSTANTS as synonym of Vk_menu.
			-- (from WEL_VK_CONSTANTS)

	vk_apps: INTEGER_32 is 93
			-- Declared in Windows as VK_APPS
			-- Vk_0 thru Vk_9 are the same as their ASCII equivalents: '0' thru '9'.
			-- (from WEL_VK_CONSTANTS)

	vk_b: INTEGER_32 is 66
			-- (from WEL_VK_CONSTANTS)

	vk_back: INTEGER_32 is 8
			-- Declared in Windows as VK_BACK
			-- (from WEL_VK_CONSTANTS)

	vk_c: INTEGER_32 is 67
			-- (from WEL_VK_CONSTANTS)

	vk_cancel: INTEGER_32 is 3
			-- Declared in Windows as VK_CANCEL
			-- (from WEL_VK_CONSTANTS)

	vk_capital: INTEGER_32 is 20
			-- Declared in Windows as VK_CAPITAL
			-- (from WEL_VK_CONSTANTS)

	vk_clear: INTEGER_32 is 12
			-- Declared in Windows as VK_CLEAR
			-- (from WEL_VK_CONSTANTS)

	vk_control: INTEGER_32 is 17
			-- Declared in Windows as VK_CONTROL
			-- (from WEL_VK_CONSTANTS)

	vk_d: INTEGER_32 is 68
			-- (from WEL_VK_CONSTANTS)

	vk_decimal: INTEGER_32 is 110
			-- Declared in Windows as VK_DECIMAL
			-- (from WEL_VK_CONSTANTS)

	vk_delete: INTEGER_32 is 46
			-- Declared in Windows as VK_DELETE
			-- (from WEL_VK_CONSTANTS)

	vk_divide: INTEGER_32 is 111
			-- Declared in Windows as VK_DIVIDE
			-- (from WEL_VK_CONSTANTS)

	vk_down: INTEGER_32 is 40
			-- Declared in Windows as VK_DOWN
			-- (from WEL_VK_CONSTANTS)

	vk_e: INTEGER_32 is 69
			-- (from WEL_VK_CONSTANTS)

	vk_end: INTEGER_32 is 35
			-- Declared in Windows as VK_END
			-- (from WEL_VK_CONSTANTS)

	vk_escape: INTEGER_32 is 27
			-- Declared in Windows as VK_ESCAPE
			-- (from WEL_VK_CONSTANTS)

	vk_execute: INTEGER_32 is 43
			-- Declared in Windows as VK_EXECUTE
			-- (from WEL_VK_CONSTANTS)

	vk_f: INTEGER_32 is 70
			-- (from WEL_VK_CONSTANTS)

	vk_f1: INTEGER_32 is 112
			-- Declared in Windows as VK_F1
			-- (from WEL_VK_CONSTANTS)

	vk_f10: INTEGER_32 is 121
			-- Declared in Windows as VK_F10
			-- (from WEL_VK_CONSTANTS)

	vk_f11: INTEGER_32 is 122
			-- Declared in Windows as VK_F11
			-- (from WEL_VK_CONSTANTS)

	vk_f12: INTEGER_32 is 123
			-- Declared in Windows as VK_F12
			-- (from WEL_VK_CONSTANTS)

	vk_f13: INTEGER_32 is 124
			-- Declared in Windows as VK_F13
			-- (from WEL_VK_CONSTANTS)

	vk_f14: INTEGER_32 is 125
			-- Declared in Windows as VK_F14
			-- (from WEL_VK_CONSTANTS)

	vk_f15: INTEGER_32 is 126
			-- Declared in Windows as VK_F15
			-- (from WEL_VK_CONSTANTS)

	vk_f16: INTEGER_32 is 127
			-- Declared in Windows as VK_F16
			-- (from WEL_VK_CONSTANTS)

	vk_f17: INTEGER_32 is 128
			-- Declared in Windows as VK_F17
			-- (from WEL_VK_CONSTANTS)

	vk_f18: INTEGER_32 is 129
			-- Declared in Windows as VK_F18
			-- (from WEL_VK_CONSTANTS)

	vk_f19: INTEGER_32 is 130
			-- Declared in Windows as VK_F19
			-- (from WEL_VK_CONSTANTS)

	vk_f2: INTEGER_32 is 113
			-- Declared in Windows as VK_F2
			-- (from WEL_VK_CONSTANTS)

	vk_f20: INTEGER_32 is 131
			-- Declared in Windows as VK_F20
			-- (from WEL_VK_CONSTANTS)

	vk_f21: INTEGER_32 is 132
			-- Declared in Windows as VK_F21
			-- (from WEL_VK_CONSTANTS)

	vk_f22: INTEGER_32 is 133
			-- Declared in Windows as VK_F22
			-- (from WEL_VK_CONSTANTS)

	vk_f23: INTEGER_32 is 134
			-- Declared in Windows as VK_F23
			-- (from WEL_VK_CONSTANTS)

	vk_f24: INTEGER_32 is 135
			-- Declared in Windows as VK_F24
			-- (from WEL_VK_CONSTANTS)

	vk_f3: INTEGER_32 is 114
			-- Declared in Windows as VK_F3
			-- (from WEL_VK_CONSTANTS)

	vk_f4: INTEGER_32 is 115
			-- Declared in Windows as VK_F4
			-- (from WEL_VK_CONSTANTS)

	vk_f5: INTEGER_32 is 116
			-- Declared in Windows as VK_F5
			-- (from WEL_VK_CONSTANTS)

	vk_f6: INTEGER_32 is 117
			-- Declared in Windows as VK_F6
			-- (from WEL_VK_CONSTANTS)

	vk_f7: INTEGER_32 is 118
			-- Declared in Windows as VK_F7
			-- (from WEL_VK_CONSTANTS)

	vk_f8: INTEGER_32 is 119
			-- Declared in Windows as VK_F8
			-- (from WEL_VK_CONSTANTS)

	vk_f9: INTEGER_32 is 120
			-- Declared in Windows as VK_F9
			-- (from WEL_VK_CONSTANTS)

	vk_g: INTEGER_32 is 71
			-- (from WEL_VK_CONSTANTS)

	vk_h: INTEGER_32 is 72
			-- (from WEL_VK_CONSTANTS)

	vk_help: INTEGER_32 is 47
			-- Declared in Windows as VK_HELP
			-- (from WEL_VK_CONSTANTS)

	vk_home: INTEGER_32 is 36
			-- Declared in Windows as VK_HOME
			-- (from WEL_VK_CONSTANTS)

	vk_i: INTEGER_32 is 73
			-- (from WEL_VK_CONSTANTS)

	vk_insert: INTEGER_32 is 45
			-- Declared in Windows as VK_INSERT
			-- (from WEL_VK_CONSTANTS)

	vk_j: INTEGER_32 is 74
			-- (from WEL_VK_CONSTANTS)

	vk_k: INTEGER_32 is 75
			-- (from WEL_VK_CONSTANTS)

	vk_l: INTEGER_32 is 76
			-- (from WEL_VK_CONSTANTS)

	vk_lbutton: INTEGER_32 is 1
			-- Declared in Windows as VK_LBUTTON
			-- (from WEL_VK_CONSTANTS)

	vk_lcontrol: INTEGER_32 is 162
			-- Declared in Windows as VK_LCONTROL
			-- (from WEL_VK_CONSTANTS)

	vk_left: INTEGER_32 is 37
			-- Declared in Windows as VK_LEFT
			-- (from WEL_VK_CONSTANTS)

	vk_lmenu: INTEGER_32 is 164
			-- Declared in Windows as VK_LMENU
			-- (from WEL_VK_CONSTANTS)

	vk_lshift: INTEGER_32 is 160
			-- Declared in Windows as VK_LSHIFT
			-- (from WEL_VK_CONSTANTS)

	vk_m: INTEGER_32 is 77
			-- (from WEL_VK_CONSTANTS)

	vk_mbutton: INTEGER_32 is 4
			-- Declared in Windows as VK_MBUTTON
			-- (from WEL_VK_CONSTANTS)

	vk_menu: INTEGER_32 is 18
			-- Declared in Windows as VK_MENU
			-- Was declared in WEL_VK_CONSTANTS as synonym of Vk_alt.
			-- (from WEL_VK_CONSTANTS)

	vk_multiply: INTEGER_32 is 106
			-- Declared in Windows as VK_MULTIPLY
			-- (from WEL_VK_CONSTANTS)

	vk_n: INTEGER_32 is 78
			-- (from WEL_VK_CONSTANTS)

	vk_next: INTEGER_32 is 34
			-- Declared in Windows as VK_NEXT
			-- (from WEL_VK_CONSTANTS)

	vk_numlock: INTEGER_32 is 144
			-- Declared in Windows as VK_NUMLOCK
			-- (from WEL_VK_CONSTANTS)

	vk_numpad0: INTEGER_32 is 96
			-- Declared in Windows as VK_NUMPAD0
			-- (from WEL_VK_CONSTANTS)

	vk_numpad1: INTEGER_32 is 97
			-- Declared in Windows as VK_NUMPAD1
			-- (from WEL_VK_CONSTANTS)

	vk_numpad2: INTEGER_32 is 98
			-- Declared in Windows as VK_NUMPAD2
			-- (from WEL_VK_CONSTANTS)

	vk_numpad3: INTEGER_32 is 99
			-- Declared in Windows as VK_NUMPAD3
			-- (from WEL_VK_CONSTANTS)

	vk_numpad4: INTEGER_32 is 100
			-- Declared in Windows as VK_NUMPAD4
			-- (from WEL_VK_CONSTANTS)

	vk_numpad5: INTEGER_32 is 101
			-- Declared in Windows as VK_NUMPAD5
			-- (from WEL_VK_CONSTANTS)

	vk_numpad6: INTEGER_32 is 102
			-- Declared in Windows as VK_NUMPAD6
			-- (from WEL_VK_CONSTANTS)

	vk_numpad7: INTEGER_32 is 103
			-- Declared in Windows as VK_NUMPAD7
			-- (from WEL_VK_CONSTANTS)

	vk_numpad8: INTEGER_32 is 104
			-- Declared in Windows as VK_NUMPAD8
			-- (from WEL_VK_CONSTANTS)

	vk_numpad9: INTEGER_32 is 105
			-- Declared in Windows as VK_NUMPAD9
			-- (from WEL_VK_CONSTANTS)

	vk_o: INTEGER_32 is 79
			-- (from WEL_VK_CONSTANTS)

	vk_p: INTEGER_32 is 80
			-- (from WEL_VK_CONSTANTS)

	vk_pause: INTEGER_32 is 19
			-- Declared in Windows as VK_PAUSE
			-- (from WEL_VK_CONSTANTS)

	vk_print: INTEGER_32 is 42
			-- Declared in Windows as VK_PRINT
			-- (from WEL_VK_CONSTANTS)

	vk_prior: INTEGER_32 is 33
			-- Declared in Windows as VK_PRIOR
			-- (from WEL_VK_CONSTANTS)

	vk_q: INTEGER_32 is 81
			-- (from WEL_VK_CONSTANTS)

	vk_r: INTEGER_32 is 82
			-- (from WEL_VK_CONSTANTS)

	vk_rbutton: INTEGER_32 is 2
			-- Declared in Windows as VK_RBUTTON
			-- (from WEL_VK_CONSTANTS)

	vk_rcontrol: INTEGER_32 is 163
			-- Declared in Windows as VK_RCONTROL
			-- (from WEL_VK_CONSTANTS)

	vk_return: INTEGER_32 is 13
			-- Declared in Windows as VK_RETURN
			-- (from WEL_VK_CONSTANTS)

	vk_right: INTEGER_32 is 39
			-- Declared in Windows as VK_RIGHT
			-- (from WEL_VK_CONSTANTS)

	vk_rmenu: INTEGER_32 is 165
			-- Declared in Windows as VK_RMENU
			-- (from WEL_VK_CONSTANTS)

	vk_rshift: INTEGER_32 is 161
			-- Declared in Windows as VK_RSHIFT
			-- (from WEL_VK_CONSTANTS)

	vk_s: INTEGER_32 is 83
			-- (from WEL_VK_CONSTANTS)

	vk_scroll: INTEGER_32 is 145
			-- Declared in Windows as VK_SCROLL
			-- (from WEL_VK_CONSTANTS)

	vk_select: INTEGER_32 is 41
			-- Declared in Windows as VK_SELECT
			-- (from WEL_VK_CONSTANTS)

	vk_separator: INTEGER_32 is 108
			-- Declared in Windows as VK_SEPARATOR
			-- (from WEL_VK_CONSTANTS)

	vk_shift: INTEGER_32 is 16
			-- Declared in Windows as VK_SHIFT
			-- (from WEL_VK_CONSTANTS)

	vk_snapshot: INTEGER_32 is 44
			-- Declared in Windows as VK_SNAPSHOT
			-- (from WEL_VK_CONSTANTS)

	vk_space: INTEGER_32 is 32
			-- Declared in Windows as VK_SPACE
			-- (from WEL_VK_CONSTANTS)

	vk_subtract: INTEGER_32 is 109
			-- Declared in Windows as VK_SUBTRACT
			-- (from WEL_VK_CONSTANTS)

	vk_t: INTEGER_32 is 84
			-- (from WEL_VK_CONSTANTS)

	vk_tab: INTEGER_32 is 9
			-- Declared in Windows as VK_TAB
			-- (from WEL_VK_CONSTANTS)

	vk_u: INTEGER_32 is 85
			-- (from WEL_VK_CONSTANTS)

	vk_up: INTEGER_32 is 38
			-- Declared in Windows as VK_UP
			-- (from WEL_VK_CONSTANTS)

	vk_v: INTEGER_32 is 86
			-- (from WEL_VK_CONSTANTS)

	vk_w: INTEGER_32 is 87
			-- (from WEL_VK_CONSTANTS)

	vk_x: INTEGER_32 is 88
			-- (from WEL_VK_CONSTANTS)

	vk_y: INTEGER_32 is 89
			-- (from WEL_VK_CONSTANTS)

	vk_z: INTEGER_32 is 90
			-- (from WEL_VK_CONSTANTS)

	void_assigned_to_expanded: INTEGER_32 is 19
			-- Exception code for assignment of void value
			-- to expanded entity
			-- (from EXCEP_CONST)

	void_call_target: INTEGER_32 is 1
			-- Exception code for feature applied to void reference
			-- (from EXCEP_CONST)

	widget_imp_at_pointer_position: EV_WIDGET_IMP
			-- `Result' is implementation of widget at current
			-- pointer position or Void if none.
			-- (from EV_SHARED_TRANSPORT_IMP)
		require -- from  EV_DOCKABLE_SOURCE_I
			True

	display_width: INTEGER_32
			-- Width of `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from  EV_POSITIONED_I
			True

	display_width: INTEGER_32
			-- Width of `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from  EV_POSITIONED_I
			True

	x_position: INTEGER_32
			-- `Result' is x_position of `Current' in pixels.
			-- If wel_parent not Void then `Result' is relative to wel_parent else
			-- `Result' is relative to screen.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_POSITIONED_I
			True
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			wel_parent = Void implies Result = absolute_x

	y_position: INTEGER_32
			-- `Result' is x_position of `Current' in pixels.
			-- If wel_parent not Void then `Result' is relative to wel_parent else
			-- `Result' is relative to screen.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_POSITIONED_I
			True
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			wel_parent = Void implies Result = absolute_y
	
feature -- Measurement

	height: INTEGER_32
			-- Height of `Current'.
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	width: INTEGER_32
			-- Width of `Current'.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
	
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))

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

	absolute_x: INTEGER_32
			-- Absolute x position
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			Result = window_rect.x

	absolute_y: INTEGER_32
			-- Absolute y position
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			Result = window_rect.y

	assertion_violation: BOOLEAN
			-- Is last exception originally due to a violated
			-- assertion or non-decreasing variant?
			-- (from EXCEPTIONS)

	background_brush: WEL_BRUSH
			-- Current window background color used to refresh the window when
			-- requested by the WM_ERASEBKGND windows message.
			-- By default there is no background
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			new_object: Result /= Void implies Result /= background_brush

	captured_window: WEL_WINDOW
			-- Current window which has been captured.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			window_captured: window_captured

	child_window_from_point (point: WEL_POINT): POINTER
			-- `Result' is pointer to child window as position `point'.
			-- Only checks children and their children and returns a child even
			-- if over a HTTRANSPARENT area of the child. Corresponds to
			-- the ChildWindowFromPoint Windows API call.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			point_not_void: point /= Void

	exception_class_name: STRING_8
			-- Name of the class that includes the recipient
			-- of original form of last exception
			-- (from EXCEPTIONS)

	client_rect: WEL_RECT
			-- Client rectangle
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	closeable: BOOLEAN
			-- Can the user close the window?
			-- Yes by default.
			-- (from WEL_COMPOSITE_WINDOW)

	closest_dockable_target: EV_DOCKABLE_TARGET
			-- `Result' is first dockable target that is_dockable found by recursively
			-- searching up through the parenting structure from the widget
			-- currently underneath the pointer position.
			-- `Result' will be `Void' if a dockable target is not found.
			-- (from EV_DOCKABLE_SOURCE_I)
		ensure -- from EV_DOCKABLE_SOURCE_I
			result_is_dockable: Result /= Void implies Result.is_docking_enabled

	command (message: INTEGER_32): WEL_COMMAND
			-- Command associated to `message'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0
			command_exists: command_exists (message)
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	command_argument (message: INTEGER_32): ANY
			-- Command argument associated to `message'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0
			command_exists: command_exists (message)

	command_exists (message: INTEGER_32): BOOLEAN
			-- Does a command associated to `message' exist?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0

	commands_enabled: BOOLEAN
			-- Is the commands execution enabled?
			-- (from WEL_WINDOW)

	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

	destroyed: BOOLEAN
			-- Is `Current' destroyed ?
			-- (from EV_WIDGET_IMP)

	developer_exception_name: STRING_8
			-- Name of last developer-raised exception
			-- (from EXCEPTIONS)
		require -- from EXCEPTIONS
			applicable: is_developer_exception

	is_sensitive: BOOLEAN
			-- Is the window enabled for mouse and keyboard input?
			-- (from WEL_WINDOW)
		require -- from  EV_SENSITIVE_I
			True
		require -- from WEL_WINDOW
			exists: exists

	ex_style: INTEGER_32
			-- Window ex_style
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	exception: INTEGER_32
			-- Code of last exception that occurred
			-- (from EXCEPTIONS)

	exception_trace: STRING_8
			-- String representation of the exception trace
			-- (from EXCEPTIONS)

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

	focused_window: WEL_WINDOW
			-- Current window which has the focus.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	foreground_window: WEL_WINDOW
			-- Foreground window (window with focus)
			-- (from WEL_WINDOWS_ROUTINES)

	get_next_target (a_widget: EV_WIDGET): EV_DOCKABLE_TARGET
			-- `Result' is next dockable target that is is_dockable found by
			-- recursively seraching up the parenting structure from `current_target'.
			-- `Result' will be `Void' if none.
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			a_widget_not_void: a_widget /= Void
		ensure -- from EV_DOCKABLE_SOURCE_I
			result_is_dockable: Result /= Void implies Result.is_docking_enabled

	has_capture: BOOLEAN
			-- Does `Current' have capture?
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True

	wel_has_capture: BOOLEAN
			-- Does this window have the capture?
			-- (from WEL_WINDOW)
		require -- from  EV_DOCKABLE_SOURCE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	has_focus: BOOLEAN
			-- Does this window have the focus?
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_I
			True
		require -- from WEL_WINDOW
			exists: exists

	has_heavy_capture: BOOLEAN
			-- Does this window have the heavy capture?
			-- (from WEL_WINDOW)

	has_horizontal_scroll_bar: BOOLEAN
			-- Does this window have a horizontal scroll bar?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_menu: BOOLEAN
			-- Does the window have a menu?
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists

	has_system_font: BOOLEAN
			-- Does the control use the system font?
			-- (from WEL_CONTROL_WINDOW)
		require -- from WEL_CONTROL_WINDOW
			exists: exists

	has_system_menu: BOOLEAN
			-- Does the window have a system menu?
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists

	has_vertical_scroll_bar: BOOLEAN
			-- Does this window have a vertical scroll bar?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	heavy_capture_activated: BOOLEAN
			-- Is the heavy capture currently running?
			-- (i.e. is there a window in the current program
			-- with has_heavy_capture to True?)
			-- (from WEL_WINDOW)

	wel_height: INTEGER_32
			-- Window height
			-- (from WEL_WINDOW)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	horizontal_position: INTEGER_32
			-- Current position of the horizontal scroll box
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
		ensure -- from WEL_COMPOSITE_WINDOW
			result_small_enough: Result <= maximal_horizontal_position
			result_large_enough: Result >= minimal_horizontal_position

	internal_non_sensitive: BOOLEAN
			-- Is `Current' not sensitive to input as seen
			-- from interface?
			-- (from EV_SENSITIVE_I)

	is_developer_exception: BOOLEAN
			-- Is the last exception originally due to
			-- a developer exception?
			-- (from EXCEPTIONS)

	is_developer_exception_of_name (name: STRING_8): BOOLEAN
			-- Is the last exception originally due to a developer
			-- exception of name `name'?
			-- (from EXCEPTIONS)

	is_inside: BOOLEAN
			-- Is the current window inside another window?
			-- (from WEL_WINDOW)

	is_show_requested: BOOLEAN
			-- Is `Current' displayed in its parent?
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True
		require -- from  EV_SIZEABLE_IMP
			True

	is_signal: BOOLEAN
			-- Is last exception originally due to an external
			-- event (operating system signal)?
			-- (from EXCEPTIONS)

	is_system_exception: BOOLEAN
			-- Is last exception originally due to an
			-- external event (operating system error)?
			-- (from EXCEPTIONS)

	is_transport_enabled: BOOLEAN
			-- Is the transport mechanism enabled?
			-- (from EV_PICK_AND_DROPABLE_I)

	is_window (hwnd: POINTER): BOOLEAN
			-- Does `hwnd' point to a valid Window?
			-- (from WEL_WINDOWS_ROUTINES)

	key_down (virtual_key: INTEGER_32): BOOLEAN
			--Is 'virtual' key pressed
			-- (from WEL_WINDOWS_ROUTINES)

	key_locked (virtual_key: INTEGER_32): BOOLEAN
			--Is 'virtual' key locked
			-- (from WEL_WINDOWS_ROUTINES)

	key_to_string (key_data: INTEGER_32): STRING_32
			-- Give the string associated with the key given by
			-- `virtual_key'.
			-- (from WEL_WINDOWS_ROUTINES)

	managed: BOOLEAN is True
			-- All widgets are managed.
			-- (from EV_WIDGET_IMP)

	maximal_height: INTEGER_32
			-- Maximal height allowed for the window
			-- (from WEL_CONTROL_WINDOW)
		ensure -- from WEL_WINDOW
			result_large_enough: Result >= minimal_height

	maximal_horizontal_position: INTEGER_32
			-- Maxium position of the horizontal scroll box
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
		ensure -- from WEL_COMPOSITE_WINDOW
			result_large_enough: Result >= minimal_horizontal_position

	maximal_vertical_position: INTEGER_32
			-- Maxium position of the vertical scroll box
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
		ensure -- from WEL_COMPOSITE_WINDOW
			result_large_enough: Result >= minimal_vertical_position

	maximal_width: INTEGER_32
			-- Maximal width allowed for the window
			-- (from WEL_CONTROL_WINDOW)
		ensure -- from WEL_WINDOW
			result_large_enough: Result >= minimal_width

	maximized: BOOLEAN
			-- Is the window maximized?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	meaning (except: INTEGER_32): STRING_8
			-- A message in English describing what `except' is
			-- (from EXCEPTIONS)

	minimal_height: INTEGER_32
			-- Minimal height allowed for the window
			-- (from WEL_CONTROL_WINDOW)
		require -- from  WEL_WINDOW
			True
		ensure -- from WEL_WINDOW
			positive_result: Result >= 0
			result_small_enough: Result <= maximal_height

	minimal_horizontal_position: INTEGER_32
			-- Minimum position of the horizontal scroll box
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
		ensure -- from WEL_COMPOSITE_WINDOW
			result_small_enough: Result <= maximal_horizontal_position

	minimal_vertical_position: INTEGER_32
			-- Minimum position of the vertical scroll box
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
		ensure -- from WEL_COMPOSITE_WINDOW
			result_small_enough: Result <= maximal_vertical_position

	minimal_width: INTEGER_32
			-- Minimal width allowed for the window
			-- (from WEL_CONTROL_WINDOW)
		require -- from  WEL_WINDOW
			True
		ensure -- from WEL_WINDOW
			positive_result: Result >= 0
			result_small_enough: Result <= maximal_width

	minimized: BOOLEAN
			-- Is the window minimized?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	mode_is_drag_and_drop: BOOLEAN
			-- Is the transport mechanism drag and drop?
			-- (from EV_PICK_AND_DROPABLE_I)

	mode_is_pick_and_drop: BOOLEAN
			-- Is the transport mechanism pick and drop?
			-- (from EV_PICK_AND_DROPABLE_I)

	mode_is_target_menu: BOOLEAN
			-- Is the transport mechanism target menu?
			-- (from EV_PICK_AND_DROPABLE_I)

	original_class_name: STRING_8
			-- Name of the class that includes the recipient
			-- of original form of last exception
			-- (from EXCEPTIONS)

	original_exception: INTEGER_32
			-- Original code of last exception that triggered
			-- current exception
			-- (from EXCEPTIONS)

	original_recipient_name: STRING_8
			-- Name of the routine whose execution was
			-- interrupted by original form of last exception
			-- (from EXCEPTIONS)

	original_tag_name: STRING_8
			-- Assertion tag for original form of last
			-- assertion violation.
			-- (from EXCEPTIONS)

	placement: WEL_WINDOW_PLACEMENT
			-- Window placement information
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	recipient_name: STRING_8
			-- Name of the routine whose execution was
			-- interrupted by last exception
			-- (from EXCEPTIONS)

	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)

	is_displayed: BOOLEAN
			-- Is the window shown?
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_I
			True
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	style: INTEGER_32
			-- Window style
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	system_directory: STRING_32
			-- Path of the Windows system directory
			-- (from WEL_WINDOWS_ROUTINES)
		ensure -- from WEL_WINDOWS_ROUTINES
			result_not_void: Result /= Void

	tag_name: STRING_8
			-- Tag of last violated assertion clause
			-- (from EXCEPTIONS)

	text: STRING_32
			-- Window text
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	text_length: INTEGER_32
			-- Text length
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			positive_result: Result >= 0

	tick_count: INTEGER_32
			-- Number of milliseconds that have
			-- elapsed since Windows was started.
			-- (from WEL_WINDOWS_ROUTINES)
		ensure -- from WEL_WINDOWS_ROUTINES
			positive_result: Result >= 0

	user_is_sensitive: BOOLEAN
			-- Is the object sensitive to user input.
			-- (from EV_SENSITIVE_I)

	vertical_position: INTEGER_32
			-- Current position of the vertical scroll box
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
		ensure -- from WEL_COMPOSITE_WINDOW
			result_small_enough: Result <= maximal_vertical_position
			result_large_enough: Result >= minimal_vertical_position

	wel_width: INTEGER_32
			-- Window width
			-- (from WEL_WINDOW)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	window_captured: BOOLEAN
			-- Has a window been captured?
			-- (from WEL_WINDOW)

	window_of_item (hwnd: POINTER): WEL_WINDOW
			-- Retrieve Eiffel object associated with `hwnd' pointer.
			-- (from WEL_WINDOWS_ROUTINES)
		require -- from WEL_WINDOWS_ROUTINES
			hwnd_not_null: hwnd /= default_pointer
			is_window_pointer: is_window (hwnd)
		ensure -- from WEL_WINDOWS_ROUTINES
			is_wel_window: Result /= Void implies (create {INTERNAL}).type_conforms_to ((create {INTERNAL}).dynamic_type (Result), (create {INTERNAL}).dynamic_type_from_string ("WEL_WINDOW"))

	window_rect: WEL_RECT
			-- Window rectangle (absolute position)
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	windows_directory: STRING_32
			-- Path of the Windows directory
			-- (from WEL_WINDOWS_ROUTINES)
		ensure -- from WEL_WINDOWS_ROUTINES
			result_not_void: Result /= Void
	
feature {ANY} -- Status report

	valid_color_constant (c: INTEGER_32): BOOLEAN
			-- Is `c' a valid color constant?
			-- (from WEL_COLOR_CONSTANTS)
	
feature {ANY} -- Status report

	valid_hwnd_constant (c: POINTER): BOOLEAN
			-- Is `c' a valid hwnd constant?
			-- (from WEL_HWND_CONSTANTS)
	
feature -- Status setting

	catch (code: INTEGER_32)
			-- Make sure that any exception of code `code' will be
			-- caught. This is the default.
			-- (from EXCEPTIONS)

	check_drag_and_drop_release (a_x, a_y: INTEGER_32)
			-- End transport if in drag and drop.
			-- (from EV_PICK_AND_DROPABLE_IMP)

	check_dragable_release (a_x, a_y: INTEGER_32)
			-- End transport if in drag and drop.
			-- (from EV_DOCKABLE_SOURCE_IMP)

	die (code: INTEGER_32)
			-- Terminate execution with exit status `code',
			-- without triggering an exception.
			-- (from EXCEPTIONS)

	disable
			-- Disable mouse and keyboard input
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			disabled: not is_sensitive

	disable_capture
			-- Release all user events.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True
		require -- from  EV_DOCKABLE_SOURCE_IMP
			True

	disable_commands
			-- Disable commands execution.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			commands_disabled: not commands_enabled

	disable_default_processing
			-- Disable default window processing.
			-- The standard window procedure will not be called for
			-- each messages received by the window and then the
			-- normal behavior will not occur.
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		ensure -- from WEL_WINDOW
			default_processing_disabled: not default_processing

	disable_dockable
			-- Ensure `Current' is not dockable
			-- (from EV_DOCKABLE_SOURCE_I)
		ensure -- from EV_DOCKABLE_SOURCE_I
			not_is_dockable: not is_dockable

	disable_drag_accept_files
			-- Disallow `Current' from being a file drag and drop target.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists

	disable_external_docking
			-- Forbid `Current' to be docked into an EV_DOCKABLE_DIALOG
			-- When there is no valid EV_DRAGABLE_TARGET upon completion
			-- of the transport?
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			is_dockable: is_dockable
		ensure -- from EV_DOCKABLE_SOURCE_I
			not_externally_dockable: not is_external_docking_enabled

	disable_external_docking_relative
			-- Assign `False' to is_external_docking_relative, ensuring that
			-- a dockable dialog displayed when `Current' is docked externally
			-- is displayed as a standard window.
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			external_docking_enabled: is_external_docking_enabled
		ensure -- from EV_DOCKABLE_SOURCE_I
			external_docking_not_relative: not is_external_docking_relative

	disable_pebble_positioning
			-- Assign `False' to pebble_positioning_enabled.
			-- (from EV_PICK_AND_DROPABLE_I)

	disable_sensitive
			-- Set `Current' to insensitive mode.
			-- This means that any events with an
			-- event type of KeyPress, KeyRelease,
			-- ButtonPress, ButtonRelease, MotionNotify,
			-- EnterNotify, LeaveNotify, FocusIn or
			-- FocusOut will not be dispatched to current
			-- widget and to all its children.  Set it to
			-- sensitive mode otherwise.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SENSITIVE_I
			True

	disable_transport
			-- Deactivate pick/drag and drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True
		ensure -- from EV_PICK_AND_DROPABLE_I
			is_transport_disabled: not is_transport_enabled

	dragable_motion (a_x, a_y, a_screen_x, a_screen_y: INTEGER_32)
			-- If in drag/pick and drop then update.
			-- (from EV_DOCKABLE_SOURCE_IMP)

	dragable_press (a_x, a_y, a_button, a_screen_x, a_screen_y: INTEGER_32)
			-- Process `a_button' to start/stop the drag/pick and
			-- drop mechanism.
			-- (from EV_DOCKABLE_SOURCE_IMP)

	enable
			-- Enable mouse and keyboard input.
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			enabled: is_sensitive

	enable_capture
			-- Enable capture.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True

	enable_commands
			-- Enable commands execution.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			commands_enabled: commands_enabled

	enable_default_processing
			-- Enable default window processing.
			-- The standard window procedure will be called for
			-- each messages received by the window and then the
			-- normal behavior will occur.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			default_processing_enabled: default_processing

	enable_dockable
			-- Allow `Current' to be dockable
			-- (from EV_DOCKABLE_SOURCE_I)
		ensure -- from EV_DOCKABLE_SOURCE_I
			is_dockable: is_dockable

	enable_drag_accept_files
			-- Allow `Current' to be a file drag and drop target.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists

	enable_external_docking
			-- Allow `Current' to be docked into an EV_DOCKABLE_DIALOG
			-- When there is no valid EV_DRAGABLE_TARGET upon completion
			-- of the transport?
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			is_dockable: is_dockable
		ensure -- from EV_DOCKABLE_SOURCE_I
			is_externally_dockable: is_external_docking_enabled

	enable_external_docking_relative
			-- Assign `True' to is_external_docking_relative, ensuring that
			-- a dockable dialog displayed when `Current' is docked externally
			-- is displayed relative to the top level window.
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			external_docking_enabled: is_external_docking_enabled
		ensure -- from EV_DOCKABLE_SOURCE_I
			external_docking_not_relative: is_external_docking_relative

	enable_pebble_positioning
			-- Assign `True' to pebble_positioning_enabled.
			-- (from EV_PICK_AND_DROPABLE_I)

	enable_sensitive
			-- Set `Current' to sensitive mode.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SENSITIVE_I
			True

	enable_transport
			-- Activate pick/drag and drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from EV_PICK_AND_DROPABLE_I
			pebble_not_void: pebble /= Void or pebble_function /= Void
		ensure -- from EV_PICK_AND_DROPABLE_I
			is_transport_enabled: interface.implementation.is_transport_enabled

	escape_pnd
			-- Escape the pick and drop.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		ensure -- from EV_PICK_AND_DROPABLE_IMP
			not_in_transport: not transport_executing

	has_parent: BOOLEAN
			-- Is `Current' parented?
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SENSITIVE_I
			True

	hide
			-- Hide `Current'.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			hidden: not is_displayed

	horizontal_update (inc, position: INTEGER_32)
			-- Update the window and the horizontal scroll box with
			-- `inc' and `position'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_not_void: scroller /= Void
			position_small_enough: scroller.valid_maximal_horizontal_position (position)
			position_large_enough: position >= minimal_horizontal_position
		ensure -- from WEL_COMPOSITE_WINDOW
			horizontal_position_set: horizontal_position = position

	ignore (code: INTEGER_32)
			-- Make sure that any exception of code `code' will be
			-- ignored. This is not the default.
			-- (from EXCEPTIONS)

	maximize
			-- Maximize the window
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			maximized: maximized

	message_on_failure
			-- Print an exception history table
			-- in case of failure.
			-- This is the default.
			-- (from EXCEPTIONS)

	minimize
			-- Minimize the window and display its icon
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			minimized: minimized

	no_message_on_failure
			-- Do not print an exception history table
			-- in case of failure.
			-- (from EXCEPTIONS)

	parent_is_sensitive: BOOLEAN
			-- Is parent of `Current' sensitive?
			-- (from EV_WIDGET_IMP)
		require -- from  EV_SENSITIVE_I
			True

	pnd_motion (a_x, a_y, a_screen_x, a_screen_y: INTEGER_32)
			-- If in drag/pick and drop then update.
			-- (from EV_PICK_AND_DROPABLE_IMP)

	pnd_press (a_x, a_y, a_button, a_screen_x, a_screen_y: INTEGER_32)
			-- Process `a_button' to start/stop the drag/pick and
			-- drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_IMP)

	exception_raise (name: STRING_8)
			-- Raise a developer exception of name `name'.
			-- (from EXCEPTIONS)

	raise_retrieval_exception (name: STRING_8)
			-- Raise a retrieval exception of name `name'.
			-- (from EXCEPTIONS)

	release_capture
			-- Release the mouse capture after a call
			-- to set_capture.
			-- (from WEL_WINDOW)
		require -- from  EV_DOCKABLE_SOURCE_IMP
			True
		require -- from  EV_PICK_AND_DROPABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
			has_capture: wel_has_capture
		ensure -- from WEL_WINDOW
			not_has_capture: not wel_has_capture

	release_heavy_capture
			-- Release the mouse capture after a call
			-- to set_heavy_capture.
			-- (from WEL_WINDOW)
		require -- from  EV_PICK_AND_DROPABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
			has_heavy_capture: has_heavy_capture
			heavy_capture_activated: heavy_capture_activated
		ensure -- from WEL_WINDOW
			heavy_capture_set: not has_heavy_capture
			heavy_capture_deactivated: not heavy_capture_activated

	remove_default_key_processing_handler
			-- Ensure default_key_processing_handler is Void.
			-- (from EV_WIDGET_I)
		ensure -- from EV_WIDGET_I
			default_key_processing_handler_removed: default_key_processing_handler = Void

	remove_pebble
			-- Remove pebble.
			-- (from EV_PICK_AND_DROPABLE_I)
		ensure -- from EV_PICK_AND_DROPABLE_I
			pebble_removed: pebble = Void and pebble_function = Void
			is_transport_disabled: not is_transport_enabled

	remove_real_source
			-- Ensure real_source is `Void'.
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			is_dockable: is_dockable
		ensure -- from EV_DOCKABLE_SOURCE_I
			real_source_void: real_source = Void

	remove_real_target
			-- Ensure real_target is `Void'.
			-- (from EV_WIDGET_I)
		ensure -- from EV_WIDGET_I
			real_target_void: real_target = Void

	reset_for_buffering (a_width, a_height: INTEGER_32)
			-- Resets the size of the pixmap without keeping original image or clearing background.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		require -- from EV_PIXMAP_I
			width_valid: a_width > 0
			height_valid: a_height > 0

	restore
			-- Restore the window to its
			-- original size and position after
			-- minimize or maximize
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_accept_cursor (a_cursor: like accept_cursor)
			-- Set `a_cursor' to be displayed when the screen pointer is over a
			-- target that accepts pebble during pick and drop.
			-- (from EV_PICK_AND_DROPABLE_I)

	set_actual_drop_target_agent (an_agent: like actual_drop_target_agent)
			-- Assign `an_agent' to actual_drop_target_agent.
			-- (from EV_WIDGET_I)
		require -- from EV_WIDGET_I
			an_agent_not_void: an_agent /= Void
		ensure -- from EV_WIDGET_I
			assigned: actual_drop_target_agent = an_agent

	set_capture
			-- Set the mouse capture to the `Current' window.
			-- Once the window has captured the mouse, all
			-- mouse input is directed to this window, regardless
			-- of whether the cursor is over that window. Only
			-- one window can have the mouse capture at a time.
			--
			-- Works only for windows in the same thread as your
			-- application.
			-- (from WEL_WINDOW)
		require -- from  EV_DOCKABLE_SOURCE_IMP
			True
		require -- from  EV_PICK_AND_DROPABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
			has_not_capture: not wel_has_capture
			has_not_heavy_capture: not has_heavy_capture
		ensure -- from WEL_WINDOW
			has_capture: wel_has_capture

	set_default_font
			-- Make system to use default font.
			-- (from EV_FONTABLE_IMP)

	set_default_key_processing_handler (a_handler: like default_key_processing_handler)
			-- Assign default_key_processing_handler to `a_handler'.
			-- (from EV_WIDGET_I)

	set_default_minimum_size
			-- Initialize the size of `Current'.
			-- Redefined by many widgets.
			-- (from EV_WIDGET_IMP)

	set_deny_cursor (a_cursor: like deny_cursor)
			-- Set `a_cursor' to be displayed when the screen pointer is over a
			-- target that doesn't accept pebble during pick and drop.
			-- (from EV_PICK_AND_DROPABLE_I)

	set_drag_and_drop_mode
			-- Set transport mechanism to drag and drop,
			-- (from EV_PICK_AND_DROPABLE_I)
		ensure -- from EV_PICK_AND_DROPABLE_I
			mode_is_drag_and_drop: mode_is_drag_and_drop

	set_ex_style (an_ex_style: INTEGER_32)
			-- Set `an_ex_style' with ex_style.
			--
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_focus
			-- Set the focus to `Current'
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_I
			True
		require -- from WEL_WINDOW
			exists: exists

	set_heavy_capture
			-- Set the mouse capture to the `Current' window.
			-- Once the window has captured the mouse, all
			-- mouse input is directed to this window, regardless
			-- of whether the cursor is over that window. Only
			-- one window can have the mouse capture at a time.
			--
			-- Works for ALL windows.
			-- (from WEL_WINDOW)
		require -- from  EV_PICK_AND_DROPABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists
			has_not_heavy_capture: not has_heavy_capture
			heavy_capture_deactivated: not heavy_capture_activated
		ensure -- from WEL_WINDOW
			heavy_capture_set: has_heavy_capture implies heavy_capture_activated

	set_horizontal_position (position: INTEGER_32)
			-- Set horizontal_position with `position'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
			position_small_enough: scroller.valid_maximal_horizontal_position (position)
			position_large_enough: position >= minimal_horizontal_position
		ensure -- from WEL_COMPOSITE_WINDOW
			horizontal_position_set: horizontal_position = position

	set_horizontal_range (minimum, maximum: INTEGER_32)
			-- Set minimal_horizontal_position and
			-- maximal_horizontal_position with `minimum' and
			-- `maximum'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
			consistent_range: minimum <= maximum
		ensure -- from WEL_COMPOSITE_WINDOW
			minimal_horizontal_position_set: minimal_horizontal_position = minimum
			maximal_horizontal_position_set: maximal_horizontal_position = maximum

	set_icon (a_small_icon: WEL_ICON; a_big_icon: WEL_ICON)
			-- Set the small (16x16) and the normal (32x32) icon for this window.
			--
			-- Note: Set `a_small_icon' to Void to remove the small icon and
			--       `a_big_icon' to Void to remove the big icon.
			-- (from WEL_COMPOSITE_WINDOW)

	set_menu (a_menu: WEL_MENU)
			-- Set menu with `a_menu'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			a_menu_not_void: a_menu /= Void
			a_menu_exists: a_menu.exists
		ensure -- from WEL_COMPOSITE_WINDOW
			has_menu: has_menu
			menu_set: menu.item = a_menu.item

	set_pebble (a_pebble: like pebble)
			-- Assign `a_pebble' to pebble.
			-- (from EV_PICK_AND_DROPABLE_I)
		require -- from EV_PICK_AND_DROPABLE_I
			a_pebble_not_void: a_pebble /= Void
		ensure -- from EV_PICK_AND_DROPABLE_I
			pebble_assigned: interface.implementation.pebble = a_pebble
			is_transport_enabled: interface.implementation.is_transport_enabled

	set_pebble_function (a_function: FUNCTION [ANY, TUPLE, ANY])
			-- Assign `a_function' to pebble_function.
			-- (from EV_PICK_AND_DROPABLE_I)
		require -- from EV_PICK_AND_DROPABLE_I
			a_function_not_void: a_function /= Void
		ensure -- from EV_PICK_AND_DROPABLE_I
			pebble_function_assigned: interface.implementation.pebble_function = a_function
			is_transport_enabled: interface.implementation.is_transport_enabled

	set_pebble_position (a_x, a_y: INTEGER_32)
			-- Set the initial position for pick and drop relative to `Current'.
			-- (from EV_PICK_AND_DROPABLE_I)
		ensure -- from EV_PICK_AND_DROPABLE_I
			pick_x_assigned: pick_x = a_x
			pick_y_assigned: pick_y = a_y

	set_pick_and_drop_mode
			-- Set transport mechanism to pick and drop,
			-- (from EV_PICK_AND_DROPABLE_I)
		ensure -- from EV_PICK_AND_DROPABLE_I
			mode_is_pick_and_drop: mode_is_pick_and_drop

	set_real_source (dockable_source: EV_DOCKABLE_SOURCE)
			-- Set `dockable_source' to be the widget moved when a
			-- drag begins on `Current'.
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			is_dockable: is_dockable
			dockable_source_not_void: dockable_source /= Void
		ensure -- from EV_DOCKABLE_SOURCE_I
			real_source_assigned: real_source = dockable_source

	set_real_target (a_target: EV_DOCKABLE_TARGET)
			-- Assign `a_target' to real_target.
			-- (from EV_WIDGET_I)
		require -- from EV_WIDGET_I
			target_not_void: a_target /= Void
		ensure -- from EV_WIDGET_I
			assigned: real_target = a_target

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

	set_size (new_width, new_height: INTEGER_32)
			-- Resize the `Current'. If the new size
			-- is smaller than the old one, the bitmap is
			-- clipped.
		require -- from EV_PIXMAP_I
			x_coordinate_valid: new_width > 0
			y_coordinate_valid: new_height > 0
		require -- from  EV_SIZEABLE_IMP
			True

	set_style (a_style: INTEGER_32)
			-- Set style with `a_style'.
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	set_target_menu_mode
			-- Set transport mechanism to target_menu.
			-- (from EV_PICK_AND_DROPABLE_I)
		ensure -- from EV_PICK_AND_DROPABLE_I
			mode_is_target_menu: mode_is_target_menu

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

	set_vertical_position (position: INTEGER_32)
			-- Set vertical_position with `position'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
			position_small_enough: scroller.valid_maximal_vertical_position (position)
			position_large_enough: position >= minimal_vertical_position
		ensure -- from WEL_COMPOSITE_WINDOW
			vertical_position_set: vertical_position = position

	set_vertical_range (minimum, maximum: INTEGER_32)
			-- Set minimal_vertical_position and
			-- maximal_vertical_position with `minimum' and
			-- `maximum'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_exists: scroller /= Void
			consistent_range: minimum <= maximum
		ensure -- from WEL_COMPOSITE_WINDOW
			minimal_vertical_position_set: minimal_vertical_position = minimum
			maximal_vertical_position_set: maximal_vertical_position = maximum

	show
			-- Show `Current'.
			-- Need to notify the parent.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True
		require -- from WEL_WINDOW
			exists: exists

	stretch (new_width, new_height: INTEGER_32)
			-- Stretch `Current' to fit in size
			-- `new_width' by `new_height'.
		require -- from EV_PIXMAP_I
			x_coordinate_valid: new_width > 0
			y_coordinate_valid: new_height > 0

	unset_menu
			-- Unset the current menu associated to the window.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
		ensure -- from WEL_COMPOSITE_WINDOW
			menu_unset: not has_menu

	update_cached_style (new_ex_style, old_ex_style: INTEGER_32)
			-- Update Window cache buffer for Window style.
			-- (from WEL_WINDOW)

	user_disable_sensitive
			-- Make object desensitive to user input.
			-- (from EV_SENSITIVE_I)
		ensure -- from EV_SENSITIVE_I
			is_desensitive: not user_is_sensitive

	user_enable_sensitive
			-- Make object sensitive to user input.
			-- (from EV_SENSITIVE_I)
		ensure -- from EV_SENSITIVE_I
			is_sensitive_if_parent_sensitive: (has_parent and then parent_is_sensitive) implies interface.implementation.is_sensitive
			is_sensitive_if_orphaned: not has_parent implies interface.implementation.is_sensitive

	vertical_update (inc, position: INTEGER_32)
			-- Update the window and the vertical scroll box with
			-- `inc' and `position'.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			scroller_not_void: scroller /= Void
			position_small_enough: scroller.valid_maximal_vertical_position (position)
			position_large_enough: position >= minimal_vertical_position
		ensure -- from WEL_COMPOSITE_WINDOW
			vertical_position_set: vertical_position = position
	
feature -- Element change

	disable_dashed_line_style
			-- Draw lines solid.
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_DRAWABLE_I
			True
		ensure -- from EV_DRAWABLE_I
			dashed_line_style_disabled: is_usable implies not interface.dashed_line_style

	disable_redraw
			-- Disable redrawing of `Current' until next call to enable_redraw.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	enable_dashed_line_style
			-- Draw lines dashed.
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_DRAWABLE_I
			True
		ensure -- from EV_DRAWABLE_I
			dashed_line_style_enabled: is_usable implies interface.dashed_line_style

	enable_redraw
			-- Ensure `Current' is redrawn as required.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_system_window_locked: BOOLEAN
			-- Is there any window locked ?
			-- (from WEL_WINDOW)

	lock_window_update
			-- Disables drawing in the current window. A locked window cannot be moved.
			-- Only one window can be locked at a time. To unlock a window locked with
			-- lock_window_update , call 'unlock_window_update'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			has_system_window_locked

	remove_clipping
			-- Do not apply any clipping.
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_DRAWABLE_I
			True
		ensure -- from EV_DRAWABLE_I
			clip_area_void: is_usable implies interface.clip_area = Void

	remove_help_context
			-- Remove key press action associated with `EV_APPLICATION.help_key'.
			-- (from EV_HELP_CONTEXTABLE_I)
		require -- from EV_HELP_CONTEXTABLE_I
			help_context_not_void: help_context /= Void
		ensure -- from EV_HELP_CONTEXTABLE_I
			no_help_context: internal_help_context = Void

	remove_tile
			-- Do not apply a tile when filling.
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_DRAWABLE_I
			True
		ensure -- from EV_DRAWABLE_I
			tile_void: is_usable implies interface.tile = Void

	set_background_color (a_color: EV_COLOR)
			-- Assign `a_color' to background_color.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_COLORIZABLE_I
			a_color_not_void: a_color /= Void
		ensure -- from EV_COLORIZABLE_I
			background_color_assigned: is_initialized implies interface.implementation.background_color.is_equal (a_color)

	set_blue (a_blue: INTEGER_32)
			-- Set blue with `a_blue'
			-- (from WEL_COLOR_REF)
		require -- from WEL_COLOR_REF
			valid_blue_inf: a_blue >= 0
			valid_blue_sup: a_blue <= 255
		ensure -- from WEL_COLOR_REF
			blue_set: blue = a_blue

	set_clip_area (an_area: EV_RECTANGLE)
			-- Set an area to clip to.
			-- Set to Void when no clipping should be applied.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			an_area_not_void: an_area /= Void
		ensure -- from EV_DRAWABLE_I
			clip_area_assigned: is_usable implies interface.clip_area.is_equal (an_area)

	set_clip_region (a_region: EV_REGION)
			-- Set an area to clip to.
			-- Set to Void when no clipping should be applied.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_region_not_void: a_region /= Void

	set_color (color: INTEGER_32)
			-- Set item with `color'.
			-- (from WEL_COLOR_REF)
		ensure -- from WEL_COLOR_REF
			color_set: item = color

	set_drawing_mode (a_mode: INTEGER_32)
			-- Set drawing mode to `a_mode'.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_mode_valid: valid_drawing_mode (a_mode)
		ensure -- from EV_DRAWABLE_I
			drawing_mode_assigned: is_usable implies interface.drawing_mode = a_mode

	set_font (a_font: EV_FONT)
			-- Set font to `a_font'.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_FONTABLE_I
			a_font_not_void: a_font /= Void
		ensure -- from EV_FONTABLE_I
			assigned: is_usable implies font.is_equal (a_font)

	set_foreground_color (a_color: EV_COLOR)
			-- Assign `a_color' to foreground_color
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_COLORIZABLE_I
			a_color_not_void: a_color /= Void
		ensure -- from EV_COLORIZABLE_I
			foreground_color_assigned: is_initialized implies interface.implementation.foreground_color.is_equal (a_color)

	set_green (a_green: INTEGER_32)
			-- Set green with `a_green'
			-- (from WEL_COLOR_REF)
		require -- from WEL_COLOR_REF
			valid_green_inf: a_green >= 0
			valid_green_sup: a_green <= 255
		ensure -- from WEL_COLOR_REF
			green_set: green = a_green

	set_help_context (an_help_context: like help_context)
			-- Assign `a_help_context' to help_context.
			-- Assign `an_help_context' to help_context.
			-- (from EV_HELP_CONTEXTABLE_I)
		require -- from EV_HELP_CONTEXTABLE_I
			an_help_context_not_void: an_help_context /= Void
		ensure -- from EV_HELP_CONTEXTABLE_I
			help_context_assigned: help_context.is_equal (an_help_context)

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

	set_line_width (a_width: INTEGER_32)
			-- Assign `a_width' to line_width.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_width_positive_or_zero: a_width >= 0
		ensure -- from EV_DRAWABLE_I
			line_width_assigned: is_usable implies interface.line_width = a_width

	set_mask (a_mask: EV_BITMAP)
			-- Set bitmap mask of `Current' to `a_mask'.
			-- (from EV_PIXMAP_IMP_DRAWABLE)
		require -- from EV_PIXMAP_I
			mask_not_void: a_mask /= Void
			mask_same_dimensions: a_mask.width = width and then a_mask.height = height

	wel_set_parent (a_parent: WEL_WINDOW)
			-- Change the parent of the current window.
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	set_parent (par: EV_CONTAINER)
			-- Make `par' the new parent of the widget.
			-- `par' can be Void then the parent is the
			-- default_parent.
			-- (from EV_PRIMITIVE_IMP)

	set_placement (a_placement: WEL_WINDOW_PLACEMENT)
			-- Set placement with `a_placement'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			a_placement_not_void: a_placement /= Void

	set_red (a_red: INTEGER_32)
			-- Set red with `a_red'
			-- (from WEL_COLOR_REF)
		require -- from WEL_COLOR_REF
			valid_red_inf: a_red >= 0
			valid_red_sup: a_red <= 255
		ensure -- from WEL_COLOR_REF
			red_set: red = a_red

	set_rgb (a_red, a_green, a_blue: INTEGER_32)
			-- Set red, green, blue with
			-- `a_red', `a_green', `a_blue'
			-- (from WEL_COLOR_REF)
		require -- from WEL_COLOR_REF
			valid_red_inf: a_red >= 0
			valid_red_sup: a_red <= 255
			valid_green_inf: a_green >= 0
			valid_green_sup: a_green <= 255
			valid_blue_inf: a_blue >= 0
			valid_blue_sup: a_blue <= 255
		ensure -- from WEL_COLOR_REF
			red_set: red = a_red
			green_set: green = a_green
			blue_set: blue = a_blue

	set_text (a_text: STRING_GENERAL)
			-- Set the window text
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			text_set_when_not_void: a_text /= Void implies text.is_equal (a_text)
			text_set_when_void: a_text = Void implies text.count = 0

	set_tile (a_pixmap: EV_PIXMAP)
			-- Set tile used to fill figures.
			-- Set to Void to use background_color to fill.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_pixmap_not_void: a_pixmap /= Void
		ensure -- from EV_DRAWABLE_I
			tile_assigned: is_usable implies interface.tile /= Void

	set_timer (timer_id, time_out: INTEGER_32)
			-- Set a timer identified by `timer_id' with a
			-- `time_out' value (in milliseconds).
			-- See also on_timer, kill_timer.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			positive_timer_id: timer_id > 0
			positive_time_out: time_out > 0

	set_tooltip (a_tooltip: STRING_GENERAL)
			-- Assign `a_tooltip' to tooltip.
			-- (from EV_TOOLTIPABLE_IMP)
		require -- from EV_TOOLTIPABLE_I
			a_tooltip_not_void: a_tooltip /= Void

	set_top_level_window_imp (a_window: EV_WINDOW_IMP)
			-- Make `a_window' the new top_level_window_imp
			-- of `Current'.
			-- (from EV_PRIMITIVE_IMP)

	set_transparent_color (value: EV_COLOR)
			-- Make `value' the new transparent color.
			-- (from EV_PIXMAP_IMP_DRAWABLE)

	set_x (a_x: INTEGER_32)
			-- Set `x' with `a_x'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_y (a_y: INTEGER_32)
			-- Set `y' with `a_y'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	unlock_window_update
			-- Unlock a locked window.	
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
	
feature -- Resizing

	set_height (value: INTEGER_32)
			-- Make `value' the new height of `Current'.
			-- (from EV_SIZEABLE_IMP)
		require -- from WEL_WINDOW
			exists: exists

	set_minimum_height (value: INTEGER_32)
			-- Make `value' the new minimum_height of `Current'.
			-- There is no need to grow `Current' if its size is
			-- too small, the parent will do it if necessary.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_WIDGET_I
			a_minimum_height_positive: value >= 0
		ensure -- from EV_WIDGET_I
			minimum_height_assigned: is_usable implies interface.minimum_height = value

	set_minimum_size (mw, mh: INTEGER_32)
			-- Make `mw' the new minimum_width and `mh' the new
			-- minimum_height of `Current'.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_WIDGET_I
			a_minimum_width_positive: mw >= 0
			a_minimum_height_positive: mh >= 0
		ensure -- from EV_WIDGET_I
			minimum_width_assigned: is_usable implies interface.minimum_width = mw
			minimum_height_assigned: is_usable implies interface.minimum_height = mh

	set_minimum_width (value: INTEGER_32)
			-- Make `value' the new minimum_width of `Current'.
			-- There is no need to grow `Current' if its size is
			-- too small, the parent will do it if necessary.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_WIDGET_I
			a_minimum_width_positive: value >= 0
		ensure -- from EV_WIDGET_I
			minimum_width_assigned: is_usable implies interface.minimum_width = value

	set_width (value: INTEGER_32)
			-- Make `value' the new width of `Current'.
			-- (from EV_SIZEABLE_IMP)
		require -- from WEL_WINDOW
			exists: exists
	
feature -- Conversion

	key_code_from_wel (a_wel_code: INTEGER_32): INTEGER_32
			-- Corresponding key code for ``a_wel_code''.
			-- (from EV_WEL_KEY_CONVERSION)
		require -- from EV_WEL_KEY_CONVERSION
			a_wel_code_valid: valid_wel_code (a_wel_code)

	key_code_to_wel (a_key_code: INTEGER_32): INTEGER_32
			-- Corresponding WEL code for ``a_key_code''.
			-- (from EV_WEL_KEY_CONVERSION)
		require -- from EV_WEL_KEY_CONVERSION
			a_key_code_valid: valid_key_code (a_key_code)
	
feature -- Duplication

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

	arrow_action (direction: BOOLEAN)
			-- Go to the next widget that takes the focus throughthe arrow
			-- keys. If `direction' it goes to the next widget otherwise,
			-- it goes to the previous one.
			-- (from EV_PRIMITIVE_IMP)

	bring_to_top
			-- Bring this window to the top of the Z order.
			--
			-- Note:
			--  * If the window is a top-level window, it is activated.
			--  * If the window is a child window, the top-level parent window
			--    associated with the child window is activated.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	close_dockable_dialog (dockable_dialog: EV_DOCKABLE_DIALOG)
			-- Close request received by `dockable_dialog' so
			-- restore widget contained back to its original position
			-- in its old parent if possible.
			-- We must fire `dock_ended' actions.
			-- (from EV_DOCKABLE_SOURCE_I)
		ensure -- from EV_DOCKABLE_SOURCE_I
			dockable_dialog_destroyed: dockable_dialog.is_destroyed

	complete_dock
			-- Complete a dock from source_being_docked.
			-- (from EV_DOCKABLE_SOURCE_I)
		require -- from EV_DOCKABLE_SOURCE_I
			source_being_docked: source_being_docked /= Void
		ensure -- from EV_DOCKABLE_SOURCE_I
			not_dock_executing: not is_dock_executing
			insert_separator_not_parented: insert_sep.parent = Void
			insert_label_not_parented: insert_label.parent = Void

	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)

	wel_destroy
			-- Destroy the window and quit the application
			-- if `Current' is the application's main window.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		require -- from  EV_WIDGET_IMP
			True
		ensure -- from WEL_WINDOW
			not_exists: not exists

	disable_horizontal_scroll_bar
			-- Disable the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	disable_vertical_scroll_bar
			-- Disable the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

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

	draw_menu
			-- Draw the menu bar associated with the window.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists
			has_menu: has_menu

	enable_horizontal_scroll_bar
			-- Enable the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	enable_vertical_scroll_bar
			-- Enable the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	hide_cursor
			-- Hide the cursor.
			-- (from WEL_WINDOWS_ROUTINES)

	hide_horizontal_scroll_bar
			-- Hide the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	hide_scroll_bars
			-- Hide the horizontal and vertical scroll bars.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	hide_vertical_scroll_bar
			-- Hide the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	insert_after (a_window: WEL_WINDOW)
			-- Insert the current window after `a_window'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			a_window_not_void: a_window /= Void
			a_window_not_current: a_window /= Current
			a_window_exists: a_window.exists

	invalidate
			-- Invalide the entire client area of the window. The
			-- background will be erased before.
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	invalidate_rect (rect: WEL_RECT; erase_background: BOOLEAN)
			-- Invalidate the area `rect' and erase
			-- the background if `erase_background' is True.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			rect_not_void: rect /= Void

	invalidate_region (region: WEL_REGION; erase_background: BOOLEAN)
			-- Invalidate the area `region' and erase
			-- the background if `erase_background' is True.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			region_not_void: region /= Void
			region_exists: region.exists

	invalidate_without_background
			-- Invalidate the entire client area of the window. The
			-- background will not be erased.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	kill_timer (timer_id: INTEGER_32)
			-- Kill the timer identified by `timer_id'.
			-- See also set_timer, on_timer.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			positive_timer_id: timer_id > 0

	message_beep_asterisk
			-- Play the system asterisk waveform sound.
			-- (from WEL_WINDOWS_ROUTINES)

	message_beep_exclamation
			-- Play the system exclamation waveform sound.
			-- (from WEL_WINDOWS_ROUTINES)

	message_beep_hand
			-- Play the system hand waveform sound.
			-- (from WEL_WINDOWS_ROUTINES)

	message_beep_ok
			-- Play the system ok waveform sound.
			-- (from WEL_WINDOWS_ROUTINES)

	message_beep_question
			-- Play the system question waveform sound.
			-- (from WEL_WINDOWS_ROUTINES)

	wel_move (a_x, a_y: INTEGER_32)
			-- Move the window to `a_x', `a_y' position.
			-- (from WEL_CONTROL_WINDOW)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	move_absolute (a_x, a_y: INTEGER_32)
			-- Move the window to `a_x', `a_y' absolute position.
			-- (from WEL_COMPOSITE_WINDOW)
		require -- from WEL_COMPOSITE_WINDOW
			exists: exists

	wel_move_and_resize (a_x, a_y, a_width, a_height: INTEGER_32; repaint: BOOLEAN)
			-- Move the window to `a_x', `a_y' position and
			-- resize it with `a_width', `a_height'.
			-- (from WEL_CONTROL_WINDOW)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	on_getdlgcode
			-- Called when window receives WM_GETDLGCODE message.
			-- (from EV_PRIMITIVE_IMP)
		require -- from  WEL_WINDOW
			True

	output_debug_string (s: STRING_GENERAL)
			-- Send a string `s' to the system debugger.
			-- (from WEL_WINDOWS_ROUTINES)
		require -- from WEL_WINDOWS_ROUTINES
			s_not_void: s /= Void

	process_tab_and_arrows_keys (virtual_key: INTEGER_32)
			-- Process a tab or arrow key press to give the focus to the next
			-- widget. Need to be called in the feature on_key_down when the
			-- control need to process this kind of keys.
			-- (from EV_PRIMITIVE_IMP)

	process_tab_key (virtual_key: INTEGER_32)
			-- Process a tab or arrow key press to give the focus to the next
			-- widget. Need to be called in the feature on_key_down when the
			-- control needs to process this kind of keys.
			-- (from EV_PRIMITIVE_IMP)

	put_command (a_command: WEL_COMMAND; message: INTEGER_32; argument: ANY)
			-- Put `a_command' associated to `message'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			a_command_not_void: a_command /= Void
			positive_message: message >= 0
		ensure -- from WEL_WINDOW
			command_added: command (message) = a_command and command_argument (message) = argument

	remove_command (message: INTEGER_32)
			-- Remove the command associated to `message'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0
			command_exists: command_exists (message)
		ensure -- from WEL_WINDOW
			command_removed: not command_exists (message)

	wel_resize (a_width, a_height: INTEGER_32)
			-- Resize the window with `a_width', `a_height'.
			-- (from WEL_WINDOW)
		require -- from  EV_SIZEABLE_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	resource_string_id (an_id: INTEGER_32): STRING_32
			-- String identified by `an_id' in the resource file.
			-- (from WEL_WINDOWS_ROUTINES)
		ensure -- from WEL_WINDOWS_ROUTINES
			result_not_void: Result /= Void

	scroll (a_x, a_y: INTEGER_32)
			-- Scroll the contents of the window's client area.
			-- `a_x' and `a_y' specify the amount of horizontal
			-- and vertical scrolling.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_class_icon (new_icon: WEL_ICON)
			-- Replace the current icon for the class which this window
			-- belongs to.
			--
			-- The SetClassLong function replaces the specified 32-bit (long)
			-- value at the specified offset into the extra class memory
			-- or the WNDCLASSEX structure for the class to which the
			-- specified window belongs.
			-- (from WEL_WINDOW)

	set_class_small_icon (new_icon: WEL_ICON)
			-- Replace the current icon for the class which this window
			-- belongs to.
			--
			-- The SetClassLong function replaces the specified 32-bit (long)
			-- value at the specified offset into the extra class memory
			-- or the WNDCLASSEX structure for the class to which the
			-- specified window belongs.
			-- (from WEL_WINDOW)

	set_cursor_position_absolute (x, y: INTEGER_32)
			-- Set the cursor position to `x', `y'.
			-- (from WEL_WINDOWS_ROUTINES)

	set_z_order (z_order: POINTER)
			-- Set the z-order of the window.
			-- See class WEL_HWND_CONSTANTS for `z_order' values.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			valid_hwnd_constant: valid_hwnd_constant (z_order)

	show_cursor
			-- Show the cursor.
			-- (from WEL_WINDOWS_ROUTINES)

	show_horizontal_scroll_bar
			-- Show the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	show_scroll_bars
			-- Show the horizontal and vertical scroll bars.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	show_vertical_scroll_bar
			-- Show the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	show_with_option (cmd_show: INTEGER_32)
			-- Set the window's visibility with `cmd_show'.
			-- See class WEL_SW_CONSTANTS for `cmd_show' value.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			parent_shown: wel_parent /= Void implies wel_parent.exists and wel_parent.shown

	tab_action (direction: BOOLEAN)
			-- Go to the next widget that takes the focus through to the tab
			-- key. If `direction' it goes to the next widget otherwise,
			-- it goes to the previous one.
			-- (from EV_PRIMITIVE_IMP)

	tooltip_window: WEL_WINDOW
			-- `Result' is WEL_WINDOW of `Current' used
			-- to trigger tooltip events. May be redefined in
			-- descendents that are composed of more than one window
			-- such as combo boxes.
			-- (from EV_PRIMITIVE_IMP)

	update
			-- Update the client area by sending a Wm_paint message.
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
		require -- from WEL_WINDOW
			exists: exists

	validate
			-- Validate the entire client area of the window.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	validate_rect (rect: WEL_RECT)
			-- Validate the area `rect'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			rect_not_void: rect /= Void

	validate_region (region: WEL_REGION)
			-- Validate the area `region'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			region_not_void: region /= Void
			region_exists: region.exists

	win_help (help_file: STRING_GENERAL; a_command, data: INTEGER_32)
			-- Start the Windows Help program with `help_file'.
			-- `a_command' specifies the type of help requested. See
			-- class WEL_HELP_CONSTANTS for `a_command' values.
			-- 'data' is depandant on 'a_command'.  Check MSDN for more details.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			help_file_not_void: help_file /= Void
	
feature -- Obsolete

	nc_minheight: INTEGER_32 is 2
			-- Used only in the `notify_change' feature to
			-- notify the parent that the minimum height of
			-- `Current' has changed.
			-- (from EV_SIZEABLE_IMP)

	nc_minsize: INTEGER_32 is 3
			-- Used only in the `notify_change' feature to
			-- notify the parent that both the minimum width
			-- and height of `Current' widget have changed.
			-- (from EV_SIZEABLE_IMP)

	nc_minwidth: INTEGER_32 is 1
			-- Used only in the `notify_change' feature to
			-- notify the parent that the minimum width of
			-- `Current' has changed.
			-- (from EV_SIZEABLE_IMP)
	
feature -- Inapplicable

	drag_cursor: EV_POINTER_STYLE
			-- Cursor used when `Current' is being transported.
			-- (from EV_DOCKABLE_SOURCE_I)
	
feature -- Implementation

	cwin_get_next_dlggroupitem (hdlg, hctl: POINTER; previous: BOOLEAN): POINTER
			-- SDK GetNextDlgGroupItem
			-- (from EV_WEL_CONTROL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True

	cwin_get_next_dlgtabitem (hdlg, hctl: POINTER; previous: BOOLEAN): POINTER
			-- SDK GetNextDlgGroupItem
			-- (from EV_WEL_CONTROL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True

	draw_rubber_band
			-- Erase previously drawn rubber band.
			-- Draw a rubber band between initial pick point and cursor.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True

	end_transport (a_x, a_y, a_button: INTEGER_32; a_x_tilt, a_y_tilt, a_pressure: REAL_64; a_screen_x, a_screen_y: INTEGER_32)
			-- Terminate the pick and drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True
		ensure then -- from EV_PICK_AND_DROPABLE_IMP
			original_window_void: original_top_level_window_imp = Void
			press_action_reset: press_action = ev_pnd_start_transport
			not_has_capture: internal_capture_status.item = False

	erase_rubber_band
			-- Erase previously drawn rubber band.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True

	internal_disable_dockable
			-- Enable or disable dockable.
			-- This has no implementation on Windows, as we do not need it.
			-- On Gtk, this is necessary, so that the necessary signal
			-- connections may be performed.
			-- Was declared in EV_DOCKABLE_SOURCE_IMP as synonym of internal_enable_dockable.
			-- (from EV_DOCKABLE_SOURCE_IMP)
		require -- from  EV_DOCKABLE_SOURCE_I
			True

	internal_enable_dockable
			-- Enable or disable dockable.
			-- This has no implementation on Windows, as we do not need it.
			-- On Gtk, this is necessary, so that the necessary signal
			-- connections may be performed.
			-- Was declared in EV_DOCKABLE_SOURCE_IMP as synonym of internal_disable_dockable.
			-- (from EV_DOCKABLE_SOURCE_IMP)
		require -- from  EV_DOCKABLE_SOURCE_I
			True

	internal_set_pointer_style (a_new_cursor: EV_POINTER_STYLE)
			-- Set pointer style implementation.
			-- (from EV_SHARED_TRANSPORT_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True

	pnd_screen: EV_SCREEN
			-- Screen used for retrieving current pointer position,
			-- and drawing if transport type necessitates this.
			-- (from EV_SHARED_TRANSPORT_IMP)

	real_pointed_target: EV_PICK_AND_DROPABLE
			-- Hole at mouse position
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True

	set_pointer_style (new_cursor: EV_POINTER_STYLE)
			-- Assign `new_cursor' to cursor used on `Current'.
			-- Can be called through interface.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True
		require -- from  EV_DOCKABLE_SOURCE_IMP
			True

	start_transport (a_x, a_y, a_button: INTEGER_32; a_x_tilt, a_y_tilt, a_pressure: REAL_64; a_screen_x, a_screen_y: INTEGER_32)
			-- Initialize the pick/drag and drop mechanism.
			-- (from EV_PICK_AND_DROPABLE_IMP)
		require -- from  EV_PICK_AND_DROPABLE_I
			True

	update_buttons (a_parent: EV_TOOL_BAR; start_index, end_index: INTEGER_32)
			-- Ensure that buttons from `start_index' to `end_index' in `a_parent' are
			-- refreshed. This is called at the end of  a dockable transport from a tool bar button
			-- as on some platforms, they end up in an invalid state, and need refreshing.
			-- (from EV_DOCKABLE_SOURCE_IMP)
		require -- from EV_DOCKABLE_SOURCE_I
			start_index_valid: start_index >= 1
			end_index_valid: end_index <= a_parent.count

	wel_font: WEL_FONT
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_FONTABLE_IMP
			True
		require -- from WEL_CONTROL_WINDOW
			exists: exists
		ensure -- from WEL_CONTROL_WINDOW
			result_not_void: Result /= Void
	
feature -- Access EV_DRAGABLE_SOURCE.

	dockable_dialog_target: EV_DOCKABLE_DIALOG
			-- A dockable dialog that will be created as
			-- necessary. This is not a local, to avoid it
			-- being garbage collected.
			-- (from EV_SHARED_TRANSPORT_I)

	global_drag_targets: ARRAYED_LIST [INTEGER_32]
			-- Shortcut to EV_APPLICATION.pnd_targets.
			-- (from EV_SHARED_TRANSPORT_I)

	insert_label: EV_CELL
			-- Label used to indicate where `Current' will be placed in target.
			-- (from EV_SHARED_TRANSPORT_I)
		ensure -- from EV_SHARED_TRANSPORT_I
			result_not_void: Result /= Void

	insert_label_imp: EV_CELL_I
			-- Once access to implementation of Insert_label.
			-- (from EV_SHARED_TRANSPORT_I)
		ensure -- from EV_SHARED_TRANSPORT_I
			Result /= Void

	insert_sep: EV_TOOL_BAR_SEPARATOR
			-- Once access to a separator used to indicate the insertion position
			-- when moving tool bar items.
			-- (from EV_SHARED_TRANSPORT_I)

	insert_sep_imp: EV_TOOL_BAR_SEPARATOR_I
			-- Once access to implementation of Insert_sep.
			-- (from EV_SHARED_TRANSPORT_I)
		ensure -- from EV_SHARED_TRANSPORT_I
			Result /= Void

	internal_screen: EV_SCREEN
			-- Once access to an EV_SCREEN.
			-- (from EV_SHARED_TRANSPORT_I)

	original_x_offset: INTEGER_16
			-- Original x_offset and original_y_offset of transport
			-- realtive to widget. Only used for dragable transports.
			-- (from EV_SHARED_TRANSPORT_I)

	original_y_offset: INTEGER_16
			-- Original x_offset and original_y_offset of transport
			-- realtive to widget. Only used for dragable transports.
			-- (from EV_SHARED_TRANSPORT_I)

	originating_source: EV_DOCKABLE_SOURCE_I
			-- Dragable source that originated the transport of `source_being_dragged'.
			-- (from EV_SHARED_TRANSPORT_I)

	remove_insert_label
			-- Remove Insert_label from its current parent.
			-- We must handle a special case for cells. If the parent is a cell,
			-- then we remove the cell from its parent, and then restore it.
			-- Otherwise, when the label, removed, the cell keeps it size, and cells
			-- are normally used with real_target when the cell must
			-- not be visible.
			-- (from EV_SHARED_TRANSPORT_I)
		ensure -- from EV_SHARED_TRANSPORT_I
			not_parented: insert_label.parent = Void

	remove_insert_sep
			-- Ensure `inset_sep' is not parented.
			-- (from EV_SHARED_TRANSPORT_I)
		ensure -- from EV_SHARED_TRANSPORT_I
			not_parented: insert_sep.parent = Void

	source_being_docked: EV_DOCKABLE_SOURCE_I
			-- Dragable source currently being transported. May be a
			-- WIDGET_IMP or an EV_TOOL_BAR_BUTTON_IMP.
			-- (from EV_SHARED_TRANSPORT_I)
	
feature -- Access EV_PICK_AND_DROPABLE.

	default_accept_cursor: EV_POINTER_STYLE
			-- Used in lieu of a user defined accept_cursor.
			-- (from EV_SHARED_TRANSPORT_I)

	default_deny_cursor: EV_POINTER_STYLE
			-- Used in lieu of a user defined deny_cursor.
			-- (from EV_SHARED_TRANSPORT_I)

	default_pixmaps: EV_STOCK_PIXMAPS
			-- Default pixmaps
			-- (from EV_SHARED_TRANSPORT_I)
		require -- from  EV_SHARED_TRANSPORT_IMP
			True

	global_pnd_targets: HASH_TABLE [INTEGER_32, INTEGER_32]
			-- Shortcut to EV_APPLICATION.pnd_targets.
			-- (from EV_SHARED_TRANSPORT_I)

	rubber_band_is_drawn: BOOLEAN
			-- Is a rubber band line currently on the screen?
			-- (from EV_SHARED_TRANSPORT_I)
	
feature -- Access common.

	pointer_x: INTEGER_16
			-- (from EV_SHARED_TRANSPORT_I)

	pointer_y: INTEGER_16
			-- (from EV_SHARED_TRANSPORT_I)
	
feature -- Basic Operations

	refresh_now
			-- Refresh now.
			-- (from EV_WIDGET_IMP)
		require -- from  EV_WIDGET_I
			True
	
feature -- Basic operation

	internal_set_minimum_height (value: INTEGER_32)
			-- Make `value' the new minimum_height of `Current'.
			-- Should check if the user didn't set the minimum width
			-- before to set the new value.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_SIZEABLE_IMP
			positive_value: value >= 0

	internal_set_minimum_size (mw, mh: INTEGER_32)
			-- Make `mw' the new minimum_width and `mh' the new
			-- minimum_height of `Current'.
			-- Should check if the user didn't set the minimum width
			-- before to set the new value.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_SIZEABLE_IMP
			positive_mw: mw >= 0
			positive_mh: mh >= 0

	internal_set_minimum_width (value: INTEGER_32)
			-- Make `value' the new minimum_width of `Current'.
			-- Should check if the user didn't set the minimum width
			-- before to set the new value.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_SIZEABLE_IMP
			positive_value: value >= 0

	internal_set_size (mw, mh: INTEGER_32)
			-- Set `size' of child_cell.
			-- (from EV_SIZEABLE_IMP)
		require -- from EV_SIZEABLE_IMP
			positive_mw: mw >= 0
			positive_mh: mh >= 0

	parent_ask_resize (a_width, a_height: INTEGER_32)
			-- Called by the parent when the size of `Current' has to be
			-- changed to `a_width', `a_height'.
			-- (from EV_SIZEABLE_IMP)

	set_move_and_size (a_x_position, a_y_position, a_width, a_height: INTEGER_32)
			-- Move and resize the widget. Only the parent can call this feature
			-- because it doesn't notify the parent of the change.
			-- Equivalent of parent_ask_resize with move.
			-- (from EV_SIZEABLE_IMP)
	
feature -- Clearing and drawing operations

	clear
			-- Erase `Current' with background_color.
		require -- from  EV_DRAWABLE_I
			True

	clear_rectangle (x1, y1, a_width, a_height: INTEGER_32)
			-- Draw rectangle with upper-left corner on (`x', `y')
			-- with size `a_width' and `a_height' in background_color.
		require -- from  EV_DRAWABLE_I
			True

	redraw
			-- Force `Current' to redraw itself.
		require -- from  EV_DRAWABLE_I
			True
	
feature -- Constants

	drawing_mode_and: INTEGER_32 is 3
			-- Drawing mode where bitwise AND is performed when a
			-- pixel is drawn.
			--
			-- T\S | 0 | 1 |
			-- -------------
			--   0 | 0 | 0 |
			-- -------------
			--   1 | 0 | 1 |
			-- (from EV_DRAWABLE_CONSTANTS)

	drawing_mode_copy: INTEGER_32 is 0
			-- Normal drawing mode.
			--
			-- T\S | 0 | 1 |
			-- -------------
			--   0 | 0 | 1 |
			-- -------------
			--   1 | 0 | 1 |
			-- (from EV_DRAWABLE_CONSTANTS)

	drawing_mode_invert: INTEGER_32 is 2
			-- Drawing mode where bits are inverted before drawn.
			--
			-- T\S | 0 | 1 |
			-- -------------
			--   0 | 1 | 0 |
			-- -------------
			--   1 | 1 | 0 |
			-- (from EV_DRAWABLE_CONSTANTS)

	drawing_mode_or: INTEGER_32 is 4
			-- Drawing mode where bitwise OR is performed when a
			-- pixel is drawn.
			--
			-- T\S | 0 | 1 |
			-- -------------
			--   0 | 0 | 1 |
			-- -------------
			--   1 | 1 | 1 |
			-- (from EV_DRAWABLE_CONSTANTS)

	drawing_mode_xor: INTEGER_32 is 1
			-- Drawing mode where bitwise XOR is performed when a
			-- pixel is drawn.
			--
			-- T\S | 0 | 1 |
			-- -------------
			--   0 | 0 | 1 |
			-- -------------
			--   1 | 1 | 0 |
			-- (from EV_DRAWABLE_CONSTANTS)

	key_0: INTEGER_32 is 1
			-- (from EV_KEY_CONSTANTS)

	key_1: INTEGER_32 is 2
			-- (from EV_KEY_CONSTANTS)

	key_2: INTEGER_32 is 3
			-- (from EV_KEY_CONSTANTS)

	key_3: INTEGER_32 is 4
			-- (from EV_KEY_CONSTANTS)

	key_4: INTEGER_32 is 5
			-- (from EV_KEY_CONSTANTS)

	key_5: INTEGER_32 is 6
			-- (from EV_KEY_CONSTANTS)

	key_6: INTEGER_32 is 7
			-- (from EV_KEY_CONSTANTS)

	key_7: INTEGER_32 is 8
			-- (from EV_KEY_CONSTANTS)

	key_8: INTEGER_32 is 9
			-- (from EV_KEY_CONSTANTS)

	key_9: INTEGER_32 is 10
			-- (from EV_KEY_CONSTANTS)

	key_a: INTEGER_32 is 68
			-- (from EV_KEY_CONSTANTS)

	key_alt: INTEGER_32 is 96
			-- (from EV_KEY_CONSTANTS)

	key_b: INTEGER_32 is 69
			-- (from EV_KEY_CONSTANTS)

	key_back_space: INTEGER_32 is 40
			-- (from EV_KEY_CONSTANTS)

	key_backquote: INTEGER_32 is 56
			-- (from EV_KEY_CONSTANTS)

	key_backslash: INTEGER_32 is 54
			-- (from EV_KEY_CONSTANTS)

	key_c: INTEGER_32 is 70
			-- (from EV_KEY_CONSTANTS)

	key_caps_lock: INTEGER_32 is 45
			-- (from EV_KEY_CONSTANTS)

	key_close_bracket: INTEGER_32 is 52
			-- (from EV_KEY_CONSTANTS)

	key_comma: INTEGER_32 is 47
			-- (from EV_KEY_CONSTANTS)

	key_ctrl: INTEGER_32 is 95
			-- (from EV_KEY_CONSTANTS)

	key_d: INTEGER_32 is 71
			-- (from EV_KEY_CONSTANTS)

	key_dash: INTEGER_32 is 57
			-- (from EV_KEY_CONSTANTS)

	key_delete: INTEGER_32 is 67
			-- (from EV_KEY_CONSTANTS)

	key_down_arrow: INTEGER_32 is 59
			-- (from EV_KEY_CONSTANTS)

	key_e: INTEGER_32 is 72
			-- (from EV_KEY_CONSTANTS)

	key_end: INTEGER_32 is 65
			-- (from EV_KEY_CONSTANTS)

	key_enter: INTEGER_32 is 41
			-- (from EV_KEY_CONSTANTS)

	key_equal: INTEGER_32 is 48
			-- (from EV_KEY_CONSTANTS)

	key_escape: INTEGER_32 is 42
			-- (from EV_KEY_CONSTANTS)

	key_f: INTEGER_32 is 73
			-- (from EV_KEY_CONSTANTS)

	key_f1: INTEGER_32 is 27
			-- (from EV_KEY_CONSTANTS)

	key_f10: INTEGER_32 is 36
			-- (from EV_KEY_CONSTANTS)

	key_f11: INTEGER_32 is 37
			-- (from EV_KEY_CONSTANTS)

	key_f12: INTEGER_32 is 38
			-- (from EV_KEY_CONSTANTS)

	key_f2: INTEGER_32 is 28
			-- (from EV_KEY_CONSTANTS)

	key_f3: INTEGER_32 is 29
			-- (from EV_KEY_CONSTANTS)

	key_f4: INTEGER_32 is 30
			-- (from EV_KEY_CONSTANTS)

	key_f5: INTEGER_32 is 31
			-- (from EV_KEY_CONSTANTS)

	key_f6: INTEGER_32 is 32
			-- (from EV_KEY_CONSTANTS)

	key_f7: INTEGER_32 is 33
			-- (from EV_KEY_CONSTANTS)

	key_f8: INTEGER_32 is 34
			-- (from EV_KEY_CONSTANTS)

	key_f9: INTEGER_32 is 35
			-- (from EV_KEY_CONSTANTS)

	key_g: INTEGER_32 is 74
			-- (from EV_KEY_CONSTANTS)

	key_h: INTEGER_32 is 75
			-- (from EV_KEY_CONSTANTS)

	key_home: INTEGER_32 is 64
			-- (from EV_KEY_CONSTANTS)

	key_i: INTEGER_32 is 76
			-- (from EV_KEY_CONSTANTS)

	key_insert: INTEGER_32 is 66
			-- (from EV_KEY_CONSTANTS)

	key_j: INTEGER_32 is 77
			-- (from EV_KEY_CONSTANTS)

	key_k: INTEGER_32 is 78
			-- (from EV_KEY_CONSTANTS)

	key_l: INTEGER_32 is 79
			-- (from EV_KEY_CONSTANTS)

	key_left: INTEGER_32 is 60
			-- (from EV_KEY_CONSTANTS)

	key_left_meta: INTEGER_32 is 97
			-- (from EV_KEY_CONSTANTS)

	key_m: INTEGER_32 is 80
			-- (from EV_KEY_CONSTANTS)

	key_menu: INTEGER_32 is 99
			-- (from EV_KEY_CONSTANTS)

	key_n: INTEGER_32 is 81
			-- (from EV_KEY_CONSTANTS)

	key_num_lock: INTEGER_32 is 24
			-- (from EV_KEY_CONSTANTS)

	key_numpad_0: INTEGER_32 is 11
			-- (from EV_KEY_CONSTANTS)

	key_numpad_1: INTEGER_32 is 12
			-- (from EV_KEY_CONSTANTS)

	key_numpad_2: INTEGER_32 is 13
			-- (from EV_KEY_CONSTANTS)

	key_numpad_3: INTEGER_32 is 14
			-- (from EV_KEY_CONSTANTS)

	key_numpad_4: INTEGER_32 is 15
			-- (from EV_KEY_CONSTANTS)

	key_numpad_5: INTEGER_32 is 16
			-- (from EV_KEY_CONSTANTS)

	key_numpad_6: INTEGER_32 is 17
			-- (from EV_KEY_CONSTANTS)

	key_numpad_7: INTEGER_32 is 18
			-- (from EV_KEY_CONSTANTS)

	key_numpad_8: INTEGER_32 is 19
			-- (from EV_KEY_CONSTANTS)

	key_numpad_9: INTEGER_32 is 20
			-- (from EV_KEY_CONSTANTS)

	key_numpad_add: INTEGER_32 is 21
			-- (from EV_KEY_CONSTANTS)

	key_numpad_decimal: INTEGER_32 is 26
			-- (from EV_KEY_CONSTANTS)

	key_numpad_divide: INTEGER_32 is 22
			-- (from EV_KEY_CONSTANTS)

	key_numpad_multiply: INTEGER_32 is 23
			-- (from EV_KEY_CONSTANTS)

	key_numpad_subtract: INTEGER_32 is 25
			-- (from EV_KEY_CONSTANTS)

	key_o: INTEGER_32 is 82
			-- (from EV_KEY_CONSTANTS)

	key_open_bracket: INTEGER_32 is 51
			-- (from EV_KEY_CONSTANTS)

	key_p: INTEGER_32 is 83
			-- (from EV_KEY_CONSTANTS)

	key_page_down: INTEGER_32 is 63
			-- (from EV_KEY_CONSTANTS)

	key_page_up: INTEGER_32 is 62
			-- (from EV_KEY_CONSTANTS)

	key_pause: INTEGER_32 is 44
			-- (from EV_KEY_CONSTANTS)

	key_period: INTEGER_32 is 49
			-- (from EV_KEY_CONSTANTS)

	key_q: INTEGER_32 is 84
			-- (from EV_KEY_CONSTANTS)

	key_quote: INTEGER_32 is 55
			-- (from EV_KEY_CONSTANTS)

	key_r: INTEGER_32 is 85
			-- (from EV_KEY_CONSTANTS)

	key_right: INTEGER_32 is 61
			-- (from EV_KEY_CONSTANTS)

	key_right_meta: INTEGER_32 is 98
			-- (from EV_KEY_CONSTANTS)

	key_s: INTEGER_32 is 86
			-- (from EV_KEY_CONSTANTS)

	key_scroll_lock: INTEGER_32 is 46
			-- (from EV_KEY_CONSTANTS)

	key_semicolon: INTEGER_32 is 50
			-- (from EV_KEY_CONSTANTS)

	key_shift: INTEGER_32 is 94
			-- (from EV_KEY_CONSTANTS)

	key_slash: INTEGER_32 is 53
			-- (from EV_KEY_CONSTANTS)

	key_space: INTEGER_32 is 39
			-- (from EV_KEY_CONSTANTS)

	key_t: INTEGER_32 is 87
			-- (from EV_KEY_CONSTANTS)

	key_tab: INTEGER_32 is 43
			-- (from EV_KEY_CONSTANTS)

	key_u: INTEGER_32 is 88
			-- (from EV_KEY_CONSTANTS)

	key_up_arrow: INTEGER_32 is 58
			-- (from EV_KEY_CONSTANTS)

	key_v: INTEGER_32 is 89
			-- (from EV_KEY_CONSTANTS)

	key_w: INTEGER_32 is 90
			-- (from EV_KEY_CONSTANTS)

	key_x: INTEGER_32 is 91
			-- (from EV_KEY_CONSTANTS)

	key_y: INTEGER_32 is 92
			-- (from EV_KEY_CONSTANTS)

	key_z: INTEGER_32 is 93
			-- (from EV_KEY_CONSTANTS)
	
feature -- Contract support

	valid_drawing_mode (a_mode: INTEGER_32): BOOLEAN
			-- Is `a_mode' a valid drawing mode?
			-- (from EV_DRAWABLE_CONSTANTS)

	valid_key_code (a_code: INTEGER_32): BOOLEAN
			-- Is ``a_code'' a valid key code?
			-- (from EV_KEY_CONSTANTS)

	valid_wel_code (a_wel_code: INTEGER_32): BOOLEAN
			-- Is ``a_wel_code'' valid?
			-- (from EV_WEL_KEY_CONVERSION)
	
feature -- Default creation values

	default_height: INTEGER_32
			-- Default position and dimension when the window is
			-- created.
			-- Was declared in WEL_FRAME_WINDOW as synonym of Default_x, Default_y and Default_width.
			-- (from WEL_FRAME_WINDOW)

	default_id: INTEGER_32
			-- Default window id.
			-- (Zero by default).
			-- (from WEL_FRAME_WINDOW)

	default_width: INTEGER_32
			-- Default position and dimension when the window is
			-- created.
			-- Was declared in WEL_FRAME_WINDOW as synonym of Default_x, Default_y and Default_height.
			-- (from WEL_FRAME_WINDOW)

	default_x: INTEGER_32
			-- Default position and dimension when the window is
			-- created.
			-- Was declared in WEL_FRAME_WINDOW as synonym of Default_y, Default_width and Default_height.
			-- (from WEL_FRAME_WINDOW)

	default_y: INTEGER_32
			-- Default position and dimension when the window is
			-- created.
			-- Was declared in WEL_FRAME_WINDOW as synonym of Default_x, Default_width and Default_height.
			-- (from WEL_FRAME_WINDOW)
	
feature -- Deferred features

	has_tabstop: BOOLEAN
			-- Does `Current' exhibit all attributes to permit it to receive the
			-- focus while tabbing?
			-- (from EV_WIDGET_IMP)

	next_dlggroupitem (hdlg, hctl: POINTER; previous: BOOLEAN): POINTER
			-- Encapsulation of the SDK GetNextDlgGroupItem,
			-- because we cannot do a deferred feature become an
			-- external feature.
			-- (from EV_WIDGET_IMP)

	next_dlgtabitem (hdlg, hctl: POINTER; previous: BOOLEAN): POINTER
			-- Encapsulation of the SDK GetNextDlgTabItem,
			-- because we cannot do a deferred feature become an
			-- external feature.
			-- (from EV_WIDGET_IMP)

	next_tabstop_widget (start_widget: EV_WIDGET; search_pos: INTEGER_32; forwards: BOOLEAN): EV_WIDGET_IMP
			-- Return the next widget that may by tabbed to as a result of pressing the tab key from `start_widget'.
			-- `search_pos' is the index where searching must start from for containers, and `forwards' determines the
			-- tabbing direction. If `search_pos' is less then 1 or more than `count' for containers, the parent of the
			-- container must be searched next.
			-- (from EV_WIDGET_IMP)
		require -- from EV_WIDGET_IMP
			start_widget_not_void: start_widget /= Void
		ensure -- from EV_WIDGET_IMP
			result_not_void: Result /= Void

	next_tabstop_widget_from_parent (start_widget: EV_WIDGET; search_pos: INTEGER_32; forwards: BOOLEAN): EV_WIDGET_IMP
			-- Return the next widget that may be tabbed to as a result of pressing the tab key from `start_widget'
			-- by visiting the parent of `Current' with a search index determined by `search_pos' and `forwards'.
			-- (from EV_WIDGET_IMP)
		require -- from EV_WIDGET_IMP
			start_widget_not_void: start_widget /= Void
		ensure -- from EV_WIDGET_IMP
			result_not_void: Result /= Void

	on_size (size_type, a_width, a_height: INTEGER_32)
			-- `Current' has been resized.
			-- (from EV_WIDGET_IMP)
		require -- from WEL_WINDOW
			exists: exists

	return_current_if_next_tabstop_widget (start_widget: EV_WIDGET; search_pos: INTEGER_32; forwards: BOOLEAN): EV_WIDGET_IMP
			-- If `Current' is not equal to `start_widget' then return `Current' but only if `search_pos' is 1 and `forwards' or
			-- `search_pos' is 0 and not `forwards. This ensures that we return a container in the correct order (before or after)
			-- its children dependent on the state of `forwards'.
			-- (from EV_WIDGET_IMP)
		require -- from EV_WIDGET_IMP
			start_widget_not_void: start_widget /= Void

	start_widget_searched_cell: CELL [INTEGER_32]
			-- A cell to hold the seach index that the item tabbed from started with.
			-- This is necessary to prevent infinite recursion in the
			-- case where there is no next item as if we return to the
			-- original widget with the same search position, then we know we have exhausted all other possibilities.
			-- (from EV_WIDGET_IMP)

	wel_background_color: WEL_COLOR_REF
			-- `Result' is background color of `Current'.
			-- (from EV_WIDGET_IMP)

	wel_foreground_color: WEL_COLOR_REF
			-- `Result' is foreground color of `Current'.
			-- (from EV_WIDGET_IMP)
	
feature -- Drawing operations

	bounding_area: EV_RECTANGLE
			-- Temporary rectangle used internally.
			-- (from EV_DRAWABLE_IMP)

	draw_arc (x, y: INTEGER_32; a_vertical_radius, a_horizontal_radius: INTEGER_32; a_start_angle, an_aperture: REAL_32)
			-- Draw a part of an ellipse centered on (`x', `y') with
			-- size `a_vertical_radius' and `a_horizontal_radius'.
			-- Start at `a_start_angle' and stop at `a_start_angle'
			-- + `an_aperture'.
			-- Angles are measured in radians.
		require -- from EV_DRAWABLE_I
			a_bounding_width_positive_or_zero: a_vertical_radius >= 0
			a_bounding_width_positive_or_zero: a_horizontal_radius >= 0

	draw_ellipse (x, y, a_vertical_radius, a_horizontal_radius: INTEGER_32)
			-- Draw an ellipse centered on (`x', `y') with
			-- size `a_vertical_radius' and `a_horizontal_radius'.
		require -- from EV_DRAWABLE_I
			a_bounding_width_positive_or_zero: a_vertical_radius >= 0
			a_bounding_height_positive_or_zero: a_horizontal_radius >= 0

	draw_ellipsed_text (x, y: INTEGER_32; a_text: STRING_GENERAL; clipping_width: INTEGER_32)
			-- Draw `a_text' with left of baseline at (`x', `y') using font.
			-- Text is clipped to `clipping_width' in pixels and ellipses are displayed
			-- to show truncated characters if any.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_text_not_void: a_text /= Void
			clipping_width_positive: clipping_width >= 0

	draw_ellipsed_text_top_left (x, y: INTEGER_32; a_text: STRING_GENERAL; clipping_width: INTEGER_32)
			-- Draw `a_text' with top left corner at (`x', `y') using font.
			-- Text is clipped to `clipping_width' in pixels and ellipses are displayed
			-- to show truncated characters if any.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_text_not_void: a_text /= Void
			clipping_width_positive: clipping_width >= 0

	draw_pie_slice (x, y: INTEGER_32; a_vertical_radius, a_horizontal_radius: INTEGER_32; a_start_angle, an_aperture: REAL_32)
			-- Draw a part of an ellipse centered on (`x', `y') with
			-- size `a_vertical_radius' and `a_horizontal_radius'.
			-- Start at `a_start_angle' and stop at `a_start_angle' +
			-- `an_aperture'.
			-- The arc is then closed by two segments through (`x', `y').
			-- Angles are measured in radians.
		require -- from EV_DRAWABLE_I
			a_bounding_width_positive_or_zero: a_vertical_radius >= 0
			a_bounding_height_positive_or_zero: a_horizontal_radius >= 0

	draw_pixmap (x, y: INTEGER_32; a_pixmap: EV_PIXMAP)
			-- Draw `a_pixmap' with upper-left corner on (`x', `y').
		require -- from EV_DRAWABLE_I
			a_pixmap_not_void: a_pixmap /= Void

	draw_point (x, y: INTEGER_32)
			-- Draw point at (`x', `y').
		require -- from  EV_DRAWABLE_I
			True

	draw_polyline (points: ARRAY [EV_COORDINATE]; is_closed: BOOLEAN)
			-- Draw line segments between subsequent points in
			-- `points'. If `is_closed' draw line segment between first
			-- and last point in `points'.
		require -- from EV_DRAWABLE_I
			points_not_void: points /= Void

	draw_rectangle (x, y, a_width, a_height: INTEGER_32)
			-- Draw rectangle with upper-left corner on (`x', `y')
			-- with size `a_width' and `a_height'.
		require -- from EV_DRAWABLE_I
			a_width_positive_or_zero: a_width >= 0
			a_height_positive_or_zero: a_height >= 0

	draw_rotated_text (x, y: INTEGER_32; a_angle: REAL_32; a_text: STRING_GENERAL)
			-- Draw rotated text `a_text' with left of baseline at (`x', `y') using font.
			-- Rotation is number of radians counter-clockwise from horizontal plane.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_text_not_void: a_text /= Void

	draw_segment (x1, y1, x2, y2: INTEGER_32)
			-- Draw line segment from (`x1', 'y1') to (`x2', 'y2').
		require -- from  EV_DRAWABLE_I
			True

	draw_straight_line (x1, y1, x2, y2: INTEGER_32)
			-- Draw infinite straight line through (`x1','y1') and (`x2','y2').

	draw_sub_pixmap (x, y: INTEGER_32; a_pixmap: EV_PIXMAP; area: EV_RECTANGLE)
			-- Draw `area' of `a_pixmap' with upper-left corner on (`x', `y').
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_pixmap_not_void: a_pixmap /= Void
			area_not_void: area /= Void

	draw_text (x, y: INTEGER_32; a_text: STRING_GENERAL)
			-- Draw `a_text' at (`x', `y') using font.
		require -- from EV_DRAWABLE_I
			a_text_not_void: a_text /= Void

	draw_text_top_left (x, y: INTEGER_32; a_text: STRING_GENERAL)
			-- Draw `a_text' with top left corner at (`x', `y') using font.
			-- (from EV_DRAWABLE_IMP)
		require -- from EV_DRAWABLE_I
			a_text_not_void: a_text /= Void

	flush
			-- Execute any delayed calls to expose_actions without waiting
			-- for next idle.

	internal_draw_text (x, y: INTEGER_32; angle: REAL_32; clipping_width: INTEGER_32; from_baseline: BOOLEAN; a_text: STRING_GENERAL)
			-- Draw `a_text' with top left corner at (`x', `y') using font.
			-- Text is clipped to `clipping_width' in pixels and ellipses are displayed
			-- to show truncated characters if any.
			-- Text is rotated counter-clockwise from the horizontal axis `degrees' degrees.
			-- (from EV_DRAWABLE_IMP)
	
feature -- Element Change

	set_default_processing (value: BOOLEAN)
			-- Enable or disable default processing of window messages.
			-- (from WEL_RETURN_VALUE)
		ensure -- from WEL_RETURN_VALUE
			value_set: default_processing = value

	set_message_return_value (value: POINTER)
			-- Set the window-procedure-return-value.
			-- (from WEL_RETURN_VALUE)
		require -- from  EV_WIDGET_IMP
			True
		ensure -- from WEL_RETURN_VALUE
			has_return_value: has_return_value
			value_set: message_return_value = value
	
feature -- Event handling

	conforming_pick_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when a pebble that fits here is picked.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I)
		ensure -- from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			not_void: Result /= Void

	create_conforming_pick_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Create a conforming_pick action sequence.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_IMP)
		require -- from  EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			True

	create_expose_actions: EV_GEOMETRY_ACTION_SEQUENCE
			-- Create a expose action sequence.
			-- (from EV_PIXMAP_ACTION_SEQUENCES_IMP)
		require -- from  EV_PIXMAP_ACTION_SEQUENCES_I
			True

	create_focus_in_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Create a focus_in action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_focus_out_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Create a focus_out action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_key_press_actions: EV_KEY_ACTION_SEQUENCE
			-- Create a key_press action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_key_press_string_actions: EV_KEY_STRING_ACTION_SEQUENCE
			-- Create a key_press_string action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_key_release_actions: EV_KEY_ACTION_SEQUENCE
			-- Create a key_release action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_mouse_wheel_actions: EV_INTEGER_ACTION_SEQUENCE
			-- Create a mouse_wheel action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_pick_actions: EV_PND_START_ACTION_SEQUENCE
			-- Create a pick action sequence.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_IMP)
		require -- from  EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			True

	create_pick_ended_actions: EV_PND_FINISHED_ACTION_SEQUENCE
			-- Create a pick ended action sequence.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_IMP)
		require -- from  EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			True

	create_pointer_button_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
			-- Create a pointer_button_press action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_pointer_button_release_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
			-- Create a pointer_button_release action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_pointer_double_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
			-- Create a pointer_double_press action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_pointer_enter_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Create a pointer_enter action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_pointer_leave_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Create a pointer_leave action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_pointer_motion_actions: EV_POINTER_MOTION_ACTION_SEQUENCE
			-- Create a pointer_motion action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	create_resize_actions: EV_GEOMETRY_ACTION_SEQUENCE
			-- Create a resize action sequence.
			-- (from EV_WIDGET_ACTION_SEQUENCES_IMP)
		require -- from  EV_WIDGET_ACTION_SEQUENCES_I
			True

	dock_ended_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed after a dock completes from `Current'.
			-- Either to a dockable target or a dockable dialog.
			-- (from EV_DOCKABLE_SOURCE_ACTION_SEQUENCES_I)
		ensure -- from EV_DOCKABLE_SOURCE_ACTION_SEQUENCES_I
			not_void: Result /= Void

	dock_started_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when pebble is picked up.
			-- (from EV_DOCKABLE_SOURCE_ACTION_SEQUENCES_I)
		ensure -- from EV_DOCKABLE_SOURCE_ACTION_SEQUENCES_I
			not_void: Result /= Void

	drop_actions: EV_PND_ACTION_SEQUENCE
			-- Actions to be performed when a pebble is dropped here.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I)
		ensure -- from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			not_void: Result /= Void

	expose_actions: EV_GEOMETRY_ACTION_SEQUENCE
			-- Actions to be performed when an area needs to be redrawn.
			-- (from EV_PIXMAP_ACTION_SEQUENCES_I)
		ensure -- from EV_PIXMAP_ACTION_SEQUENCES_I
			not_void: Result /= Void

	file_drop_actions: ACTION_SEQUENCE [TUPLE [LIST [STRING_32]]]
			-- Actions to be performed when an OS file drop occurs on `Current'.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	focus_in_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when keyboard focus is gained.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	focus_out_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when keyboard focus is lost.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	key_press_actions: EV_KEY_ACTION_SEQUENCE
			-- Actions to be performed when a keyboard key is pressed.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	key_press_string_actions: EV_KEY_STRING_ACTION_SEQUENCE
			-- Actions to be performed when a keyboard press generates a displayable character.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	key_release_actions: EV_KEY_ACTION_SEQUENCE
			-- Actions to be performed when a keyboard key is released.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	mouse_wheel_actions: EV_INTEGER_ACTION_SEQUENCE
			-- Actions to be performed when mouse wheel is rotated.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pick_actions: EV_PND_START_ACTION_SEQUENCE
			-- Actions to be performed when pebble is picked up.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I)
		ensure -- from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pick_ended_actions: EV_PND_FINISHED_ACTION_SEQUENCE
			-- Actions to be performed when a transport from `Current' ends.
			-- (from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I)
		ensure -- from EV_PICK_AND_DROPABLE_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pointer_button_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
			-- Actions to be performed when screen pointer button is pressed.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pointer_button_release_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
			-- Actions to be performed when screen pointer button is released.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pointer_double_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
			-- Actions to be performed when screen pointer is double clicked.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pointer_enter_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when screen pointer enters widget.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pointer_leave_actions: EV_NOTIFY_ACTION_SEQUENCE
			-- Actions to be performed when screen pointer leaves widget.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	pointer_motion_actions: EV_POINTER_MOTION_ACTION_SEQUENCE
			-- Actions to be performed when screen pointer moves.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void

	resize_actions: EV_GEOMETRY_ACTION_SEQUENCE
			-- Actions to be performed when size changes.
			-- (from EV_WIDGET_ACTION_SEQUENCES_I)
		ensure -- from EV_WIDGET_ACTION_SEQUENCES_I
			not_void: Result /= Void
	
feature -- Externals

	cwin_show_window (hwnd: POINTER; cmd_show: INTEGER_32)
			-- SDK ShowWindow
			-- (from WEL_WINDOW)
		require -- from  EV_WIDGET_IMP
			True
	
feature -- Feature that should be directly implemented by externals

	show_window (hwnd: POINTER; cmd_show: INTEGER_32)
			-- Encapsulation of the cwin_show_window function of
			-- WEL_WINDOW. Normaly, we should be able to have directly
			-- cwin_show_window deferred but it does not wotk because
			-- it would be implemented by an external.
			-- (from EV_WIDGET_IMP)
	
feature -- Filling operations

	fill_ellipse (x, y, a_vertical_radius, a_horizontal_radius: INTEGER_32)
			-- Draw an ellipse centered on (`x', `y') with
			-- size `a_vertical_radius' and `a_horizontal_radius'.
			-- Fill with background_color.
		require -- from EV_DRAWABLE_I
			a_bounding_width_positive_or_zero: a_vertical_radius >= 0
			a_bounding_height_positive_or_zero: a_horizontal_radius >= 0

	fill_pie_slice (x, y: INTEGER_32; a_vertical_radius, a_horizontal_radius: INTEGER_32; a_start_angle, an_aperture: REAL_32)
			-- Draw a part of an ellipse centered on (`x', `y') with
			-- size `a_vertical_radius' and `a_horizontal_radius'.
			-- Start at `a_start_angle' and stop at `a_start_angle' +
			-- `an_aperture'.
			-- The arc is then closed by two segments through (`x', `y').
			-- Angles are measured in radians.
		require -- from EV_DRAWABLE_I
			a_bounding_width_positive_or_zero: a_vertical_radius >= 0
			a_bounding_height_positive_or_zero: a_horizontal_radius >= 0

	fill_polygon (points: ARRAY [EV_COORDINATE])
			-- Draw line segments between subsequent points in `points'.
			-- Fill all enclosed area's with foreground_color.
		require -- from EV_DRAWABLE_I
			points_not_void: points /= Void

	fill_rectangle (x, y, a_width, a_height: INTEGER_32)
			-- Draw rectangle with upper-left corner on (`x', `y')
			-- with size `a_width' and `a_height'. Fill with foreground_color.
		require -- from EV_DRAWABLE_I
			a_width_positive_or_zero: a_width >= 0
			a_height_positive_or_zero: a_height >= 0
	
feature -- Loading/Saving

	read_from_named_file (file_name: STRING_GENERAL)
			-- Load the pixmap described in 'file_name'. 
			--
			-- Exceptions "Unable to retrieve icon information",
			--            "Unable to load the file"
		require -- from EV_PIXMAP_I
			file_name_not_void: file_name /= Void
			file_name_not_empty: not file_name.is_empty

	set_with_default
			-- Initialize `Current' with the default
			-- pixmap (vision2 logo).
			--
			-- Exceptions "Unable to retrieve icon information",
		require -- from  EV_PIXMAP_I
			True
	
feature -- Misc.

	build_cursor: WEL_CURSOR
			-- Build a WEL_CURSOR from `bitmap' and `mask_bitmap'.
			-- (from EV_PIXMAP_IMP_STATE)
		ensure -- from EV_PIXMAP_IMP_STATE
			result_not_void: Result /= Void

	build_icon: WEL_ICON
			-- Build a WEL_ICON from `bitmap' and `mask_bitmap'.
			-- (from EV_PIXMAP_IMP_STATE)
		ensure -- from EV_PIXMAP_IMP_STATE
			result_not_void: Result /= Void

	gdi_compact
			-- Spare GDI resource by freeing icons, cursors, ... that
			-- can be reloaded from file.
			-- (from EV_PIXMAP_IMP_STATE)

	raw_image_data: EV_RAW_IMAGE_DATA
			-- RGBA representation of `Current'.
			-- (from EV_PIXMAP_IMP_STATE)
		require -- from  EV_PIXMAP_I
			True
	
feature -- Non-applicable

	wel_set_font (a_font: WEL_FONT)
			-- Make `a_font' new font of widget.
			-- (from EV_DRAWABLE_IMP)
		require -- from  EV_FONTABLE_IMP
			True
		require -- from WEL_CONTROL_WINDOW
			exists: exists
			a_font_not_void: a_font /= Void
			a_font_exists: a_font.exists
		ensure -- from WEL_CONTROL_WINDOW
			font_set: not has_system_font implies wel_font.item = a_font.item
	
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)
	
feature -- Position

	set_position (new_x_position: INTEGER_32; new_y_position: INTEGER_32)
			-- Put at horizontal position `new_x_position' and at
			-- vertical position `new_y_position' relative to parent.
			-- (from EV_SIZEABLE_IMP)
	
feature -- Registration

	is_registered: BOOLEAN
			-- Is `window' registered?
			-- (from WEL_WINDOW)

	frozen register_current_window
			-- Register `Current' in window manager.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			registered: is_registered
	
feature -- Saving

	save_to_named_file (a_format: EV_GRAPHICAL_FORMAT; a_filename: FILE_NAME)
			-- Save `Current' to `a_filename' in `a_format' format.
			-- (from EV_PIXMAP_IMP_STATE)
		require -- from EV_PIXMAP_I
			a_format_not_void: a_format /= Void
			a_filename_not_void: a_filename /= Void
			a_filename_valid: a_filename.is_valid
		require -- from EV_PIXMAP_IMP_STATE
			a_format_not_void: a_format /= Void
			a_filename_not_void: a_filename /= Void
			a_filename_valid: a_filename.is_valid
	
feature -- Standard window class values

	class_cursor: WEL_CURSOR
			-- Standard arrow cursor used to create the window
			-- class.
			-- Can be redefined to return a user-defined cursor.
			-- (from WEL_FRAME_WINDOW)
		ensure -- from WEL_FRAME_WINDOW
			result_not_void: Result /= Void
			result_exists: Result.exists

	class_icon: WEL_ICON
			-- Standard application icon used to create the
			-- window class.
			-- Can be redefined to return a user-defined icon.
			-- (from WEL_FRAME_WINDOW)
		ensure -- from WEL_FRAME_WINDOW
			result_not_void: Result /= Void
			result_exists: Result.exists

	class_menu_name: STRING_32
			-- Window's menu used to create the window class.
			-- Can be redefined to return a user-defined menu.
			-- (None by default).
			-- (from WEL_FRAME_WINDOW)
		ensure -- from WEL_FRAME_WINDOW
			result_not_void: Result /= Void

	class_window_procedure: POINTER
			-- Standard window procedure
			-- (from WEL_FRAME_WINDOW)
		ensure -- from WEL_FRAME_WINDOW
			result_not_null: Result /= default_pointer
	
feature -- Tooltip Flag constants

	ttf_centertip: INTEGER_32 is 2
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttf_idishwnd: INTEGER_32 is 1
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttf_rtlreading: INTEGER_32 is 4
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttf_subclass: INTEGER_32 is 16
			-- (from WEL_TOOLTIP_CONSTANTS)
	
feature -- Tooltip message constants

	ttm_activate: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_addtool: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_deltool: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_enumtools: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_getcurrenttool: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_getdelaytime: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_getmaxtipwidth: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_gettext: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_gettipbkcolor: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_gettiptextcolor: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_gettoolcount: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_gettoolinfo: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_hittest: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_newtoolrect: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_relayevent: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_setdelaytime: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_setmaxtipwidth: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_settipbkcolor: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_settiptextcolor: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_settoolinfo: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_updatetiptext: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttm_windowfrompoint: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)
	
feature -- Tooltip style constants

	tts_alwaystip: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	tts_noprefix: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)
	
feature -- Tooltip time delay constants

	ttdt_automatic: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttdt_autopop: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttdt_initial: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)

	ttdt_reshow: INTEGER_32
			-- (from WEL_TOOLTIP_CONSTANTS)
	
feature --EV_ANY_I -- Implementation

	get_dc
			-- Get dc.
			-- By default does nothing, but is
			-- redefined by primitives that do not keep a consistent
			-- dc. Example : EV_DRAWING_AREA_IMP
			-- (from EV_DRAWABLE_IMP)

	release_dc
			-- Release dc.
			-- By default does nothing, but is
			-- redefined by primitives that do not keep a consistent
			-- dc. Example : EV_DRAWING_AREA_IMP
			-- (from EV_DRAWABLE_IMP)
	
invariant
		-- from EV_PIXMAP_IMP_DRAWABLE
	bitmap_not_void: is_initialized implies internal_bitmap /= Void
	bitmap_reference_tracked: internal_bitmap /= Void implies internal_bitmap.reference_tracked
	palette_reference_tracked: palette /= Void implies palette.reference_tracked
	mask_bitmap_reference_tracked: internal_mask_bitmap /= Void implies internal_mask_bitmap.reference_tracked
	dc_reference_tracked: dc /= Void implies dc.reference_tracked
	mask_dc_reference_tracked: mask_dc /= Void implies mask_dc.reference_tracked

		-- from EV_ANY_I
	interface_coupled: is_usable implies interface /= Void and then interface.implementation = Current
	base_make_called: base_make_called

		-- from ANY
	reflexive_equality: standard_is_equal (Current)
	reflexive_conformance: conforms_to (Current)

		-- from EV_WIDGET_I
	is_displayed_implies_show_requested: is_usable and is_displayed implies is_show_requested

		-- from EV_PICK_AND_DROPABLE_I
	user_interface_modes_mutually_exclusive: mode_is_pick_and_drop.to_integer + mode_is_drag_and_drop.to_integer + mode_is_target_menu.to_integer = 1
	pebble_function_takes_two_integer_open_operands: pebble_function /= Void implies pebble_function.valid_operands ([1, 1])

		-- from EV_DOCKABLE_SOURCE_I
	widget_or_item_source: not (widget_source_being_docked /= Void and item_source_being_docked /= Void)
	dock_executing: is_dock_executing implies widget_source_being_docked /= Void or item_source_being_docked /= Void

		-- from EV_POSITIONED_I
	minimum_width_positive_or_zero: is_usable implies minimum_width >= 0
	minimum_height_positive_or_zero: is_usable implies minimum_height >= 0

		-- from WEL_COLOR_REF
	valid_red_inf: red >= 0
	valid_red_sup: red <= 255
	valid_green_inf: green >= 0
	valid_green_sup: green <= 255
	valid_blue_inf: blue >= 0
	valid_blue_sup: blue <= 255

		-- from EV_DRAWABLE_IMP
	reference_tracked_on_brush: internal_brush /= Void implies internal_brush.reference_tracked
	brush_exists: internal_brush /= Void implies internal_brush.exists
	reference_tracked_on_pen: internal_pen /= Void implies internal_pen.reference_tracked

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_PIXMAP_IMP_WIDGET