Download API User Manual
Transcript
LinuxDA API User Manual
API User Manual
Since we develop the GUI ourselves. We have to define every function, data structure even the
message queue. But, our target is to ‘binary compatible’ Palm Application, maybe we’ll improve our
API to follow Palm SDK later.
In this version of API, We call each form as ‘FORM’, that means the main windows of a
application is a form, a message box is also a form. (I know Palm SDK treat every window as ‘Form’).
Currently, our applications are ‘FORM based’ app. And, in each form, we call the elements such as
‘Button’, ‘Label’ as ‘Components’.
FORM
This section provides the following information about FORM
1. Basic data structure
2. FORM data structure
3. FORM constants
4. FORM related functions
5. GUI Internal functions
6. Message queue definitions and related functions
7. A simple example to show how to use the GUI functions to get the message
1. Basic Data Structure
These data structure are defined in ‘gui.h’
typedef unsigned char U8;
typedef unsigned short U16;
typedef unsigned long U32;
typedef struct {
//define a pixel, (x,y) is co-ordinates of the pixel
short x;
short y;
}PIXEL;
typedef struct {
short left;
//the x coordinate of the start point;
3