Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGShapedFrame.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gui:$Id$
0002 // Author: Bertrand Bellenot 23/01/2008
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGShapedFrame
0013 #define ROOT_TGShapedFrame
0014 
0015 #include "TGFrame.h"
0016 
0017 #include "TImage.h"
0018 
0019 #include "TGPicture.h"
0020 
0021 class TGShapedFrame : public TGCompositeFrame {
0022 
0023 private:
0024    TGShapedFrame(const TGShapedFrame&) = delete;
0025    TGShapedFrame& operator=(const TGShapedFrame&) = delete;
0026 
0027 protected:
0028    const TGPicture      *fBgnd;     ///< picture used as background/shape
0029    TImage               *fImage;    ///< image used as background/shape
0030 
0031    void DoRedraw() override {}
0032 
0033 public:
0034    TGShapedFrame(const char *fname = nullptr, const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1, UInt_t options = 0);
0035    ~TGShapedFrame() override;
0036 
0037    const TGPicture   GetPicture() const { return *fBgnd; }
0038    TImage            GetImage() const { return *fImage; }
0039 
0040    void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0041 
0042    ClassDefOverride(TGShapedFrame, 0) // Shaped composite frame
0043 };
0044 
0045 #endif