HPGCC3 Documentation 3.0 R003

gui.h File Reference

#include <ggl.h>
#include <gstring.h>
#include <resources.h>

Go to the source code of this file.

Data Structures

struct  gUpdate
struct  gEvent
struct  gEvHandlerList
struct  gFontData
class  gFont
class  gControl
struct  gLoopData
class  gApplication
class  gForm
struct  gSoftMenuItem
class  gSoftMenu
class  gStaticText
class  gStaticTextWrap
class  gCheckBox
class  gEditBox
struct  gListItem
class  gListBox

Defines

#define SCREEN_W   160
#define SCREEN_H   80
#define USERSCREEN_W   131
#define USERSCREEN_H   80
#define CAPTIONHEIGHT   7
#define SOFTMENUHEIGHT   6
#define SCROLLBARWIDTH   3
#define BORDERWIDTH   1
#define CURSORBLINKSPEED   40000
#define TRIM_BEGIN   0
#define TRIM_END   1
#define ITEM_GROUP   16
#define CHECKHEIGHT   6
#define LEVELWIDTH   8
#define CHECKWIDTH   8
#define CHECKBMPWIDTH   48

Typedefs

typedef BOOL(* gEvHandler )(gEvent *e, gControl *_This)

Enumerations

enum  gGraphicCommands {
  GCMD_END = 0, GCMD_SETCLIP, GCMD_DRAWICON, GCMD_VLINE,
  GCMD_HLINE, GCMD_RECT
}
enum  gColors {
  GWHITE = 0, GGRAY1 = 0x11111111, GGRAY2 = 0x22222222, GGRAY3 = 0x33333333,
  GGRAY4 = 0x44444444, GGRAY5 = 0x55555555, GGRAY6 = 0x66666666, GGRAY7 = 0x77777777,
  GGRAY8 = 0x88888888, GGRAY9 = 0x99999999, GGRAY10 = 0xaaaaaaaa, GGRAY11 = 0xbbbbbbbb,
  GGRAY12 = 0xcccccccc, GGRAY13 = 0xdddddddd, GGRAY14 = 0xeeeeeeee, GBLACK = 0xffffffff
}
enum  gAppFlags { GAPP_EXIT = 1, GAPP_NEXTFORM, GAPP_PREVFORM }
enum  gEvTypes {
  GEVENT_NONE = 0, GEVENT_KEYB = 1, GEVENT_IDLE, GEVENT_GUI,
  GEVENT_TMR, GEVENT_SD, GEVENT_SERIAL
}
enum  gEvGui {
  GEVGUI_GETFOCUS = 1, GEVGUI_LOSEFOCUS, GEVGUI_FORMCREATE, GEVGUI_FORMOPEN,
  GEVGUI_FORMCLOSE, GEVGUI_FORMEXIT, GEVGUI_NEWFORM, GEVGUI_CHANGEFORM,
  GEVGUI_QUERYCLOSE, GEVGUI_BEFORECHANGE, GEVGUI_AFTERCHANGE, GEVGUI_BEFORECOLLAPSE,
  GEVGUI_AFTERCOLLAPSE, GEVGUI_BEFOREEXPAND, GEVGUI_AFTEREXPAND, GEVGUI_BEFORECHECK,
  GEVGUI_AFTERCHECK, GEVGUI_ENTER
}
enum  gSystemFonts {
  FONT_MINI = -6, FONT_TINY = 5, FONT_SYSTEM6 = 6, FONT_SYSTEM7 = 7,
  FONT_SYSTEM8 = 8
}
enum  gFormStyles {
  S_TOPCAPTION = 1, S_BOTTOMCAPTION = 2, S_SINGLESTATUSLINE = 4, S_DOUBLESTATUSLINE = 8,
  S_TOPSTATUS = 16, S_FORCEVSCROLL = 32, S_FORCEHSCROLL = 64, S_FORMBORDER = 128,
  S_SHADE = 256, S_SINGLESOFTMENU = 1024, S_EXSOFTMENU = 2048, S_FULLSCREEN = 4096
}
enum  gStateFlags { STAT_VISIBLE = 1, STAT_FOCUS = 2 }
enum  gStyles {
  S_UNCHECKED = 0, S_CHECK = 1, S_DOT, S_PLUS,
  S_MINUS, S_UNKNOWN, S_SELECTED = 8, S_MULTILINE = 16,
  S_HSCROLLBAR = 32, S_VSCROLLBAR = 64, S_HASBORDER = 128, S_FOCUSED = 512
}
enum  gEditStates {
  ES_SHOWCURSOR = 1, ES_CURSORBLINK = 2, ES_RDONLY = 4, ES_SINGLELINE = 8,
  ES_LIMITEDIT = 16, ES_OVERWRITE = 32
}
enum  gListStates {
  LS_HASCHECK = 1, LS_CHECKED = 2, LS_UNKNOWN = 4, LS_HIDDEN = 8,
  LS_SELECTED = 16, LS_EXPANDABLE = 32, LS_EXPANDED = 64
}
enum  gMsgBoxStyle { S_OKCANCEL = 0, S_YESNO, S_RETRYCANCEL, S_OKONLY }
enum  gMsgBoxResult {
  S_OK = 0, S_YES = 0, S_RETRY = 0, S_NO = -1,
  S_CANCEL = -1
}

Functions

gMsgBoxResult gDoMessageBox (gApplication *app, const char *Title, const char *Message, gMsgBoxStyle Flags)
BOOL gOKEvent (gEvent *e, gControl *This)
BOOL gCancelEvent (gEvent *e, gControl *This)
BOOL gDoNothingEvent (gEvent *e, gControl *This)

Detailed Description

Graphical User Interface in greyscale.

The GUI module enables easier coding of programs that require user interaction.

Definition in file gui.h.


Define Documentation

#define BORDERWIDTH   1

Definition at line 328 of file gui.h.

#define CAPTIONHEIGHT   7

Definition at line 325 of file gui.h.

#define CHECKBMPWIDTH   48

Definition at line 885 of file gui.h.

#define CHECKHEIGHT   6

Definition at line 882 of file gui.h.

#define CHECKWIDTH   8

Definition at line 884 of file gui.h.

#define CURSORBLINKSPEED   40000

Definition at line 330 of file gui.h.

#define ITEM_GROUP   16

Definition at line 881 of file gui.h.

#define LEVELWIDTH   8

Definition at line 883 of file gui.h.

#define SCREEN_H   80

Definition at line 319 of file gui.h.

#define SCREEN_W   160

Definition at line 318 of file gui.h.

#define SCROLLBARWIDTH   3

Definition at line 327 of file gui.h.

#define SOFTMENUHEIGHT   6

Definition at line 326 of file gui.h.

#define TRIM_BEGIN   0

Definition at line 776 of file gui.h.

#define TRIM_END   1

Definition at line 777 of file gui.h.

#define USERSCREEN_H   80

Definition at line 322 of file gui.h.

#define USERSCREEN_W   131

Definition at line 321 of file gui.h.


Typedef Documentation

typedef BOOL(* gEvHandler)(gEvent *e, gControl *_This)

Definition at line 352 of file gui.h.


Enumeration Type Documentation

enum gAppFlags
Enumerator:
GAPP_EXIT 
GAPP_NEXTFORM 
GAPP_PREVFORM 

Definition at line 394 of file gui.h.

enum gColors
Enumerator:
GWHITE 
GGRAY1 
GGRAY2 
GGRAY3 
GGRAY4 
GGRAY5 
GGRAY6 
GGRAY7 
GGRAY8 
GGRAY9 
GGRAY10 
GGRAY11 
GGRAY12 
GGRAY13 
GGRAY14 
GBLACK 

Definition at line 375 of file gui.h.

Enumerator:
ES_SHOWCURSOR 
ES_CURSORBLINK 
ES_RDONLY 
ES_SINGLELINE 
ES_LIMITEDIT 
ES_OVERWRITE 

Definition at line 766 of file gui.h.

enum gEvGui
Enumerator:
GEVGUI_GETFOCUS 
GEVGUI_LOSEFOCUS 
GEVGUI_FORMCREATE 
GEVGUI_FORMOPEN 
GEVGUI_FORMCLOSE 
GEVGUI_FORMEXIT 
GEVGUI_NEWFORM 
GEVGUI_CHANGEFORM 
GEVGUI_QUERYCLOSE 
GEVGUI_BEFORECHANGE 
GEVGUI_AFTERCHANGE 
GEVGUI_BEFORECOLLAPSE 
GEVGUI_AFTERCOLLAPSE 
GEVGUI_BEFOREEXPAND 
GEVGUI_AFTEREXPAND 
GEVGUI_BEFORECHECK 
GEVGUI_AFTERCHECK 
GEVGUI_ENTER 

Definition at line 410 of file gui.h.

enum gEvTypes
Enumerator:
GEVENT_NONE 
GEVENT_KEYB 
GEVENT_IDLE 
GEVENT_GUI 
GEVENT_TMR 
GEVENT_SD 
GEVENT_SERIAL 

Definition at line 400 of file gui.h.

Enumerator:
S_TOPCAPTION 
S_BOTTOMCAPTION 
S_SINGLESTATUSLINE 
S_DOUBLESTATUSLINE 
S_TOPSTATUS 
S_FORCEVSCROLL 
S_FORCEHSCROLL 
S_FORMBORDER 
S_SHADE 
S_SINGLESOFTMENU 
S_EXSOFTMENU 
S_FULLSCREEN 

Definition at line 605 of file gui.h.

Enumerator:
GCMD_END 
GCMD_SETCLIP 
GCMD_DRAWICON 
GCMD_VLINE 
GCMD_HLINE 
GCMD_RECT 

Definition at line 366 of file gui.h.

Enumerator:
LS_HASCHECK 
LS_CHECKED 
LS_UNKNOWN 
LS_HIDDEN 
LS_SELECTED 
LS_EXPANDABLE 
LS_EXPANDED 

Definition at line 887 of file gui.h.

Enumerator:
S_OK 
S_YES 
S_RETRY 
S_NO 
S_CANCEL 

Definition at line 979 of file gui.h.

Enumerator:
S_OKCANCEL 
S_YESNO 
S_RETRYCANCEL 
S_OKONLY 

Definition at line 973 of file gui.h.

Enumerator:
STAT_VISIBLE 
STAT_FOCUS 

Definition at line 623 of file gui.h.

enum gStyles
Enumerator:
S_UNCHECKED 
S_CHECK 
S_DOT 
S_PLUS 
S_MINUS 
S_UNKNOWN 
S_SELECTED 
S_MULTILINE 
S_HSCROLLBAR 
S_VSCROLLBAR 
S_HASBORDER 
S_FOCUSED 

Definition at line 728 of file gui.h.

Enumerator:
FONT_MINI 
FONT_TINY 
FONT_SYSTEM6 
FONT_SYSTEM7 
FONT_SYSTEM8 

Definition at line 431 of file gui.h.


Function Documentation

BOOL gCancelEvent ( gEvent e,
gControl This 
)
gMsgBoxResult gDoMessageBox ( gApplication app,
const char *  Title,
const char *  Message,
gMsgBoxStyle  Flags 
)
BOOL gDoNothingEvent ( gEvent e,
gControl This 
)
BOOL gOKEvent ( gEvent e,
gControl This 
)