//------------------------------------------------------------------------------ // gso_Panel class -- // (C) Piero Giubilato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gso_Panel.h" // [Author] "Piero Giubilato" // [Version] "0.5" // [Modified by] "Piero Giubilato" // [Last revision] "22 Jan 2009" // [Language] "C++" // [Compiler] "Visual C++ 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gso_Panel class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gso_Panel_H #define gso_Panel_H // Root components #include #include // Application components #include "gso_Frame.h" // Palette object class gso_Panel: public gso_Frame { private: // The root components Pixmap_t frame_PxMap; // The paletted pixel map // Appearance UInt_t pnl_Color; UInt_t bck_Color; UInt_t brd_Size; Float_t brd_Thick; // Drawing void Draw(); // Creates the panel image protected: void DoRedraw(); // Put the palette image on screen public: // Default methods gso_Panel(const TGWindow* window, UInt_t width = 1, UInt_t height = 1, UInt_t bvl_Size = 0, Float_t bvl_Thick = 1, UInt_t foreColor = 0x777777, UInt_t backColor = 0); ~gso_Panel(); // gso_Frame overloaded methods void MoveResize(Int_t left, Int_t top, UInt_t width, UInt_t height); void Resize(UInt_t width, UInt_t height); void Resize(TGDimension size) {Resize(size.fWidth, size.fHeight);}; void SetColor(Pixel_t fore, Pixel_t back); // Cint preprocessor token ClassDef(gso_Panel, 1) }; // End of Overloading check #endif