32#include "RConfigure.h"
49 0x55, 0xaa, 0x55, 0xaa,
50 0x55, 0xaa, 0x55, 0xaa
65 TString default_font =
gEnv->
GetValue(
"Gui.DefaultFont",
"-*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1");
66 TString menu_font =
gEnv->
GetValue(
"Gui.MenuFont",
"-*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1");
67 TString menu_hi_font =
gEnv->
GetValue(
"Gui.MenuHiFont",
"-*-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-1");
68 TString doc_fixed_font =
gEnv->
GetValue(
"Gui.DocFixedFont",
"-*-courier-medium-r-*-*-12-*-*-*-*-*-iso8859-1");
69 TString doc_prop_font =
gEnv->
GetValue(
"Gui.DocPropFont",
"-*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1");
70 TString icon_font =
gEnv->
GetValue(
"Gui.IconFont",
"-*-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1");
71 TString status_font =
gEnv->
GetValue(
"Gui.StatusFont",
"-*-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1");
95 TString mime_file =
".root.mimes";
101 mime_file =
"root.mimes";
147 if (!framebgpixmap.
IsNull())
149 if (!docbgpixmap.
IsNull())
const Mask_t kGCBackground
const Mask_t kGCForeground
const Mask_t kGCSubwindowMode
const Mask_t kGCLineWidth
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
const Mask_t kGCFillStyle
const Mask_t kGCGraphicsExposures
static unsigned char gray_bits[]
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char forecolor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char backcolor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t gval
R__EXTERN TSystem * gSystem
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t GetColorByName(const char *name, Pixel_t &pixel) const
Get a color by name.
Pixel_t GetHilite(Pixel_t base_color) const
Return pixel value of hilite color based on base_color.
Pixel_t GetShadow(Pixel_t base_color) const
Return pixel value of shadow color based on base_color.
Provides a pool of fonts.
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get the specified font.
FontH_t GetFontHandle() const
TGGC * GetGC(GCValues_t *values, Bool_t rw=kFALSE)
Get the best matching graphics context depending on values.
This class handles mime types, used by browsers to map file types to applications and icons.
TGClient * fClient
Connection to display server.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
This class implements a pool for the default GUI resource set, like GC's, colors, fonts,...
TGFont * fDocFixedFont
document fixed font
TGFont * fDefaultFont
default font
Pixel_t fDocForeColor
default document foreground color
Pixel_t fForeColor
default foreground color
Pixel_t fTipBackColor
default tip background color
Pixel_t fTipForeColor
default tip foreground color
Cursor_t fWaitCursor
wait cursor
virtual ~TGResourcePool()
Cleanup the resource pool...
Pixel_t fWhite
white color index
TGFont * fStatusFont
status bar font
TGGC * fHiliteGC
frame hilite gc
TGGC * fShadowGC
frame shadow gc
Pixel_t fHighLightColor
highlight color
const TGPicture * fDefaultBackPicture
default background picture
TGPicturePool * fPicturePool
picture pool manager
Pixel_t fBackColor
default background color
Cursor_t fTextCursor
text cursor
TGGC * fSelbgndGC
selection background gc
TGFont * fDocPropFont
document proportional font
TGGC * fFocusGC
frame focus gc
TGFont * fIconFont
icon font
TGFontPool * fFontPool
font pool manager
TGMimeTypes * fMimeTypeList
list of mime types
Cursor_t fGrabCursor
grab cursor
TGGC * fDocbgndGC
document background gc
Pixel_t fDocBackColor
default document background color
TGFont * fMenuFont
menu font
Pixmap_t fCheckered
checkered pixmap
TGFont * fMenuHiFont
menu highlight font
TGResourcePool(TGClient *client)
Create the global GUI resource pool manager.
TGGCPool * fGCPool
graphics drawing context pool manager
Pixel_t fBlack
black color index
Atom_t fClipboardAtom
handle to clipboard
Pixel_t fSelForeColor
default selection foreground color
Pixel_t fShadow
default shadow color
Pixmap_t fCheckeredBitmap
checkered bitmap
Cursor_t fDefaultCursor
default cursor
Colormap_t fDefaultColormap
default colormap
const TGPicture * fDefaultDocBackPicture
default document background picture
TGGC * fSelGC
selection gc
Pixel_t fHilite
default highlight color
Pixel_t fSelBackColor
default selection background color
TGGC * fBckgndGC
frame background gc
static const TString & GetIconPath()
Get the icon path in the installation. Static utility function.
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
const char * Data() const
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual const char * PrependPathName(const char *dir, TString &name)
Concatenate a directory and a file name.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual const char * HomeDirectory(const char *userName=nullptr)
Return the user's home directory.
Graphics context structure.