Home
last modified time | relevance | path

Searched refs:maxW (Results 1 - 3 of 3) sorted by relevance

/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp737 int32_t maxW = static_cast<int32_t>(limits_.maxWidth_); in CalcFixedAspectRatioTranslateLimits() local
746 if (SessionUtils::ToLayoutWidth(maxW, vpr_) < SessionUtils::ToLayoutHeight(maxH, vpr_) * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
747 maxH = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(maxW, vpr_) * aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
749 maxW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(maxH, vpr_) / aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
757 if (maxW < maxH * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
758 maxH = maxW * aspectRatio_; in CalcFixedAspectRatioTranslateLimits()
760 maxW = maxH / aspectRatio_; in CalcFixedAspectRatioTranslateLimits()
766 minTranX_ = static_cast<int32_t>(moveDragProperty_.originalRect_.width_) - maxW; in CalcFixedAspectRatioTranslateLimits()
770 maxTranX_ = maxW - static_cast<int32_t>(moveDragProperty_.originalRect_.width_); in CalcFixedAspectRatioTranslateLimits()
H A Dscene_session.cpp2227 int32_t maxW; in FixRectByAspectRatio() local
2231 minW, maxW, minH, maxH); in FixRectByAspectRatio()
2233 rect.width_ = std::min(maxW, static_cast<int32_t>(rect.width_)); in FixRectByAspectRatio()
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_decoration_painter.cpp2417 float maxW = std::max(std::max(leftW, topW), std::max(rightW, bottomW)); in PaintBorder() local
2437 paint.setStrokeWidth(maxW); in PaintBorder()
2439 paint.setStrokeWidth(maxW); in PaintBorder()
2476 paint.setStrokeWidth(maxW); in PaintBorder()
2478 paint.setStrokeWidth(maxW); in PaintBorder()
2516 paint.setStrokeWidth(maxW); in PaintBorder()
2554 paint.setStrokeWidth(maxW); in PaintBorder()
2592 pen.SetWidth(maxW); in PaintBorder()
2594 pen.SetWidth(maxW); in PaintBorder()
2635 pen.SetWidth(maxW); in PaintBorder()
[all...]

Completed in 15 milliseconds