/******************************************************************************
 *
 * Copyright (c) 1994-2002 PalmSource, Inc. All rights reserved.
 *
 * File: Day.h
 *
 * Release: Palm OS 5 SDK (68K) R2.
 *
 * Description:
 *	  This file defines the date picker month object's  structures 
 *   and routines.
 *
 *****************************************************************************/

#ifndef	__DAY_H__
#define	__DAY_H__

#include <PalmTypes.h>
#include <CoreTraps.h>

#include <DateTime.h>
#include <Event.h>

typedef enum 
	{
	selectDayByDay,		// return d/m/y
	selectDayByWeek,		// return d/m/y with d as same day of the week
	selectDayByMonth		// return d/m/y with d as same day of the month
	} SelectDayType;

typedef struct DaySelectorType
{
	RectangleType			bounds;
	Boolean					visible;
	UInt8 					reserved1;
	Int16						visibleMonth;		// month actually displayed
	Int16						visibleYear;		// year actually displayed
	DateTimeType			selected;
	SelectDayType			selectDayBy;
	UInt8 					reserved2;
}
DaySelectorType;

typedef DaySelectorType *DaySelectorPtr;

#ifdef __cplusplus
extern "C" {
#endif

void DayDrawDaySelector (const DaySelectorType *selectorP)
			SYS_TRAP(sysTrapDayDrawDaySelector);

Boolean DayHandleEvent (DaySelectorType *selectorP,
	const EventType *pEvent)
			SYS_TRAP(sysTrapDayHandleEvent);

void DayDrawDays (const DaySelectorType *selectorP)
			SYS_TRAP(sysTrapDayDrawDays);

#ifdef __cplusplus 
}
#endif

#endif //__DAY_H__
