7#include "xfa/fwl/theme/cfwl_monthcalendartp.h"
9#include "xfa/fde/cfde_textout.h"
10#include "xfa/fgas/graphics/cfgas_gecolor.h"
11#include "xfa/fgas/graphics/cfgas_gegraphics.h"
12#include "xfa/fgas/graphics/cfgas_gepath.h"
13#include "xfa/fwl/cfwl_monthcalendar.h"
14#include "xfa/fwl/cfwl_themebackground.h"
15#include "xfa/fwl/cfwl_themetext.h"
16#include "xfa/fwl/cfwl_widget.h"
17#include "xfa/fwl/ifwl_themeprovider.h"
26constexpr FX_ARGB kDatesSelectedBackgroundColor =
33CFWL_MonthCalendarTP::CFWL_MonthCalendarTP() =
default;
37void CFWL_MonthCalendarTP::
DrawBackground(
const CFWL_ThemeBackground& pParams) {
64 DrawHSeparator(pParams, pParams
.m_matrix);
72 DrawTodayCircle(pParams, pParams
.m_matrix);
76 DrawDatesInCircle(pParams, pParams
.m_matrix);
80 DrawWeekNumSep(pParams, pParams
.m_matrix);
88void CFWL_MonthCalendarTP::
DrawText(
const CFWL_ThemeText& pParams) {
94 m_pTextOut->SetTextColor(0xFFFFFFFF);
96 m_pTextOut->SetTextColor(kCaptionColor);
98 m_pTextOut->SetTextColor(0xFF000000);
103void CFWL_MonthCalendarTP::DrawTotalBK(
const CFWL_ThemeBackground& pParams,
115void CFWL_MonthCalendarTP::DrawHeadBk(
const CFWL_ThemeBackground& pParams,
127void CFWL_MonthCalendarTP::DrawLButton(
const CFWL_ThemeBackground& pParams,
162void CFWL_MonthCalendarTP::DrawRButton(
const CFWL_ThemeBackground& pParams,
197void CFWL_MonthCalendarTP::DrawHSeparator(
const CFWL_ThemeBackground& pParams,
209void CFWL_MonthCalendarTP::DrawWeekNumSep(
const CFWL_ThemeBackground& pParams,
221void CFWL_MonthCalendarTP::DrawDatesInBK(
const CFWL_ThemeBackground& pParams,
245void CFWL_MonthCalendarTP::DrawDatesInCircle(
246 const CFWL_ThemeBackground& pParams,
258void CFWL_MonthCalendarTP::DrawTodayCircle(
const CFWL_ThemeBackground& pParams,
CFGAS_GEColor(FX_ARGB argb)
StateRestorer(CFGAS_GEGraphics *graphics)
void FillPath(const CFGAS_GEPath &path, CFX_FillRenderOptions::FillType fill_type, const CFX_Matrix &matrix)
void SetStrokeColor(const CFGAS_GEColor &color)
void SetFillColor(const CFGAS_GEColor &color)
void StrokePath(const CFGAS_GEPath &path, const CFX_Matrix &matrix)
void MoveTo(const CFX_PointF &point)
void AddRectangle(float left, float top, float width, float height)
void LineTo(const CFX_PointF &point)
CFX_RectF(const CFX_RectF &other)=default
~CFWL_MonthCalendarTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
void DrawText(const CFWL_ThemeText &pParams) override
CFGAS_GEGraphics * GetGraphics() const
CFWL_Widget * GetWidget() const
FWLTHEME_STATE GetThemeState() const
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)