| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_FWL_CORE_CFWL_THEMEPART_H_ | |
| 8 #define XFA_FWL_CORE_CFWL_THEMEPART_H_ | |
| 9 | |
| 10 #include "core/fxcrt/fx_coordinates.h" | |
| 11 #include "core/fxcrt/fx_system.h" | |
| 12 | |
| 13 enum class CFWL_Part { | |
| 14 None = 0, | |
| 15 | |
| 16 BackArrow, | |
| 17 Background, | |
| 18 Border, | |
| 19 Caption, | |
| 20 Check, | |
| 21 CheckBox, | |
| 22 CloseBox, | |
| 23 CombTextLine, | |
| 24 DateInBK, | |
| 25 DateInCircle, | |
| 26 DatesIn, | |
| 27 DatesOut, | |
| 28 DownButton, | |
| 29 DropDownButton, | |
| 30 Edge, | |
| 31 ForeArrow, | |
| 32 HSeparator, | |
| 33 HeadText, | |
| 34 Header, | |
| 35 Icon, | |
| 36 Image, | |
| 37 LBtn, | |
| 38 ListItem, | |
| 39 LowerTrack, | |
| 40 MinimizeBox, | |
| 41 MaximizeBox, | |
| 42 NarrowCaption, | |
| 43 RBtn, | |
| 44 StretchHandler, | |
| 45 Thumb, | |
| 46 ThumbBackArrow, | |
| 47 ThumbForeArrow, | |
| 48 ThumbLowerTrack, | |
| 49 ThumbThumb, | |
| 50 ThumbUpperTrack, | |
| 51 Today, | |
| 52 TodayCircle, | |
| 53 UpButton, | |
| 54 UpperTrack, | |
| 55 VSeparator, | |
| 56 Week, | |
| 57 WeekNum, | |
| 58 WeekNumSep | |
| 59 }; | |
| 60 | |
| 61 enum CFWL_PartState { | |
| 62 CFWL_PartState_Normal = 0, | |
| 63 | |
| 64 CFWL_PartState_Checked = 1 << 1, | |
| 65 CFWL_PartState_Default = 1 << 2, | |
| 66 CFWL_PartState_Disabled = 1 << 3, | |
| 67 CFWL_PartState_Flagged = 1 << 4, | |
| 68 CFWL_PartState_Focused = 1 << 5, | |
| 69 CFWL_PartState_HightLight = 1 << 6, | |
| 70 CFWL_PartState_Hovered = 1 << 7, | |
| 71 CFWL_PartState_Inactive = 1 << 8, | |
| 72 CFWL_PartState_Neutral = 1 << 9, | |
| 73 CFWL_PartState_Pressed = 1 << 10, | |
| 74 CFWL_PartState_ReadOnly = 1 << 11, | |
| 75 CFWL_PartState_LSelected = 1 << 12, | |
| 76 CFWL_PartState_RSelected = 1 << 13, | |
| 77 CFWL_PartState_Selected = 1 << 14 | |
| 78 }; | |
| 79 | |
| 80 class CFWL_Widget; | |
| 81 | |
| 82 class CFWL_ThemePart { | |
| 83 public: | |
| 84 CFWL_ThemePart(); | |
| 85 | |
| 86 CFX_Matrix m_matrix; | |
| 87 CFX_RectF m_rtPart; | |
| 88 CFWL_Widget* m_pWidget; | |
| 89 CFWL_Part m_iPart; | |
| 90 uint32_t m_dwStates; | |
| 91 bool m_bMaximize; | |
| 92 bool m_bStaticBackground; | |
| 93 void* m_pData; | |
| 94 }; | |
| 95 | |
| 96 #endif // XFA_FWL_CORE_CFWL_THEMEPART_H_ | |
| OLD | NEW |