
/*©Ęcopyright 1993, UserLand Software, Inc. All Rights Reserved.*/


#define uisharinginclude


#define noMenuSharing 0x1 /*masks for uisInit*/
#define noWindowSharing 0x2


/*core routines for UI Sharing clients*/

	Boolean uisInit (ProcPtr, short, OSType, unsigned short);
	
	Boolean uisHandleEvent (EventRecord *, Boolean *);
	
	Boolean uisEdit (short);
	
	Boolean uisSharedMenuHit (short, short);
	
	Boolean uisIsSharedWindow (WindowPtr);
	
	Boolean uisCloseSharedWindow (WindowPtr);
	
	void uisCloseAllSharedWindows (void);
	
	void uisClose (void);
	

/*for apps that want to use Iowa Runtime as their dialog manager*/

	#define uisInitEvent 1000 /*constants for (*ev).what in callbacks*/
	#define uisMajorRecalcEvent 1001
	#define uisMinorRecalcEvent 1002
	#define uisButtonHitEvent 1003
	#define uisCloseEvent 1004
	#define uisRunScriptEvent 1005
	#define uisCancelEvent 1006
	#define uisSetHandleEvent 1007

	typedef void (*uisEventCallback) (EventRecord *);

	Boolean uisRunModalHandle (Handle, Boolean, Str255, short, short, uisEventCallback);

	Boolean uisRunModalResource (short, Boolean, Str255, short, short, uisEventCallback);

	Boolean uisOpenCardResource (short, Boolean, Str255, short, short, uisEventCallback);

	Boolean uisOpenHandle (Handle, Boolean, Str255, short, short, uisEventCallback);

	Boolean uisSetObjectValue (Handle, Str255, Handle);

	Boolean uisGetObjectValue (Handle, Str255, Handle *);

	Boolean uisGetObjectHandle (Handle, Str255, Handle *);

	Boolean uisRecalcObject (Handle);
	
	Boolean uisUpdate (Handle);
	
/*for a stub app whose sole purpose is to run a card*/

	Boolean uisStubStart (void);





