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

GPanel.h

00001 /*
00002 **  FILE:           GPanel.h
00003 **  AUTHOR:         Matthew Allen
00004 **  DATE:           29/8/99
00005 **  DESCRIPTION:    Scribe Mail Object and UI
00006 **
00007 **  Copyright (C) 1998, Matthew Allen
00008 **      fret@memecode.com
00009 */
00010 
00011 #ifndef __GPANEL_H
00012 #define __GPANEL_H
00013 
00014 class LgiClass GPanel : public GLayout
00015 {
00016 protected:
00017     bool IsOpen;
00018     int Align;
00019     int ClosedSize;
00020     int OpenSize;
00021     GRect ThumbPos;
00022 
00023     void RePour();
00024     void SetChildrenVisibility(bool i);
00025     virtual int CalcWidth();
00026 
00027 public:
00028     GPanel(char *name, int size, bool open = true);
00029     ~GPanel();
00030 
00031     bool Open();
00032     virtual void Open(bool i);
00033     int GetClosedSize();
00034     void SetClosedSize(int i);
00035     int GetOpenSize();
00036     void SetOpenSize(int i);
00037     int Alignment(); // GV_EDGE_TOP | GV_EDGE_RIGHT | GV_EDGE_BOTTOM | GV_EDGE_LEFT
00038     void Alignment(int i);
00039 
00040     bool Attach(GView *Wnd);
00041     bool Pour(GRegion &r);
00042     int OnNotify(GView *Ctrl, int Flags);
00043     void OnPaint(GSurface *pDC);
00044     void OnMouseClick(GMouse &m);
00045 };
00046 
00047 #endif

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