#include <PalmTypes.h>
#include <FeatureMgr.h>
#include <ErrorBase.h>
#include <ErrorMgr.h>
#include <SystemMgr.h>
#include <SysUtils.h>
#include <StringMgr.h>
#include <Form.h>
#include <resCompat.h>
#include <simcity_resconsts.h>
#include <simcity.h>
#include <palmutils.h>
#include <logging.h>
#include <mem_compat.h>
Go to the source code of this file.
Functions | |
void | RearrangeObjectOnly (FormPtr form, UInt16 oID, Int16 offsetX, Int16 offsetY, Int16 resizeX, Int16 resizeY) |
rearrange/move/resize an object on the screen | |
void | RearrangeBitmap (FormPtr form, UInt16 oID, Int16 offsetX, Int16 offsetY) |
rearrange the location of a bitmap on screen | |
Boolean | isHandEra (void) |
is this device a HandEra machine | |
Boolean | isZireOld (void) |
is the device an old Zire (palmos 4) | |
UInt32 | getDepth (void) |
Return the depth in bits per pixel. | |
UInt32 | hibit (UInt32 x) |
get the highest numbered bit that is set in the 32 bit value passed | |
Err | changeDepthRes (UInt32 ndepth, Boolean tryHigh) |
Change the depth. | |
Err | restoreDepthRes (void) |
restore the screen to the original depth and resolution | |
Boolean | canColor (UInt16 nbits) |
can this device perform color operations at the depth requested | |
UInt32 | GetCreatorID (void) |
get the applications' creator ID | |
Char ** | FillStringList (UInt16 resID, UInt16 *length) |
build a string list from all the string list items from resID | |
void | FreeStringList (Char **list) |
free the contents of a string list | |
void * | GetObjectPtr (FormType *form, UInt16 index) |
get an object pointer from an item index | |
void | compatBmpGetDimensions (BitmapPtr pBmp, Coord *pWidth, Coord *pHeight, UInt16 *pRowBytes) |
get a bitmap's dimensions |
Definition in file palmutils.c.
|
can this device perform color operations at the depth requested
Definition at line 202 of file palmutils.c. |
|
Change the depth. This will consequently set the resolution of the screen
Definition at line 123 of file palmutils.c. References hibit(), isHandEra(), and UInt32. |
|
get a bitmap's dimensions It's for compatibly with pre-PalmOS4 machines.
Definition at line 305 of file palmutils.c. References UInt16. |
|
build a string list from all the string list items from resID
Definition at line 256 of file palmutils.c. References Char, Int16, UInt16, and UInt32. Referenced by setupButtonConfig(). |
|
free the contents of a string list The list wil have been obtained from the FillStringList function
Definition at line 291 of file palmutils.c. References Char. Referenced by clearButtonConfig(). |
|
get the applications' creator ID
Definition at line 238 of file palmutils.c. Referenced by BeamRegister(), BeamSend(), and OpenMyDB(). |
|
Return the depth in bits per pixel.
Definition at line 89 of file palmutils.c. References UInt32. Referenced by RenderMaps(). |
|
get an object pointer from an item index
Definition at line 298 of file palmutils.c. References UInt16. Referenced by budgetSetup(), cityNewSetup(), CleanSaveGameList(), cnCreateButtonPressed(), DeleteFromList(), LoadFromList(), processRepeater(), queryCleanup(), querySetup(), saveButtonConfig(), saveOptions(), setupButtonConfig(), setupOptions(), and UpdateSaveGameList(). |
|
get the highest numbered bit that is set in the 32 bit value passed
Definition at line 111 of file palmutils.c. References UInt32. Referenced by changeDepthRes(). |
|
is this device a HandEra machine
Definition at line 60 of file palmutils.c. References UInt32. Referenced by changeDepthRes(). |
|
is the device an old Zire (palmos 4)
Definition at line 70 of file palmutils.c. References UInt16, and UInt32. Referenced by buildSilkList(). |
|
rearrange the location of a bitmap on screen
Definition at line 49 of file palmutils.c. |
|
rearrange/move/resize an object on the screen
Definition at line 31 of file palmutils.c. |
|
restore the screen to the original depth and resolution
Definition at line 189 of file palmutils.c. |