47 picName =
"Default.png";
50 Error(
"TGShapedFrame",
"%s not found", picName.
Data());
82 out <<
"\n // shaped frame\n";
83 out <<
" TGShapedFrame *" <<
GetName() <<
" = new TGShapedFrame(" <<
fImage->GetName() <<
"," <<
fParent->GetName()
86 if (option && strstr(option,
"keep_names"))
87 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
95 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
const Mask_t kWAOverrideRedirect
const Mask_t kWASaveUnder
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
const char Option_t
Option string (const char).
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
virtual TGLayoutManager * GetLayoutManager() const
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxiliary protected method used to save subframes.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetOptions() const
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
~TGShapedFrame() override
Destructor.
TGShapedFrame(const TGShapedFrame &)=delete
TImage * fImage
image used as background/shape
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a shaped frame as a C++ statement(s) on output stream out.
const TGPicture * fBgnd
picture used as background/shape
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
const TGWindow * fParent
Parent window.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
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)?