12 #ifndef ROOT_TGResourcePool
13 #define ROOT_TGResourcePool
36 class TGResourcePool :
public TGObject {
43 Pixel_t fHighLightColor;
44 Pixel_t fSelBackColor;
45 Pixel_t fSelForeColor;
46 Pixel_t fDocBackColor;
47 Pixel_t fDocForeColor;
48 Pixel_t fTipBackColor;
49 Pixel_t fTipForeColor;
53 TGFontPool *fFontPool;
58 TGFont *fDocFixedFont;
63 TGPicturePool *fPicturePool;
65 const TGPicture *fDefaultBackPicture;
66 const TGPicture *fDefaultDocBackPicture;
84 Pixmap_t fCheckeredBitmap;
86 Cursor_t fDefaultCursor;
91 Colormap_t fDefaultColormap;
93 Atom_t fClipboardAtom;
95 TGMimeTypes *fMimeTypeList;
98 TGResourcePool(TGClient *client);
99 virtual ~TGResourcePool();
101 TGGCPool *GetGCPool()
const {
return fGCPool; }
102 TGFontPool *GetFontPool()
const {
return fFontPool; }
103 TGPicturePool *GetPicturePool()
const {
return fPicturePool; }
109 Pixel_t GetWhiteColor()
const {
return fWhite; }
110 Pixel_t GetBlackColor()
const {
return fBlack; }
112 Pixel_t GetFrameFgndColor()
const {
return fForeColor; }
113 Pixel_t GetFrameBgndColor()
const {
return fBackColor; }
114 Pixel_t GetFrameHiliteColor()
const {
return fHilite; }
115 Pixel_t GetFrameShadowColor()
const {
return fShadow; }
117 Pixel_t GetHighLightColor()
const {
return fHighLightColor; }
119 Pixel_t GetDocumentFgndColor()
const {
return fDocForeColor; }
120 Pixel_t GetDocumentBgndColor()
const {
return fDocBackColor; }
122 Pixel_t GetSelectedFgndColor()
const {
return fSelForeColor; }
123 Pixel_t GetSelectedBgndColor()
const {
return fSelBackColor; }
125 Pixel_t GetTipFgndColor()
const {
return fTipForeColor; }
126 Pixel_t GetTipBgndColor()
const {
return fTipBackColor; }
130 const TGFont *GetDefaultFont()
const {
return fDefaultFont; }
131 const TGFont *GetMenuFont()
const {
return fMenuFont; }
132 const TGFont *GetMenuHiliteFont()
const {
return fMenuHiFont; }
133 const TGFont *GetDocumentFixedFont()
const {
return fDocFixedFont; }
134 const TGFont *GetDocumentPropFont()
const {
return fDocPropFont; }
135 const TGFont *GetIconFont()
const {
return fIconFont; }
136 const TGFont *GetStatusFont()
const {
return fStatusFont; }
140 const TGGC *GetWhiteGC()
const {
return fWhiteGC; }
141 const TGGC *GetBlackGC()
const {
return fBlackGC; }
143 const TGGC *GetFrameGC()
const {
return fFrameGC; }
144 const TGGC *GetFrameBckgndGC()
const {
return fBckgndGC; }
145 const TGGC *GetFrameHiliteGC()
const {
return fHiliteGC; }
146 const TGGC *GetFrameShadowGC()
const {
return fShadowGC; }
147 const TGGC *GetFocusHiliteGC()
const {
return fFocusGC; }
149 const TGGC *GetDocumentGC()
const {
return fDocGC; }
150 const TGGC *GetDocumentBckgndGC()
const {
return fDocbgndGC; }
152 const TGGC *GetSelectedGC()
const {
return fSelGC; }
153 const TGGC *GetSelectedBckgndGC()
const {
return fSelbgndGC; }
155 const TGGC *GetTipGC()
const {
return fTipGC; }
159 Pixmap_t GetCheckeredPixmap()
const {
return fCheckered; }
160 Pixmap_t GetCheckeredBitmap()
const {
return fCheckeredBitmap; }
162 const TGPicture *GetFrameBckgndPicture()
const
163 {
return fDefaultBackPicture; }
164 const TGPicture *GetDocumentBckgndPicture()
const
165 {
return fDefaultDocBackPicture; }
169 Cursor_t GetDefaultCursor()
const {
return fDefaultCursor; }
170 Cursor_t GetGrabCursor()
const {
return fGrabCursor; }
171 Cursor_t GetTextCursor()
const {
return fTextCursor; }
172 Cursor_t GetWaitCursor()
const {
return fWaitCursor; }
176 Colormap_t GetDefaultColormap()
const {
return fDefaultColormap; }
180 TGMimeTypes *GetMimeTypes()
const {
return fMimeTypeList; }
182 Atom_t GetClipboard()
const {
return fClipboardAtom; }
184 ClassDef(TGResourcePool,0)