/*
 * colSelect.h
 *
 * [Generated from colSelect, 25 September 1996]
 */

#if !defined(__CC_NORCROFT) || !defined(__arm)
  #error You must use the Norcroft ARM Compiler for Sapphire programs
#endif

#pragma include_only_once
#pragma force_top_level

#ifndef __colSelect_h
#define __colSelect_h

#ifndef __sapphire_h
  #include "sapphire.h"
#endif

/*----- Overview ----------------------------------------------------------*
 *
 * Functions provided:
 *
 *   colSelect
 */

/* --- colSelect --- *
 *
 * On entry:	R0 == address of a colour block
 *		R1 == pointer to routine to call when done
 *		R2 == R10 to call routine with
 *		R3 == R12 to call routine with
 *
 * On exit:	May return error
 *
 * Use:		Displays a colour selector dialogue box.  It allows the user
 *		to edit a colour (understatement....)
 */

extern routine colSelect;

/*----- The colour selector handler ---------------------------------------*
 *
 * The routine you pass to colSelect is entered with R0 as a reason code,
 * and other registers containing values which depend on that.  Reason codes
 * defined are:
 */

#define csEvent_choice 0

#define csEvent_close 1

/*----- Data structures ---------------------------------------------------*/

#define col_rgb 0
#define col_model 4
#define col_data 8
#define col_size 12

/*----- That's all, folks -------------------------------------------------*/

#endif
