Searched refs:ToLayoutHeight (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/ |
H A D | session_utils.h | 31 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 D | move_drag_controller.cpp | 517 …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 D | scene_session.cpp | 904 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()
|