blob: e25df0a468b3280997f209e18791965011712e17 [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2014 The PDFium Authors
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -07002// 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_CARETTP_H_
8#define XFA_FWL_THEME_CFWL_CARETTP_H_
9
kumarashishg826308d2023-06-23 13:21:22 +000010#include "fxjs/gc/heap.h"
11#include "xfa/fwl/cfwl_themepart.h"
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070012#include "xfa/fwl/theme/cfwl_widgettp.h"
13
Haibo Huang49cc9302020-04-27 16:14:24 -070014class CFWL_CaretTP final : public CFWL_WidgetTP {
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070015 public:
kumarashishg826308d2023-06-23 13:21:22 +000016 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070017 ~CFWL_CaretTP() override;
18
19 // CFWL_WidgetTP
Haibo Huang49cc9302020-04-27 16:14:24 -070020 void DrawBackground(const CFWL_ThemeBackground& pParams) override;
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070021
Haibo Huang49cc9302020-04-27 16:14:24 -070022 private:
kumarashishg826308d2023-06-23 13:21:22 +000023 CFWL_CaretTP();
24
25 void DrawCaretBK(CFGAS_GEGraphics* pGraphics,
26 Mask<CFWL_PartState> dwStates,
Haibo Huang49cc9302020-04-27 16:14:24 -070027 const CFX_RectF& rect,
28 const CFX_Matrix& matrix);
Philip P. Moltmann4d3acf42017-03-20 11:05:52 -070029};
30
31#endif // XFA_FWL_THEME_CFWL_CARETTP_H_