Warning, file /include/root/TGResourcePool.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGResourcePool
0013 #define ROOT_TGResourcePool
0014
0015
0016 #include "TGObject.h"
0017
0018 class TGClient;
0019 class TGFontPool;
0020 class TGFont;
0021 class TGGCPool;
0022 class TGGC;
0023 class TGPicturePool;
0024 class TGPicture;
0025 class TGMimeTypes;
0026
0027
0028 class TGResourcePool : public TGObject {
0029
0030 private:
0031 Pixel_t fBackColor;
0032 Pixel_t fForeColor;
0033 Pixel_t fHilite;
0034 Pixel_t fShadow;
0035 Pixel_t fHighLightColor;
0036 Pixel_t fSelBackColor;
0037 Pixel_t fSelForeColor;
0038 Pixel_t fDocBackColor;
0039 Pixel_t fDocForeColor;
0040 Pixel_t fTipBackColor;
0041 Pixel_t fTipForeColor;
0042 Pixel_t fWhite;
0043 Pixel_t fBlack;
0044
0045 TGFontPool *fFontPool;
0046
0047 TGFont *fDefaultFont;
0048 TGFont *fMenuFont;
0049 TGFont *fMenuHiFont;
0050 TGFont *fDocFixedFont;
0051 TGFont *fDocPropFont;
0052 TGFont *fIconFont;
0053 TGFont *fStatusFont;
0054
0055 TGPicturePool *fPicturePool;
0056
0057 const TGPicture *fDefaultBackPicture;
0058 const TGPicture *fDefaultDocBackPicture;
0059
0060 TGGCPool *fGCPool;
0061
0062 TGGC *fWhiteGC;
0063 TGGC *fBlackGC;
0064 TGGC *fFrameGC;
0065 TGGC *fBckgndGC;
0066 TGGC *fHiliteGC;
0067 TGGC *fShadowGC;
0068 TGGC *fFocusGC;
0069 TGGC *fDocGC;
0070 TGGC *fDocbgndGC;
0071 TGGC *fSelGC;
0072 TGGC *fSelbgndGC;
0073 TGGC *fTipGC;
0074
0075 Pixmap_t fCheckered;
0076 Pixmap_t fCheckeredBitmap;
0077
0078 Cursor_t fDefaultCursor;
0079 Cursor_t fGrabCursor;
0080 Cursor_t fTextCursor;
0081 Cursor_t fWaitCursor;
0082
0083 Colormap_t fDefaultColormap;
0084
0085 Atom_t fClipboardAtom;
0086
0087 TGMimeTypes *fMimeTypeList;
0088
0089 public:
0090 TGResourcePool(TGClient *client);
0091 ~TGResourcePool() override;
0092
0093 TGGCPool *GetGCPool() const { return fGCPool; }
0094 TGFontPool *GetFontPool() const { return fFontPool; }
0095 TGPicturePool *GetPicturePool() const { return fPicturePool; }
0096
0097
0098
0099
0100
0101 Pixel_t GetWhiteColor() const { return fWhite; }
0102 Pixel_t GetBlackColor() const { return fBlack; }
0103
0104 Pixel_t GetFrameFgndColor() const { return fForeColor; }
0105 Pixel_t GetFrameBgndColor() const { return fBackColor; }
0106 Pixel_t GetFrameHiliteColor() const { return fHilite; }
0107 Pixel_t GetFrameShadowColor() const { return fShadow; }
0108
0109 Pixel_t GetHighLightColor() const { return fHighLightColor; }
0110
0111 Pixel_t GetDocumentFgndColor() const { return fDocForeColor; }
0112 Pixel_t GetDocumentBgndColor() const { return fDocBackColor; }
0113
0114 Pixel_t GetSelectedFgndColor() const { return fSelForeColor; }
0115 Pixel_t GetSelectedBgndColor() const { return fSelBackColor; }
0116
0117 Pixel_t GetTipFgndColor() const { return fTipForeColor; }
0118 Pixel_t GetTipBgndColor() const { return fTipBackColor; }
0119
0120
0121
0122 const TGFont *GetDefaultFont() const { return fDefaultFont; }
0123 const TGFont *GetMenuFont() const { return fMenuFont; }
0124 const TGFont *GetMenuHiliteFont() const { return fMenuHiFont; }
0125 const TGFont *GetDocumentFixedFont() const { return fDocFixedFont; }
0126 const TGFont *GetDocumentPropFont() const { return fDocPropFont; }
0127 const TGFont *GetIconFont() const { return fIconFont; }
0128 const TGFont *GetStatusFont() const { return fStatusFont; }
0129
0130
0131
0132 const TGGC *GetWhiteGC() const { return fWhiteGC; }
0133 const TGGC *GetBlackGC() const { return fBlackGC; }
0134
0135 const TGGC *GetFrameGC() const { return fFrameGC; }
0136 const TGGC *GetFrameBckgndGC() const { return fBckgndGC; }
0137 const TGGC *GetFrameHiliteGC() const { return fHiliteGC; }
0138 const TGGC *GetFrameShadowGC() const { return fShadowGC; }
0139 const TGGC *GetFocusHiliteGC() const { return fFocusGC; }
0140
0141 const TGGC *GetDocumentGC() const { return fDocGC; }
0142 const TGGC *GetDocumentBckgndGC() const { return fDocbgndGC; }
0143
0144 const TGGC *GetSelectedGC() const { return fSelGC; }
0145 const TGGC *GetSelectedBckgndGC() const { return fSelbgndGC; }
0146
0147 const TGGC *GetTipGC() const { return fTipGC; }
0148
0149
0150
0151 Pixmap_t GetCheckeredPixmap() const { return fCheckered; }
0152 Pixmap_t GetCheckeredBitmap() const { return fCheckeredBitmap; }
0153
0154 const TGPicture *GetFrameBckgndPicture() const
0155 { return fDefaultBackPicture; }
0156 const TGPicture *GetDocumentBckgndPicture() const
0157 { return fDefaultDocBackPicture; }
0158
0159
0160
0161 Cursor_t GetDefaultCursor() const { return fDefaultCursor; }
0162 Cursor_t GetGrabCursor() const { return fGrabCursor; }
0163 Cursor_t GetTextCursor() const { return fTextCursor; }
0164 Cursor_t GetWaitCursor() const { return fWaitCursor; }
0165
0166
0167
0168 Colormap_t GetDefaultColormap() const { return fDefaultColormap; }
0169
0170
0171
0172 TGMimeTypes *GetMimeTypes() const { return fMimeTypeList; }
0173
0174 Atom_t GetClipboard() const { return fClipboardAtom; }
0175
0176 ClassDefOverride(TGResourcePool,0)
0177 };
0178
0179 #endif