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
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
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
virtual ~TGShapedFrame()
Destructor.
TGShapedFrame(const TGShapedFrame &)=delete
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)
set background 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".
const char * Data() const
Attributes that can be used when creating or changing a window.
Bool_t fOverrideRedirect
boolean value for override-redirect
Mask_t fMask
bit mask specifying which fields are valid
Bool_t fSaveUnder
should bits under be saved (popups)?