diff options
Diffstat (limited to 'xfa/fwl/theme/cfwl_widgettp.h')
-rw-r--r-- | xfa/fwl/theme/cfwl_widgettp.h | 78 |
1 files changed, 77 insertions, 1 deletions
diff --git a/xfa/fwl/theme/cfwl_widgettp.h b/xfa/fwl/theme/cfwl_widgettp.h index 771278ef31..bbb3fd7ee6 100644 --- a/xfa/fwl/theme/cfwl_widgettp.h +++ b/xfa/fwl/theme/cfwl_widgettp.h @@ -16,6 +16,81 @@ #include "xfa/fxgraphics/include/cfx_graphics.h" #include "xfa/fwl/theme/cfwl_utils.h" +enum class CFWL_WidgetCapacity { + None = 0, + + Today, + Mon, + Tue, + Wed, + Thu, + Fri, + Sat, + Sun, + + January, + February, + March, + April, + May, + June, + July, + August, + September, + October, + November, + December, + + BigIcon, + ComboFormHandler, + CXBorder, + CYBorder, + CYCaption, + CYNarrowCaption, + DatesCellHeight, + DatesCellWidth, + EdgeFlat, + EdgeRaised, + EdgeSunken, + Font, + FontSize, + HeaderBtnHeight, + HeaderBtnHMargin, + HeaderBtnVMargin, + HeaderBtnWidth, + HeaderHeight, + HeaderTextHeight, + HeaderTextHMargin, + HeaderTextVMargin, + HeaderTextWidth, + HeaderWidth, + Height, + HSepHeight, + HSepWidth, + LineHeight, + Margin, + ScrollBarWidth, + SepDOffset, + SepX, + SepY, + Size, + SmallIcon, + SpaceAboveBelow, + TextColor, + TextSelColor, + TodayFlagWidth, + TodayHeight, + TodayWidth, + UIMargin, + VSepHeight, + VSepWidth, + WeekHeight, + WeekNumHeight, + WeekNumWidth, + WeekWidth, + Width +}; + class IFWL_Widget; class IFDE_TextOut; class IFX_Font; @@ -41,7 +116,8 @@ class CFWL_WidgetTP { const CFX_Matrix& matrix); virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); virtual FX_BOOL DrawText(CFWL_ThemeText* pParams); - virtual void* GetCapacity(CFWL_ThemePart* pThemePart, uint32_t dwCapacity); + virtual void* GetCapacity(CFWL_ThemePart* pThemePart, + CFWL_WidgetCapacity dwCapacity); virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget); virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart); virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, |