
20-6
Programmer’s Manual
Return Value
Hint
The LCD display origin is the co-ordinate of top left corner of the LCD display
screen relative to the panning screen origin.
20.6
CursorGetPos
Syntax
STATUS
CursorGetPos
(P_U16 xPos P_U16 yPos)
Description
Returns the coordinate (*xPos *yPos) of the hardware cursor of the current
task. If this function is called after calling CursorOff(), error will be returned as
no more information about cursor exists after calling CursorOff().
Parameter
Return Value
Name
Description
PPSM_ERR_PAN_INIT
Error when the current task has no
panning screen
PPSM_ERROR
If any of xPosor yPosis 0
PPSM_OK
Successful operation
Name
Description
xPos
Pointer to X coordinate of the top-left
corner of the cursor
yPos
Pointer to Y coordinate of the top-left
corner of the cursor
Name
Description
PPSM_ERR_CURSOR_INIT
Error if cursor is never set or CursorOff() is
just called.
PPSM_ERR_PAN_INIT
Error when the cursor is not set
PPSM_ERROR
If any of xPosand yPosis 0
PPSM_OK
Successful operation
Personal Portable System Manager
Programmer’s Manual
Graphics ToGraphics Tools
20-3
Hint
The panning screen address must be created by using GetScreenMem(). In
some cases, a common panning screen may be shared among multiple tasks.
To achieve that, the common panning screen is created by GetScreenMem(),
and ChangePanning() is called at the beginning of each task.
20.2
ChangeWindow
Syntax
STATUS
ChangeWindow
P_U16 oldWidth
,
Description
This tool will direct all graphics routines to the memory at
will be changed on the panning screen being displayed. The
divisible by 8 for 2 bits/pixel display and divisible by 16 for 1 bit/pixel display.
The original settings will be returned to the calling application.
so that nothing
must be
Parameter
Return Value
PPSM_ERR_PAN_ADDRESS
Invalid panning screen address
PPSM_ERR_PAN_WIDTH
Invalid panning screen width
PPSM_ERR_PAN_HEIGHT
Invalid panning screen height
Name
Description
addr
width
height
oldAddr
oldWidth
oldHeight
Name
Description
PPSM_OK
Successful operation
Name
Description
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.