//------------------------------------------------------------------------------ // gui_Panel class -- // (C) Piero Giubilato 2008, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Panel.h" // [Author] "Piero Giubilato" // [Version] "1.0" // [Modified by] "Piero Giubilato" // [Last revision] "23 Apr 2009" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gui_Panel class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Panel_H #define gui_Panel_H // Root components #include // Application components #include "gui_Const.h" #include "gui_Object.h" #include "gso_Frame.h" // This class provides a functional layer to TGTextButton class gui_Panel: public gui_Object { private: // Main interface elements gso_Frame* frame; // The border which draws the panel // Special private memebers gui_Panel(const gui_Panel&) {} const gui_Panel& operator=(const gui_Panel&) {return *this;} public: // Special member functions gui_Panel(UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t color, bool fill = false, Float_t thickness = 0.5); gui_Panel(gui_Object* parent, UInt_t left, UInt_t top, UInt_t width, UInt_t height, UInt_t color, bool fill = false, Float_t thickness = 1); ~gui_Panel(); // gui_Object overloaded methods (standard interface) TGCompositeFrame* Window() const; void MoveResize(UInt_t left, UInt_t top, UInt_t width, UInt_t height); void color_Set(UInt_t foreColor, UInt_t backColor); void backColor(UInt_t color); UInt_t backColor() const; UInt_t shadedColor() const; void LowerWindow() const {frame->LowerWindow();}; void RaiseWindow() const {frame->RaiseWindow();}; // Cint preprocessor token ClassDef(gui_Panel, 1) }; // End of Overloading check #endif