Home
last modified time | relevance | path

Searched refs:minW (Results 1 - 2 of 2) sorted by relevance

/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp736 int32_t minW = static_cast<int32_t>(limits_.minWidth_); in CalcFixedAspectRatioTranslateLimits() local
741 if (SessionUtils::ToLayoutWidth(minW, vpr_) < SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
742 minW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
744 minH = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(minW, vpr_) / aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
752 if (minW < minH * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
753 minW = minH * aspectRatio_; in CalcFixedAspectRatioTranslateLimits()
755 minH = minW / aspectRatio_; in CalcFixedAspectRatioTranslateLimits()
767 maxTranX_ = static_cast<int32_t>(moveDragProperty_.originalRect_.width_) - minW; in CalcFixedAspectRatioTranslateLimits()
769 minTranX_ = minW - static_cast<int32_t>(moveDragProperty_.originalRect_.width_); in CalcFixedAspectRatioTranslateLimits()
H A Dscene_session.cpp2226 int32_t minW; in FixRectByAspectRatio() local
2231 minW, maxW, minH, maxH); in FixRectByAspectRatio()
2232 rect.width_ = std::max(minW, static_cast<int32_t>(rect.width_)); in FixRectByAspectRatio()

Completed in 11 milliseconds