Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GuiBox.h

Go to the documentation of this file.
00001 
00002 //
00003 // $Id: GuiBox.h,v 1.5 2005/07/21 20:26:36 bv Exp $
00004 //
00005 // GuiBox
00006 //
00007 // Package: MIDAD
00008 //
00009 // Provides horizontal and vertical boxes
00010 //
00011 // Contact: bv@bnl.gov
00012 //
00013 // Created on: Thu Nov  8 23:24:15 2001
00014 //
00016 
00017 #ifndef MIDAD_GUIBOX_H
00018 #define MIDAD_GUIBOX_H
00019 
00020 #include <Midad/Gui/GuiBase.h>
00021 #include <TGFrame.h>
00022 
00023 class GuiBox : public TGCompositeFrame, public GuiCompositeFrameBase
00024 {
00025 
00026 public:
00027 
00028     GuiBox(TGWindow& parent, unsigned int option,int width=1,int height=1)
00029         : TGCompositeFrame(&parent,width,height,option|kChildFrame) 
00030         { this->SetLayoutHints(kLHintsExpandX|kLHintsExpandY); }
00031     virtual ~GuiBox() {  }
00032 
00033     ClassDef(GuiBox,0)
00034 };
00035 
00036 class GuiHBox : public GuiBox
00037 {
00038 
00039 public:
00040 
00041     GuiHBox(TGWindow& parent) : GuiBox(parent,kHorizontalFrame)
00042         { this->SetLayoutHints(kLHintsExpandX); }
00043     virtual ~GuiHBox() {    }
00044 };                              // end of class GuiBox
00045 class GuiVBox : public GuiBox
00046 {
00047 
00048 public:
00049 
00050     GuiVBox(TGWindow& parent) : GuiBox(parent,kVerticalFrame)
00051         { this->SetLayoutHints(kLHintsExpandY); }
00052     virtual ~GuiVBox() {  }
00053 };                              // end of class GuiBox
00054 
00055 #endif  // MIDAD_GUIBOX_H

Generated on Mon Feb 15 11:06:47 2010 for loon by  doxygen 1.3.9.1