OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 WeekWidth, | 90 WeekWidth, |
91 Width | 91 Width |
92 }; | 92 }; |
93 | 93 |
94 class CFDE_TextOut; | 94 class CFDE_TextOut; |
95 class CFGAS_GEFont; | 95 class CFGAS_GEFont; |
96 class CFWL_ThemeBackground; | 96 class CFWL_ThemeBackground; |
97 class CFWL_ThemePart; | 97 class CFWL_ThemePart; |
98 class CFWL_ThemeText; | 98 class CFWL_ThemeText; |
99 class CFGAS_FontMgr; | 99 class CFGAS_FontMgr; |
100 class IFWL_Widget; | 100 class CFWL_Widget; |
101 | 101 |
102 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 102 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
103 class CFX_FontSourceEnum_File; | 103 class CFX_FontSourceEnum_File; |
104 #endif | 104 #endif |
105 | 105 |
106 class CFWL_WidgetTP { | 106 class CFWL_WidgetTP { |
107 public: | 107 public: |
108 virtual ~CFWL_WidgetTP(); | 108 virtual ~CFWL_WidgetTP(); |
109 | 109 |
110 virtual void Initialize(); | 110 virtual void Initialize(); |
111 virtual void Finalize(); | 111 virtual void Finalize(); |
112 | 112 |
113 virtual bool IsValidWidget(IFWL_Widget* pWidget); | 113 virtual bool IsValidWidget(CFWL_Widget* pWidget); |
114 | 114 |
115 virtual void DrawBackground(CFWL_ThemeBackground* pParams); | 115 virtual void DrawBackground(CFWL_ThemeBackground* pParams); |
116 virtual void DrawText(CFWL_ThemeText* pParams); | 116 virtual void DrawText(CFWL_ThemeText* pParams); |
117 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, | 117 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, |
118 CFWL_WidgetCapacity dwCapacity); | 118 CFWL_WidgetCapacity dwCapacity); |
119 virtual void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect); | 119 virtual void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect); |
120 | 120 |
121 void SetFont(IFWL_Widget* pWidget, | 121 void SetFont(CFWL_Widget* pWidget, |
122 const FX_WCHAR* strFont, | 122 const FX_WCHAR* strFont, |
123 FX_FLOAT fFontSize, | 123 FX_FLOAT fFontSize, |
124 FX_ARGB rgbFont); | 124 FX_ARGB rgbFont); |
125 void SetFont(IFWL_Widget* pWidget, | 125 void SetFont(CFWL_Widget* pWidget, |
126 CFGAS_GEFont* pFont, | 126 CFGAS_GEFont* pFont, |
127 FX_FLOAT fFontSize, | 127 FX_FLOAT fFontSize, |
128 FX_ARGB rgbFont); | 128 FX_ARGB rgbFont); |
129 CFGAS_GEFont* GetFont(IFWL_Widget* pWidget); | 129 CFGAS_GEFont* GetFont(CFWL_Widget* pWidget); |
130 | 130 |
131 protected: | 131 protected: |
132 CFWL_WidgetTP(); | 132 CFWL_WidgetTP(); |
133 | 133 |
134 void InitTTO(); | 134 void InitTTO(); |
135 void FinalizeTTO(); | 135 void FinalizeTTO(); |
136 | 136 |
137 void DrawEdge(CFX_Graphics* pGraphics, | 137 void DrawEdge(CFX_Graphics* pGraphics, |
138 uint32_t dwStyles, | 138 uint32_t dwStyles, |
139 const CFX_RectF* pRect, | 139 const CFX_RectF* pRect, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 protected: | 255 protected: |
256 CFWL_FontManager(); | 256 CFWL_FontManager(); |
257 virtual ~CFWL_FontManager(); | 257 virtual ~CFWL_FontManager(); |
258 | 258 |
259 static CFWL_FontManager* s_FontManager; | 259 static CFWL_FontManager* s_FontManager; |
260 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 260 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
261 }; | 261 }; |
262 | 262 |
263 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 263 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
OLD | NEW |