📄 chars.h
字号:
#define vchrRadioCoverageOK 0x011C // Radio coverage check successful
#define vchrRadioCoverageFail 0x011D // Radio coverage check failure
#define vchrPowerOff 0x011E // Posted after autoOffChr or hardPowerChr
// to put system to sleep with SysSleep.
// Added for PalmOS 3.5
#define vchrResumeSleep 0x011F // Posted by NotifyMgr clients after they
// have deferred a sleep request in order
// to resume it.
#define vchrLateWakeup 0x0120 // Posted by the system after waking up
// to broadcast a late wakeup notification.
// FOR SYSTEM USE ONLY
#define vchrTsmMode 0x0121 // Posted by TSM to trigger mode change.
#define vchrBrightness 0x0122 // Activates brightness adjust dialog
#define vchrContrast 0x0123 // Activates contrast adjust dialog
#define vchrExgIntData 0x01FF // Exchange Manager wakeup event
// Added for PalmOS 5.0
#define vchrResetAutoOff 0x0124 // Resets autoOff timer in EvtMgr
// The application launching buttons generate the following
// key codes and will also set the commandKeyMask bit in the
// modifiers field
#define vchrHardKeyMin 0x0200
#define vchrHardKeyMax 0x02FF // 256 hard keys
#define vchrHard1 0x0204
#define vchrHard2 0x0205
#define vchrHard3 0x0206
#define vchrHard4 0x0207
#define vchrHardPower 0x0208
#define vchrHardCradle 0x0209 // Button on cradle pressed
#define vchrHardCradle2 0x020A // Button on cradle pressed and hwrDockInGeneric1
// input on dock asserted (low).
#define vchrHardContrast 0x020B // Sumo's Contrast button
#define vchrHardAntenna 0x020C // Eleven's Antenna switch
#define vchrHardBrightness 0x020D // Hypothetical Brightness button
// The following keycode RANGES are reserved for use by licensees.
// All have the commandKeyMask bit set in the event's modifiers field.
// Note that ranges include the Min and Max values themselves (i.e. key
// codes >= min and <= max are assigned to the following licensees).
//
// Qualcomm
#define vchrThumperMin 0x0300
#define vchrThumperMax 0x03FF // 256 command keys
// Motorola
#define vchrCessnaMin 0x14CD
#define vchrCessnaMax 0x14CD // 1 command key
// TRG
#define vchrCFlashMin 0x1500
#define vchrCFlashMax 0x150F // 16 command keys
// Symbol
#define vchrSPTMin 0x15A0
#define vchrSPTMax 0x15AF // 16 command keys
// Handspring
#define vchrSlinkyMin 0x1600
#define vchrSlinkyMax 0x16FF // 256 command keys
// Old names for some of the characters.
#define nullChr chrNull // 0x0000
#define backspaceChr chrBackspace // 0x0008
#define tabChr chrHorizontalTabulation // 0x0009
#define linefeedChr chrLineFeed // 0x000A
#define pageUpChr vchrPageUp // 0x000B
#define chrPageUp vchrPageUp // 0x000B
#define pageDownChr vchrPageDown // 0x000C
#define chrPageDown vchrPageDown // 0x000C
#define crChr chrCarriageReturn // 0x000D
#define returnChr chrCarriageReturn // 0x000D
#define otaSecureChr chrOtaSecure // 0x0014
#define otaChr chrOta // 0x0015
#define escapeChr chrEscape // 0x001B
#define leftArrowChr chrLeftArrow // 0x001C
#define rightArrowChr chrRightArrow // 0x001D
#define upArrowChr chrUpArrow // 0x001E
#define downArrowChr chrDownArrow // 0x001F
#define spaceChr chrSpace // 0x0020
#define quoteChr chrQuotationMark // 0x0022 '"'
#define commaChr chrComma // 0x002C ','
#define periodChr chrFullStop // 0x002E '.'
#define colonChr chrColon // 0x003A ':'
#define lowBatteryChr vchrLowBattery // 0x0101
#define enterDebuggerChr vchrEnterDebugger // 0x0102
#define nextFieldChr vchrNextField // 0x0103
#define startConsoleChr vchrStartConsole // 0x0104
#define menuChr vchrMenu // 0x0105
#define commandChr vchrCommand // 0x0106
#define confirmChr vchrConfirm // 0x0107
#define launchChr vchrLaunch // 0x0108
#define keyboardChr vchrKeyboard // 0x0109
#define findChr vchrFind // 0x010A
#define calcChr vchrCalc // 0x010B
#define prevFieldChr vchrPrevField // 0x010C
#define alarmChr vchrAlarm // 0x010D
#define ronamaticChr vchrRonamatic // 0x010E
#define graffitiReferenceChr vchrGraffitiReference // 0x010F
#define keyboardAlphaChr vchrKeyboardAlpha // 0x0110
#define keyboardNumericChr vchrKeyboardNumeric // 0x0111
#define lockChr vchrLock // 0x0112
#define backlightChr vchrBacklight // 0x0113
#define autoOffChr vchrAutoOff // 0x0114
#define exgTestChr vchrExgTest // 0x0115
#define sendDataChr vchrSendData // 0x0116
#define irReceiveChr vchrIrReceive // 0x0117
#define radioCoverageOKChr vchrRadioCoverageOK // 0x011C
#define radioCoverageFailChr vchrRadioCoverageFail // 0x011D
#define powerOffChr vchrPowerOff // 0x011E
#define resumeSleepChr vchrResumeSleep // 0x011F
#define lateWakeupChr vchrLateWakeup // 0x0120
#define brightnessChr vchrBrightness // 0x0121
#define contrastChr vchrContrast // 0x0122
#define hardKeyMin vchrHardKeyMin // 0x0200
#define hardKeyMax vchrHardKeyMax // 0x02FF
#define hard1Chr vchrHard1 // 0x0204
#define hard2Chr vchrHard2 // 0x0205
#define hard3Chr vchrHard3 // 0x0206
#define hard4Chr vchrHard4 // 0x0207
#define hardPowerChr vchrHardPower // 0x0208
#define hardCradleChr vchrHardCradle // 0x0209
#define hardCradle2Chr vchrHardCradle2 // 0x020A
#define hardContrastChr vchrHardContrast // 0x020B
#define hardAntennaChr vchrHardAntenna // 0x020C
#define hardBrightnessChr vchrHardBrightness // 0x020D
// Macros to determine correct character code to use for drawing numeric space
// and horizontal ellipsis.
#define ChrNumericSpace(chP) \
do { \
UInt32 attribute; \
if ((FtrGet(sysFtrCreator, sysFtrNumROMVersion, &attribute) == 0) \
&& (attribute >= sysMakeROMVersion(3, 1, 0, 0, 0))) { \
*(chP) = chrNumericSpace; \
} else { \
*(chP) = (Char)0x80; \
} \
} while (0)
#define ChrHorizEllipsis(chP) \
do { \
UInt32 attribute; \
if ((FtrGet(sysFtrCreator, sysFtrNumROMVersion, &attribute) == 0) \
&& (attribute >= sysMakeROMVersion(3, 1, 0, 0, 0))) { \
*(chP) = chrEllipsis; \
} else { \
*(chP) = (Char)0x85; \
} \
} while (0)
// Characters in the 9 point symbol font. Resource ID 9003
enum symbolChars {
symbolLeftArrow = 3,
symbolRightArrow,
symbolUpArrow,
symbolDownArrow,
symbolSmallDownArrow,
symbolSmallUpArrow,
symbolMemo = 9,
symbolHelp,
symbolNote,
symbolNoteSelected,
symbolCapsLock,
symbolNumLock,
symbolShiftUpper,
symbolShiftPunc,
symbolShiftExt,
symbolShiftNone,
symbolNoTime,
symbolAlarm,
symbolRepeat,
symbolCheckMark,
// These next four characters were moved from the 0x8D..0x90
// range in the main fonts to the 9pt Symbol font in PalmOS 3.1
symbolDiamondChr,
symbolClubChr,
symbolHeartChr,
symbolSpadeChr
};
// Character in the 7 point symbol font. Resource ID 9005
enum symbol7Chars {
symbol7ScrollUp = 1,
symbol7ScrollDown,
symbol7ScrollUpDisabled,
symbol7ScrollDownDisabled
};
// Characters in the 11 point symbol font. Resource ID 9004
enum symbol11Chars {
symbolCheckboxOff = 0,
symbolCheckboxOn,
symbol11LeftArrow,
symbol11RightArrow,
symbol11LeftArrowDisabled, // New for Palm OS v3.2
symbol11RightArrowDisabled // New for Palm OS v3.2
};
#endif // __CHARS_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -