Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GRadioGroup.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 #ifndef _GRADIO_GROUP_H_
00006 #define _GRADIO_GROUP_H_
00007 
00012 class LgiClass GRadioGroup :
00013     public GView,
00014     public ResObject
00015 {
00016     class GRadioGroupPrivate *d;
00017     void OnCreate();
00018 
00019 public:
00020     GRadioGroup(int id, int x, int y, int cx, int cy, char *name, int Init = 0);
00021     ~GRadioGroup();
00022 
00024     int Value();
00026     void Value(int i);
00028     GRadioButton *Append(int x, int y, char *name);
00029 
00030     // Impl
00031     int OnNotify(GView *Ctrl, int Flags);
00032     void OnPaint(GSurface *pDC);
00033     void OnAttach();
00034     int OnEvent(GMessage *m);
00035 
00036     char *Name() { return GView::Name(); }
00037     char16 *NameW() { return GView::NameW(); }
00038     bool Name(char *n);
00039     bool NameW(char16 *n);
00040     void SetFont(GFont *Fnt, bool OwnIt = false);
00041 };
00042 
00045 class LgiClass GRadioButton :
00046     public GView,
00047     public ResObject
00048 {
00049     friend class GRadioGroup;
00050     class GRadioButtonPrivate *d;
00051 
00052 public:
00053     GRadioButton(int id, int x, int y, int cx, int cy, char *name);
00054     ~GRadioButton();
00055 
00056     // Impl
00057     char *Name() { return GView::Name(); }
00058     char16 *NameW() { return GView::NameW(); }
00059     bool Name(char *n);
00060     bool NameW(char16 *n);
00061     int Value();
00062     void Value(int i);
00063     void SetFont(GFont *Fnt, bool OwnIt = false);
00064 
00065     // Events
00066     void OnMouseClick(GMouse &m);
00067     void OnMouseEnter(GMouse &m);
00068     void OnMouseExit(GMouse &m);
00069     bool OnKey(GKey &k);
00070     void OnFocus(bool f);
00071     void OnPaint(GSurface *pDC);
00072     void OnAttach();
00073     int OnEvent(GMessage *m);
00074 };
00075 
00076 #endif

Generated on Wed Oct 26 14:46:49 2005 for Lgi by  doxygen 1.4.1