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

GButton.h

Go to the documentation of this file.
00001 
00006 #ifndef _GBUTTON_H_
00007 #define _GBUTTON_H_
00008 
00016 class LgiClass GButton :
00017     public GView,
00018     public ResObject
00019 {
00020     class GButtonPrivate *d;
00021 
00022 public:
00024     GButton
00025     (
00027         int id,
00029         int x,
00031         int y,
00033         int cx,
00035         int cy,
00037         char *name
00038     );
00039     ~GButton();
00040     
00042     bool Default();
00044     void Default(bool b);
00046     int Value();
00048     void Value(int i);
00049 
00050     // Events
00051     int OnEvent(GMessage *Msg);
00052     void OnMouseClick(GMouse &m);
00053     void OnMouseEnter(GMouse &m);
00054     void OnMouseExit(GMouse &m);
00055     bool OnKey(GKey &k);
00056     void OnFocus(bool f);
00057     void OnPaint(GSurface *pDC);
00058     void OnAttach();
00059 
00060     // Impl
00061     char *Name() { return GView::Name(); }
00062     char16 *NameW() { return GView::NameW(); }
00063     bool Name(char *n);
00064     bool NameW(char16 *n);
00065     void SetFont(GFont *Fnt, bool OwnIt = false);
00066 };
00067 
00068 #endif

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