00001 00002 00003 00004 00005 #ifndef _GCHECK_BOX_H_ 00006 #define _GCHECK_BOX_H_ 00007 00010 class LgiClass GCheckBox : 00011 public GView, 00012 public ResObject 00013 { 00014 class GCheckBoxPrivate *d; 00015 00016 public: 00018 GCheckBox 00019 ( 00021 int id, 00023 int x, 00025 int y, 00027 int cx, 00029 int cy, 00031 const char *name, 00033 int InitState = false 00034 ); 00035 ~GCheckBox(); 00036 00037 // Methods 00038 const char *GetClass() { return "GCheckBox"; } 00039 00041 bool ThreeState(); 00050 void ThreeState(bool t); 00052 int64 Value(); 00054 void Value(int64 b); 00055 00056 // Impl 00057 char *Name() { return GView::Name(); } 00058 char16 *NameW() { return GView::NameW(); } 00059 bool Name(const char *n); 00060 bool NameW(const char16 *n); 00061 void SetFont(GFont *Fnt, bool OwnIt = false); 00062 00063 void OnMouseClick(GMouse &m); 00064 void OnMouseEnter(GMouse &m); 00065 void OnMouseExit(GMouse &m); 00066 bool OnKey(GKey &k); 00067 void OnFocus(bool f); 00068 void OnPaint(GSurface *pDC); 00069 void OnAttach(); 00070 int OnEvent(GMessage *Msg); 00071 }; 00072 00073 #endif