indexing
	description: "Ancestor to all Windows objects and structures."
	status: "See notice at end of class."
	date: "$Date$"
	revision: "$Revision$"

deferred class interface
	WEL_ANY

feature -- Access

	item: POINTER
			-- Generic Windows handle or structure pointer.
			-- Can be a HWND, HICON, RECT *, WNDCLASS *, etc...
	
feature -- Status report

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

	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.
	
feature -- Status setting

	set_shared
			-- Set shared to True.
		ensure
			shared: shared

	set_unshared
			-- Set shared to False.
		ensure
			unshared: not shared
	
feature -- Element change

	set_item (an_item: POINTER)
			-- Set item with an_item
		ensure
			item_set: item = an_item
	
feature -- Removal

	dispose
			-- Destroy the inner structure of Current.
			--
			-- This function should be called by the GC when the
			-- object is collected or by the user if Current is
			-- no more usefull.
	
feature -- Conversion

	to_integer: INTEGER
			-- Converts item to an integer.
		ensure
			Result = cwel_pointer_to_integer (item)
	
invariant

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

end -- class WEL_ANY