List of Functions:
-
int gdx_button(int x1, int y1, char *label, gdxtype *callback);
-
int gdx_chkbutton(int x1, int y1, char *label);
-
int gdx_closewindow();
-
void gdx_frame(int x1, int y1, int x2, in y2, char *label);
-
void gdx_hlineroot(int spaces);
-
void gdx_hseparator(int x1,int y2,int length);
-
int gdx_image(int x1,int y2,char filename);
-
void gdx_imageupdate(int image,char filename);
-
int gdx_imagebutton(int x1, int y1, char *image, gdxtype *callback);
-
void gdx_label(char *text, int x_location, int y_location, int border);
-
int gdx_lbutton(int x1, int y1, char *label, gdxtype *callback);
-
void gdx_main();
-
int gdx_menu(int parent_menubar,char *label);
-
int gdx_menubar(void);
-
int gdx_menuitem(int parent_menu, char *label, gdxtype *callback );
-
void gdx_pie(int x, int y, int diameter, int percent);
-
int gdx_selectlist(int x, int y, int numberofitems, char list[256][256], int columns, int rows);
-
void gdx_setbuttoncolor(int button_id, unsigned long color);
void gdx_settextentry(int id, char *string);
void gdx_setwindowbg(char *filename,int format);
Set a background image (wallpaper) to a window.
format 0 = image to image size.
format 1 = tiled image
|
void gdx_staticlist(int x, int y, int color, char hilight, int numberoflines, char lines[256][256], char *font, char *head);
Creates a simple static list.
color 0 is gray
color 1 is green, light green alternating
color 2 is gray, white alternating
The head is a label placed on the top of the list.
|
int gdx_textentry(int x1, int y2, int width,int type);
Creates a text entry. Returns text entries' id.
type 0 is standard
type 1 is password
Example:
textentry_id = gdx_textentry(50,50,70,0);
To retrieve data entered, use this structure:
gdx_textentry_obj.string[textentry_id];
|
void gdx_vseparator(int x1, int y2, int length);
Creates a vertical separator.
Example:
gdx_vseparator(50,50,70);
|
void gdx_window(char *title, int width, int height);
Creates a window.
Example:
gdx_window("My window",200,300);
|
void x_close();
int x_imgbox(char *image, char *title);
Displays and XPM or GPG image file.
Returns the X cordinate of the mouse when window is clicked.
Example:
int mouse_position;
mosue_position = x_imgbox("myimage.xpm","My image dialog box");
|
int x_imgkeybox(char *image, char *title, int type, int xcord, int ycord);
Type 1 allows 1234567890ed
up to 6 numbers or 1 'e' or 1 'd'
echo output
Type 2 allows 1234567890.
up to 9 numbers/decimals
echo output
Type 3 allows 1234567890abcdefghijklmnopqrstuvwxyz
up to 1 character
echo output
|
void x_msgbox(int type, char *disp_string, char *title, char *font, int padding);
Creates a message dialog window.
Dialog types:
0 text only, no image or buttons - must close program
1 text and OK button, no image
2 text, smiley face icon, OK button
3 text and smiley face icon, no buttons - must close program
4 text, warning icon, OK button
5 text, informational icon, OK button
Font can be any font loaded on system
If font is set for 'DEFAULT' the 'fixed' font will be used.
|
void x_open();
int x_radiobox(char *radio1, char *radio2, char *disp_string, char *title, char *font, int padding);
Creates a radio dialog window.
Returns 1 or 2 depending on radio button pressed.
|
void x_graphwindow(int width, int height, char *title, int numberofbars, int *bars, char *font);
Creates a simple bar graph window.
|
void x_slistwindow(int width, int height, char *title, int color, char hilight, int numberoflines, char lines[][], char *font, char *head);
Creates a simple static list window.
The windows is closed when the mouse is clicked any where on the screen or a key on the keyboard is pressed.
color 0 is gray
color 1 is green, light green alternating
color 2 is gray, white alternating
The head is a label placed on the top of the list.
|
int x_calbox(char *title);