COMMENT @----------------------------------------------------------------------

	Copyright (c) GeoWorks 1991 -- All Rights Reserved

PROJECT:	PC GEOS
MODULE:		Include/Objects
FILE:		gItemC.def

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	chris	1/92		Initial version

DESCRIPTION:
	Object definitions for GenItemClass.   

	$Id: gItemC.def,v 1.1 97/04/04 14:19:13 newdeal Exp $

------------------------------------------------------------------------------@

SetDef	_GITEMC

StartLibrary	ui
		
include ui.def

		
GenItemClass	class	GenClass

MSG_GEN_ITEM_GET_IDENTIFIER		message
; 
; Returns the identifier for the item.
;
; Context:	Can be called at any time.
; Source:	No restrictions
; Destination:	Any GenItem object.
; Interception:	Generally not intercepted.
;
; Pass:		nothing
; Return:	ax -- identifier
;		cx, dx, bp -- destroyed
;

MSG_GEN_ITEM_SET_IDENTIFIER		message
; 
; Sets a new identifier for the object.  No effect is made on the list -- it
; is up to the application to make sure the item is deselected before changing
; its identifier.
;
; Context:	Can be sent any time, although sending it while the item is
;		usable would be unusual.
; Source:	No restrictions
; Destination:	Any GenItem object.
; Interception:	Generally not intercepted.
;
; Pass:		cx -- new identifier
; Return:	nothing
;		ax, cx, dx, bp -- destroyed
;

;------------------------------------------------------------------------------
;	Internal messages.
; 	Are used by GenDynamicListClass to perform dynamic list functions.
;------------------------------------------------------------------------------

MSG_GEN_ITEM_SET_INTERACTABLE_STATE		message
;
; Used set an item interactable or not interactable.  Used internally by dynamic
; lists.
;
; Context:	Can be called anytime.
; Source:	Generally the parent, usually a GenDynamicList.
; Destination:	Any GenItem object.
; Interception:	Not generally intercepted.
;
; Pass:		cx -- non-zero to make item interactable
; Return:	nothing
;		ax, cx, dx, bp -- destroyed

;------------------------------------------------------------------------------
;       Instance data
;------------------------------------------------------------------------------

GII_identifier		word	0
	;The identifier for the item.   The item is always referred to in list
	;messages by its identifier.  Can be set via MSG_GEN_ITEM_SET_IDENTIFIER
	;and gotten via MSG_GEN_ITEM_GET_IDENTIFIER.

GenItemClass	endc

		
EndLibrary	ui



