Home
last modified time | relevance | path

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

/foundation/window/window_manager/window_scene/session/host/include/
H A Dsession_utils.h26 inline float ToLayoutWidth(const int32_t winWidth, float vpr) in ToLayoutWidth() function
/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp741 if (SessionUtils::ToLayoutWidth(minW, vpr_) < SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits()
744 minH = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(minW, vpr_) / aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
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()
H A Dscene_session.cpp696 MathHelper::LessNotEqual(ratio, SessionUtils::ToLayoutWidth(limits.minWidth_, vpr) / in CheckAspectRatioValid()
701 MathHelper::GreatNotEqual(ratio, SessionUtils::ToLayoutWidth(limits.maxWidth_, vpr) / in CheckAspectRatioValid()
2183 rect.width_ = SessionUtils::ToLayoutWidth(rect.width_, vpr); in FixRectByLimits()
2185 limits.minWidth_ = SessionUtils::ToLayoutWidth(limits.minWidth_, vpr); in FixRectByLimits()
2186 limits.maxWidth_ = SessionUtils::ToLayoutWidth(limits.maxWidth_, vpr); in FixRectByLimits()
2237 if (SessionUtils::ToLayoutWidth(rect.width_, vpr) > in FixRectByAspectRatio()
2241 rect.height_ = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(rect.width_, vpr) / aspectRatio_, vpr); in FixRectByAspectRatio()

Completed in 11 milliseconds