42 picName =
"Default.png";
45 Error(
"TGShapedFrame",
"%s not found", picName.
Data());
74 out << std::endl <<
" // shaped frame" << std::endl;
75 out <<
" TGShapedFrame *";
82 out <<
");" << std::endl;
89 if (option && strstr(option,
"keep_names"))
90 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
103 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
105 out <<
");"<< std::endl;
virtual const char * GetName() const
Returns name of object.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual UInt_t GetOptions() const
virtual Bool_t IsValid() const
virtual Pixmap_t GetPixmap()
TGPicturePool * GetPicturePool() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void FreePicture(const TGPicture *pic)
Free picture resource.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a shaped frame as a C++ statement(s) on output stream out.
Pixmap_t GetPicture() const
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxilary protected method used to save subframes.
const Mask_t kWASaveUnder
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual ~TGShapedFrame()
Destructor.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
virtual Pixmap_t GetMask()
const Mask_t kWAOverrideRedirect
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual TGLayoutManager * GetLayoutManager() const
TGShapedFrame(const TGShapedFrame &)
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
const char * Data() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".