palm-os-sdk/sdk-3.1/include/Core/UI/Day.h
2016-08-25 07:53:48 -03:00

61 lines
1.4 KiB
C

/***********************************************************************
*
* Copyright (c) 1994-1999 3Com Corporation or its subsidiaries.
* All rights reserved.
*
* PROJECT: Pilot
* FILE: Day.h
* AUTHOR: Roger Flores: May 31, 1995
*
* DECLARER: UI
*
* DESCRIPTION:
* This file defines the date picker month object's structures
* and routines.
*
***********************************************************************/
#ifndef __DAY_H__
#define __DAY_H__
#include <DateTime.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
{
RectangleType bounds;
Boolean visible;
SWord visibleMonth; // month actually displayed
SWord visibleYear; // year actually displayed
DateTimeType selected;
SelectDayType selectDayBy;
} DaySelectorType;
typedef DaySelectorType * DaySelectorPtr;
#ifdef __cplusplus
extern "C" {
#endif
void DayDrawDaySelector (const DaySelectorPtr pSelector)
SYS_TRAP(sysTrapDayDrawDaySelector);
Boolean DayHandleEvent (const DaySelectorPtr pSelector,
const EventPtr pEvent)
SYS_TRAP(sysTrapDayHandleEvent);
void DayDrawDays (const DaySelectorPtr pSelector)
SYS_TRAP(sysTrapDayDrawDays);
#ifdef __cplusplus
}
#endif
#endif //__DAY_H__