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