|
API Guide Home (Online version only) |
![]() |
You can check whether the GoLCD Manager is installed by examining its feature set. Call FtrGet as follows:
err = FtrGet (goLcdCreator, goLcdFtrNumVersion, &value);
Definition in file PalmGoLCD.h.
Include dependency graph for PalmGoLCD.h:

Go to the source code of this file.
| void GoLcdGetBounds | ( | UInt16 | libRefNum, | |
| RectangleType * | rectP | |||
| ) |
Returns the current bounds defined for use with GoLCD.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| rectP,: | IN: Points to the returned rectangle. |
RectangleType gCurrentBounds; GoLcdGetBounds(gGoLcdLibRefNum, &gCurrentBounds);
| void GoLcdGetGsiState | ( | UInt16 | libRefNum, | |
| GoLcdGsiStateType * | stateP, | |||
| GoLcdColorModeType * | colorModeP, | |||
| RGBColorType * | rgbP | |||
| ) |
Returns the GSI state associated with GoLCD.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| stateP,: | IN: Points to the returned GoLCD GSI state. | |
| colorModeP,: | IN: Points to the returned GoLCD color mode for GSI. | |
| rgbP,: | IN: Valid only if colorMode is set to goLcdColorOverride. Points to an RGB color value corresponding to the current color used for inking. (The RGBColorType is defined in the header file Bitmap.h.) |
GoLcdGsiStateType gCurrentGoLcdGsiState = goLcdGsiNormal; GoLcdColorModeType gCurrentGoLcdColorMode = goLcdColorDefault; RGBColorType gCurrentColor; GoLcdGetGsiState(gGoLcdLibRefNum, &gCurrentGoLcdGsiState, &gCurrentGoLcdColorMode, &gCurrentColor);
| void GoLcdGetInkState | ( | UInt16 | libRefNum, | |
| GoLcdInkStateType * | stateP, | |||
| GoLcdColorModeType * | colorModeP, | |||
| RGBColorType * | rgbP | |||
| ) |
Returns the current state of GoLCD inking.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| stateP,: | IN: Points to the returned GoLCD ink state. | |
| colorModeP,: | IN: Points to the returned GoLCD color mode for ink. | |
| rgbP,: | IN: Valid only if colorMode is set to goLcdColorOverride. Points to an RGB color value corresponding to the current color used for inking. (The RGBColorType is defined in the header file Bitmap.h.) |
GoLcdInkStateType gCurrentGoLcdInkState = goLcdInkDisabled; GoLcdColorModeType gCurrentGoLcdColorMode = goLcdColorDefault; RGBColorType gCurrentColor; GoLcdGetInkState(gGoLcdLibRefNum, &gCurrentGoLcdInkState, &gCurrentGoLcdColorMode, &gCurrentColor);
| GoLcdStatusType GoLcdGetStatus | ( | UInt16 | libRefNum | ) |
Returns whether the GoLCD functionality is enabled, disabled, or not available on this device.
| libRefNum,: | IN: Reference number of the GoLCD library. |
| GoLcdStatusType | Returns the current GoLCD status. |
GoLcdStatusType gCurrentGoLcdStatus = goLcdNotAvailable; gCurrentGoLcdStatus = GoLcdGetStatus(gGoLcdLibRefNum); switch(gCurrentGoLcdStatus) { case goLcdDisabled: // GoLcd is disabled break; case goLcdEnabled: // GoLcd is Enabled break; case goLcdNotAvailable: default: // Not available break; }
| UInt32 GoLcdGetTimeout | ( | UInt16 | libRefNum, | |
| GoLcdModeType | mode | |||
| ) |
Returns the length, in system ticks, of the time-out value of GoLCD.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| mode,: | IN: Specifies the GoLCD mode. |
| UInt32 | Returns the length (in system ticks) of the time-out value. |
UInt32 gCurrentTimeout = GoLcdGetTimeout(gGoLcdLibRefNum, goLcdPenTapMode);
Closes the GoLCD library. This function should be called after your application has finished with the GoLCD library.
| libRefNum,: | IN: Reference number of the GoLCD library. |
| Err | The error code returned from the library. If this is errNone, the function was sucessful. |
err = GoLcdLibClose(gGoLcdLibRefNum); if( err == errNone ) err = SysLibRemove(gGoLcdLibRefNum);
Opens the GoLCD library. This function should be called prior to calling the other GoLCD functions.
| libRefNum,: | IN: Reference number of the GoLCD library. |
| Err | The error code returned from the library. If this is errNone, the function was sucessful. |
UInt16 gGoLcdLibRefNum = 0; err = SysLibFind(goLcdLibName, &gGoLcdLibRefNum); if( err == sysErrLibNotFound ) { err = SysLibLoad(goLcdLibType, goLcdLibCreator, &gGoLcdLibRefNum); if( !err ) { err = GoLcdLibOpen(gGoLcdLibRefNum); } }
| void GoLcdSetBounds | ( | UInt16 | libRefNum, | |
| RectangleType * | rectP | |||
| ) |
Sets the bounds defined for use with GoLCD.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| rectP,: | IN: Points to the rectangle value to set. |
RectangleType gNewBounds = { { 0, 0 } , { 50, 50 } };
GoLcdGetBounds(gGoLcdLibRefNum, &gNewBounds);
| void GoLcdSetGsiState | ( | UInt16 | libRefNum, | |
| GoLcdGsiStateType | state, | |||
| GoLcdColorModeType | colorMode, | |||
| RGBColorType * | rgbP | |||
| ) |
Sets the GSI state associated with GoLCD.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| state,: | IN: Sets the GoLCD GSI state. | |
| colorMode,: | IN: Sets the GoLCD color mode for GSI. | |
| rgbP,: | IN: Valid only if colorMode is set to goLcdColorOverride. Points to an RGB color value corresponding to the current color used for inking. (The RGBColorType is defined in the header file Bitmap.h.) |
RGBColorType gNewColor = { 0, 255, 0, 0}; // Red
GoLcdSetGsiState(gGoLcdLibRefNum, goLcdGsiOverride, goLcdColorOverride, &gNewColor);
| void GoLcdSetInkState | ( | UInt16 | libRefNum, | |
| GoLcdInkStateType | state, | |||
| GoLcdColorModeType | colorMode, | |||
| RGBColorType * | rgbP | |||
| ) |
Sets the state of GoLCD inking.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| state,: | IN: Sets the new GoLCD ink state. | |
| colorMode,: | IN: Sets the new GoLCD color mode for ink. | |
| rgbP,: | IN: Valid only if colorMode is set to goLcdColorOverride. Points to an RGB color value corresponding to the current color used for inking. (The RGBColorType is defined in the header file Bitmap.h.) |
RGBColorType gNewColor = { 0, 255, 0, 0}; // Red
GoLcdSetInkState(gGoLcdLibRefNum, goLcdInkEnabled, goLcdColorOverride, &gNewColor);
| GoLcdStatusType GoLcdSetStatus | ( | UInt16 | libRefNum, | |
| GoLcdStatusType | status | |||
| ) |
Enables or disables the GoLCD functionality.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| status | IN: Sets the new GoLCD status. |
| GoLcdStatusType | Returns the previous GoLCD status. |
GoLcdStatusType gPreviousGoLcdStatus = goLcdNotAvailable; gPreviousGoLcdStatus = GoLcdSetStatus(gGoLcdLibRefNum, goLcdEnabled);
| UInt32 GoLcdSetTimeout | ( | UInt16 | libRefNum, | |
| GoLcdModeType | mode, | |||
| UInt32 | ticks | |||
| ) |
Sets the length, in system ticks, of the time-out value of GoLCD.
| libRefNum,: | IN: Reference number of the GoLCD library. | |
| mode,: | IN: Specifies the GoLCD mode. | |
| ticks,: | IN: The new time-out length in system ticks. |
| UInt32 | Returns the length (in system ticks) of the previous time-out value. |
UInt32 gPreviousTimeout = GoLcdSetTimeout(gGoLcdLibRefNum, goLcdPenTapMode, 100);
| Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:07:42 2008 for Palm API Guide |