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

69 lines
1.5 KiB
C

/******************************************************************************
*
* Copyright (c) 1994-2000 Palm, Inc. or its subsidiaries.
* All rights reserved.
*
* File: Day.h
*
* Release: Palm OS SDK 4.0 (63220)
*
* Description:
* This file defines the date picker month object's structures
* and routines.
*
* History:
* May 31, 1995 Created by Roger Flores
*
*****************************************************************************/
#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__