Home
last modified time | relevance | path

Searched refs:dayWidth (Results 1 - 11 of 11) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_month_pattern.cpp364 auto dayWidth = paintProperty->GetDayWidth().value_or(theme->GetCalendarTheme().dayWidth).ConvertToPx(); in JudgeArea() local
396 (offset.GetY() > maxHeight) || LessOrEqual(dayHeight, 0.0) || LessOrEqual(dayWidth, 0.0)) { in JudgeArea()
402 int32_t x = offset.GetX() < (dayWidth + colSpace / 2) in JudgeArea()
404 : (offset.GetX() - dayWidth - colSpace / 2) / (dayWidth + colSpace) + 1; in JudgeArea()
724 auto dayWidth = paintProperty->GetDayWidth().value_or(Dimension(0.0f)).ConvertToPx(); in UpdateButtonNodeWithoutTheme() local
728 buttonLayoutProperty->UpdateUserDefinedIdealSize(CalcSize(CalcLength(dayWidth), CalcLength(dayHeight))); in UpdateButtonNodeWithoutTheme()
733 Dimension buttonOffsetX = Dimension(margin_ / 2 + (colSpace + dayWidth) * pos.first); in UpdateButtonNodeWithoutTheme()
757 auto dayWidth in UpdateAccessibilityButtonNode() local
[all...]
H A Dcalendar_data.h33 std::optional<Dimension> dayWidth; member
H A Dcalendar_model_ng.cpp260 if (currentDayStyleData.dayWidth.has_value()) { in SetCurrentDayStyle()
261 currentDayStyle.UpdateDayWidth(currentDayStyleData.dayWidth.value()); in SetCurrentDayStyle()
H A Dcalendar_paint_method.cpp619 ? theme->GetCalendarTheme().dayWidth.ConvertToPx() in SetCalendarTheme()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dcalendar_model_impl.cpp137 if (CurrentDayStyleDataImpl.dayWidth.has_value()) { in SetCurrentDayStyle()
138 theme.dayWidth = CurrentDayStyleDataImpl.dayWidth.value(); in SetCurrentDayStyle()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dcalendar_composed_element.cpp215 Dimension dayWidth = theme.dayWidth; in ConvertThemeToDayStyle() local
230 dayStyle->Put("dayWidth", std::to_string(dayWidth.Value()).c_str()); in ConvertThemeToDayStyle()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_calendar.cpp408 CalcDimension dayWidth; in SetCurrentDayStyle() local
409 if (ParseJsDimensionFp(obj->GetProperty("dayWidth"), dayWidth)) { in SetCurrentDayStyle()
410 currentDayStyleData.dayWidth = dayWidth; in SetCurrentDayStyle()
490 ConvertFromJSValue(obj->GetProperty("dayWidth"), CurrentDayStyleDataImpl.dayWidth); in SetCurrentDayStyle()
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_theme.h101 Dimension dayWidth; member
393 theme->calendarTheme_.dayWidth = pattern->GetAttr<Dimension>("day_width", 48.0_vp); in ParseCalendarThemePattern()
442 theme->cardCalendarTheme_.dayWidth = pattern->GetAttr<Dimension>("card_calendar_day_width", 44.0_vp); in ParseCardCalendarThemePattern()
H A Drosen_render_calendar.cpp173 dayWidth_ = NormalizeToPx(calendarTheme_.dayWidth); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_calendar.cpp236 { "dayWidth", [](const std::string& value, CalendarThemeStructure& theme, in SetSpecializedStyle()
237 const DomCalendar& node) { theme.dayWidth = node.ParseDimension(value); } }, in SetSpecializedStyle()
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar/
H A Dcalendar_test_ng.cpp169 dayStyle.dayWidth = std::make_optional(SIZE_VALUE); in HWTEST_F()

Completed in 14 milliseconds