xref: /aosp_15_r20/external/pdfium/xfa/fwl/theme/cfwl_listboxtp.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2014 The PDFium Authors
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_THEME_CFWL_LISTBOXTP_H_
8 #define XFA_FWL_THEME_CFWL_LISTBOXTP_H_
9 
10 #include "fxjs/gc/heap.h"
11 #include "xfa/fwl/cfwl_themepart.h"
12 #include "xfa/fwl/theme/cfwl_widgettp.h"
13 
14 class CFWL_ListBoxTP final : public CFWL_WidgetTP {
15  public:
16   CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
17   ~CFWL_ListBoxTP() override;
18 
19   // CFWL_WidgetTP:
20   void DrawBackground(const CFWL_ThemeBackground& pParams) override;
21 
22  private:
23   CFWL_ListBoxTP();
24 
25   void DrawListBoxItem(CFGAS_GEGraphics* pGraphics,
26                        Mask<CFWL_PartState> dwStates,
27                        const CFX_RectF& rtItem,
28                        const CFX_RectF* pData,
29                        const CFX_Matrix& matrix);
30 };
31 
32 #endif  // XFA_FWL_THEME_CFWL_LISTBOXTP_H_
33