#ifndef __TGMrbLayout_h__
#define __TGMrbLayout_h__
#include "Rtypes.h"
#include "GuiTypes.h"
#include "TGGC.h"
#include "TGFont.h"
#include "TGResourcePool.h"
#include "TGLayout.h"
#include "TSystem.h"
class TGMrbLayout : public TObject {
public:
TGMrbLayout(const Char_t * Font = "Gui.NormalFont",
const Char_t * Foreground = "black",
const Char_t * Background = "white",
TGLayoutHints * Hints = NULL);
TGMrbLayout(const Char_t * Font, Pixel_t Foreground, Pixel_t Background, TGLayoutHints * Hints = NULL);
~TGMrbLayout() {};
inline GContext_t GC() const { return(fGC.GetGC()); };
Bool_t SetFont(const Char_t * Font);
inline FontStruct_t Font() const { return(fFont->GetFontStruct()); };
inline FontH_t FontHandle() const { return(fFont->GetFontHandle()); };
Bool_t SetFG(const Char_t * Foreground);
inline Pixel_t FG() const { return(fGC.GetForeground()); };
Bool_t SetBG(const Char_t * Background);
inline Pixel_t BG() const { return(fGC.GetBackground()); };
inline void SetLH(TGLayoutHints * Hints) { fLayoutHints = Hints; };
inline TGLayoutHints * LH() const { return(fLayoutHints); };
inline void Help() { gSystem->Exec(Form("mrbHelp %s", this->ClassName())); };
protected:
void CreateGC(TGFont * Font, Pixel_t Foreground, Pixel_t Background, TGLayoutHints * Hints = NULL);
protected:
TGGC fGC;
TGFont * fFont;
TGLayoutHints * fLayoutHints;
ClassDef(TGMrbLayout, 0)
};
#endif