MorePalmOS
A development library for developing Palm OS applications

MoreForm.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * MorePalmOS
00003  * Copyright (c) 2004 Steven Fisher
00004  *
00005  * Distributed under the Boost Software License, Version 1.0. See accompanying
00006  * license file License.txt or <http://www.boost.org/LICENSE_1_0.txt>.
00007  *
00008  * http://morepalmos.sourceforge.net
00009  *
00010  *   MorePalmOS is the humble begining of an attempt to provide a library for
00011  *   Palm OS development which works around system bugs, illustrate how to
00012  *   use system calls, and provide "glue code" for programming Palm OS
00013  *   applications in a more straightforward way while minimally impacting
00014  *   code size.
00015  *****************************************************************************/
00016 
00025 #ifndef MOREFORM_H
00026 #define MOREFORM_H
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00032 #include "MorePrefix.h"
00033 #include "MoreTypes.h"
00034 
00035 #include <Form.h>
00036 
00046 void MFrmHandleAppOpenFormEvt( ResourceID_t formID,
00047                 FormEventHandlerType* handler );
00048 
00052 FrmObjectID_t MFrmHandleModalForm( ResourceID_t formID,
00053                 FormEventHandlerType* handler );
00054 
00066 FrmObject_t* MFrmGetObjPtrByID( const FormType* formP, FrmObjectID_t id );
00067 
00078 FrmObject_t* MFrmGetObjPtrByIdx( const FormType* formP, FrmObjectIdx_t idx );
00079 
00082 FormObjectKind MFrmGetObjTypeByID( const FormType* formP, FrmObjectID_t id );
00083 
00086 FormObjectKind MFrmGetObjTypeByIdx( const FormType* formP, FrmObjectIdx_t idx );
00087 
00090 FormObjectKind MFrmGetObjTypeByPtr( const FormType* formP, FrmObject_t* objectP );
00091 
00097 FrmObject_t* MFrmGetObjPtrOfTypeByID( const FormType* formP, FrmObjectID_t id,
00098                 FormObjectKind kind );
00099 
00105 FrmObject_t* MFrmGetObjPtrOfTypeByIdx( const FormType* formP, FrmObjectIdx_t idx,
00106                 FormObjectKind kind );
00107 
00113 FrmObject_t* MFrmGetObjPtrOfTypeByPtr( const FormType* formP, FrmObject_t* ptr,
00114                 FormObjectKind kind );
00115 
00133 void MFrmSetObjVisibleByID( FormType* formP, FrmObjectID_t id,
00134                 Boolean visible );
00135 
00152 void MFrmSetObjVisibleByIdx( FormType* formP, FrmObjectIdx_t idx,
00153                 Boolean visible );
00154 
00173 void MFrmSetObjVisibleByPtr( FormType* formP, FrmObject_t* objectP,
00174                 Boolean visible );
00175 
00182 void MFrmReload( );
00183 
00189 void MFrmSetFocusByID( FormType* formP, FrmObjectID_t objectId );
00190 
00191 #define MFrmSetFocusByIdx( formP, idx ) FrmSetFocus( formP, idx )
00192 
00197 void MFrmSetFocusByPtr( FormType* formP, FrmObject_t* objectP );
00198 
00204 void MFrmNudgeObjXYByID( FormType* formP, FrmObjectID_t id,
00205                 Coord deltaX, Coord deltaY, Boolean redraw );
00206 
00212 void MFrmNudgeObjXYByIdx( FormType* formP, FrmObjectIdx_t idx,
00213                 Coord deltaX, Coord deltaY, Boolean redraw );
00214 
00220 void MFrmNudgeObjXYByPtr( FormType* formP, FrmObject_t* objectP,
00221                 Coord deltaX, Coord deltaY, Boolean redraw );
00222 
00223 #ifdef __cplusplus
00224 }
00225 #endif
00226 
00227 #endif

SourceForge.net Logo