|
API Guide Home (Online version only) |
![]() |
00001 /** 00002 * \file HsExtUtilBigButtonCommon.h 00003 * 00004 * <Common code for Big Buttons that can be used by ARM and 68K code.> 00005 * 00006 * <This file contains all defines and enums that are used by Big Buttons. 00007 * There are some structs here too that might need to be moved to 68K/ARM 00008 * specific code. Moved code from HsExtUtilBigButton.h > 00009 * 00010 * \license 00011 * 00012 * Copyright (c) 2002 Handspring Inc., All Rights Reserved 00013 * 00014 * \author Arun Mathias 00015 * 00016 * $Id: //depot/Components/Extensions/HsExtensions/1.0E/Incs/IncsPublic/Common/HsExtUtilBigButtonCommon.h#2 $ 00017 * 00018 *****************************************************************************/ 00019 00020 #ifndef __HS_EXT_UTIL_BIG_BUTTON_COMMON_H__ 00021 00022 #define __HS_EXT_UTIL_BIG_BUTTON_COMMON_H__ 00023 00024 // ******************************************************************************* 00025 // ******************************************************************************* 00026 // * * 00027 // * !!!!!!!!!!THIS FILE IS DEPRECATED. DO NOT MAKE CHANGES TO IT!!!!!!!!!!!!! * 00028 // * * 00029 // ******************************************************************************* 00030 // ******************************************************************************* 00031 // ******************************************************************************* 00032 // * * 00033 // * All new definitions should go into PmSysGadgetLibCommon.h. This file * 00034 // * remains simply to maintain backwards compatibility. * 00035 // * * 00036 // ******************************************************************************* 00037 // ******************************************************************************* 00038 00039 /** 00040 * This selector gets sent with a frmGadgetMiscEvent to let you know that the 00041 * gadget has been selected. The numbers are picked semi-randomly so that generic 00042 * code (like HsUtilFrmDoDialogWithCallback()) can tell that this is actually 00043 * a button press without doing the wrong thing for other people's gadget events. 00044 * 00045 * Note that in most code, you shouldn't need to worry about checking the data, 00046 * since you know exactly what gadgets are on your form and what kind of events 00047 * they send. 00048 **/ 00049 #define bbutGadgetMiscSelectSelector 7014 /**< Randomish number so people can 00050 easily detect big button presses */ 00051 #define bbutGadgetMiscSelectData ((void*)0xBADC0DE1) /**< Magic # to make conflicts even less 00052 likely for detecting big button presses.*/ 00053 00054 00055 /** 00056 * This is the type of big button resources. The ID should match the ID of 00057 * the form... 00058 **/ 00059 #define hsBigButtonRscType 'bBut' /**< Registered: yes */ 00060 00061 00062 /** 00063 * This is the structure of a single big button mapping... 00064 **/ 00065 typedef struct 00066 { 00067 UInt8 flags; 00068 UInt8 font; 00069 00070 UInt16 gadgetID; 00071 00072 UInt16 bitmapID; 00073 UInt16 stringID; 00074 } 00075 HsBigButtonMappingType; 00076 00077 /** 00078 * This is the structure of a big button resource... 00079 **/ 00080 typedef struct 00081 { 00082 UInt16 version; 00083 HsBigButtonMappingType mapArr[0]; 00084 } 00085 HsBigButtonReourceType; 00086 00087 #endif // ifndef __HS_EXT_UTIL_BIG_BUTTON_COMMON_H__
| Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:53 2008 for Palm API Guide |