Home
last modified time | relevance | path

Searched refs:ToLayoutHeight (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/
H A Dsession_utils.h31 inline float ToLayoutHeight(const int32_t winHeight, float vpr) in ToLayoutHeight() function
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp517 …if (SessionUtils::ToLayoutWidth(minW, vpr_) < SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRat… in CalcFixedAspectRatioTranslateLimits()
518 … minW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
522 …if (SessionUtils::ToLayoutWidth(maxW, vpr_) < SessionUtils::ToLayoutHeight(maxH, vpr_) * aspectRat… in CalcFixedAspectRatioTranslateLimits()
525 … maxW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(maxH, vpr_) / aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits()
H A Dscene_session.cpp904 SessionUtils::ToLayoutHeight(limits.maxHeight_, vpr))) { in CheckAspectRatioValid()
909 SessionUtils::ToLayoutHeight(limits.minHeight_, vpr))) { in CheckAspectRatioValid()
2480 rect.height_ = SessionUtils::ToLayoutHeight(rect.height_, vpr); in FixRectByLimits()
2483 limits.minHeight_ = SessionUtils::ToLayoutHeight(limits.minHeight_, vpr); in FixRectByLimits()
2484 limits.maxHeight_ = SessionUtils::ToLayoutHeight(limits.maxHeight_, vpr); in FixRectByLimits()
2534 SessionUtils::ToLayoutHeight(rect.height_, vpr) * aspectRatio_) { in FixRectByAspectRatio()
2535 …rect.width_ = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(rect.height_, vpr)* aspectRati… in FixRectByAspectRatio()