266 static TGGC *gc1 = 0;
267 static TGGC *gc2 = 0;
271 gc1 =
new TGGC(*gc1);
278 gc2 =
new TGGC(*gc2);
463 parFont.
Form(
"%s::GetDefaultFontStruct()",IsA()->
GetName());
464 parGC.
Form(
"%s::GetDefaultGC()()",IsA()->
GetName());
470 parFont.
Form(
"ufont->GetFontStruct()");
476 parGC.
Form(
"uGC->GetGC()");
488 <<
"," << quote << label << quote;
493 out <<
");" << std::endl;
495 out <<
"," << parGC.
Data() <<
");" << std::endl;
498 out <<
"," << parGC.
Data() <<
"," << parFont.
Data() <<
");" << std::endl;
506 if (option && strstr(option,
"keep_names"))
507 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
510 out <<
" " <<
GetName() <<
"->Disable();" << std::endl;
const Mask_t kWABitGravity
const Mask_t kWAWinGravity
float type_of_call hi(const int &, const int &)
The color creation and management class.
ULong_t GetPixel() const
Return pixel value corresponding to this color.
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
const TGResourcePool * GetResourcePool() const
void FreeFont(const TGFont *font)
Free a font.
TGGCPool * GetGCPool() const
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
TGFontPool * GetFontPool() const
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get the specified font.
void FreeFont(const TGFont *font)
Free font. If ref count is 0 delete font.
TGFont * FindFont(FontStruct_t font) const
Find font based on its font struct. Returns 0 if font is not found.
FontStruct_t GetFontStruct() const
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save the used font as a C++ statement(s) on output stream out.
TGTextLayout * ComputeTextLayout(const char *string, Int_t numChars, Int_t wrapLength, Int_t justify, Int_t flags, UInt_t *width, UInt_t *height) const
Computes the amount of screen space needed to display a multi-line, justified string of text.
FontH_t GetFontHandle() const
virtual void DoRedraw()
Redraw the frame.
static Pixel_t GetWhitePixel()
Get white pixel value.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static const TGGC & GetShadowGC()
Get shadow color graphics context.
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().
TGGC * GetGC(GCValues_t *values, Bool_t rw=kFALSE)
Get the best matching graphics context depending on values.
void FreeGC(const TGGC *gc)
Delete graphics context if it is not used anymore.
TGGC * FindGC(const TGGC *gc)
Find graphics context. Returns 0 in case gc is not found.
void SavePrimitive(std::ostream &out, Option_t *option="")
Save graphics context info as a C++ statement(s) on output stream out.
void SetFont(FontH_t v)
Set font.
Pixel_t GetForeground() const
void SetForeground(Pixel_t v)
Set foreground color.
const GCValues_t * GetAttributes() const
virtual ~TGLabel()
Delete label.
void SetTextJustify(Int_t tmode)
Set text justification.
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique.
virtual void DrawText(GContext_t gc, Int_t x, Int_t y)
Draw text at position (x, y).
static const TGGC * fgDefaultGC
Int_t GetTextJustify() const
virtual void Layout()
Layout label.
virtual void DoRedraw()
Redraw label widget.
virtual void SetText(TGString *newText)
Set new text in label.
static const TGGC & GetDefaultGC()
Static returning label default graphics context.
static FontStruct_t GetDefaultFontStruct()
Static returning label default font struct.
static const TGFont * fgDefaultFont
virtual TGDimension GetDefaultSize() const
Return default size.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a label widget as a C++ statement(s) on output stream out.
virtual void SetTextFont(TGFont *font, Bool_t global=kFALSE)
Changes text font specified by pointer to TGFont object.
const TGString * GetText() const
TGFontPool * GetFontPool() const
TGGCPool * GetGCPool() const
const char * GetString() const
void DrawText(Drawable_t dst, GContext_t gc, Int_t x, Int_t y, Int_t firstChar, Int_t lastChar) const
Use the information in the TGTextLayout object to display a multi-line, justified string of text.
virtual void SetWindowName(const char *name=0)
Set window name.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.