Home
last modified time | relevance | path

Searched refs:curRatio (Results 1 - 4 of 4) sorted by relevance

/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy_cascade.cpp346 float curRatio = static_cast<float>(newRect.width_) / static_cast<float>(newRect.height_); in ComputeRectByAspectRatio() local
347 if (std::abs(curRatio - aspectRatio) > 0.0001f) { in ComputeRectByAspectRatio()
780 float curRatio = static_cast<float>(winRect.width_) / static_cast<float>(winRect.height_); in FixWindowSizeByRatioIfDragBeyondLimitRegion() local
781 if (sizeLimits.minRatio_ <= curRatio && curRatio <= sizeLimits.maxRatio_) { in FixWindowSizeByRatioIfDragBeyondLimitRegion()
782 WLOGFD("window ratio is satisfied with limit ratio, curRatio: %{public}f", curRatio); in FixWindowSizeByRatioIfDragBeyondLimitRegion()
805 float newRatio = curRatio < sizeLimits.minRatio_ ? sizeLimits.minRatio_ : sizeLimits.maxRatio_; in FixWindowSizeByRatioIfDragBeyondLimitRegion()
856 float curRatio = static_cast<float>(winRect.width_) / static_cast<float>(winRect.height_); local
859 (sizeLimits.minRatio_ <= curRatio
[all...]
/foundation/window/window_manager/utils/include/
H A Dwindow_helper.h511 auto curRatio = static_cast<float>(rect.width_) / static_cast<float>(rect.height_); in IsRectSatisfiedWithSizeLimits() local
514 sizeLimits.minRatio_ <= curRatio && curRatio <= sizeLimits.maxRatio_) { in IsRectSatisfiedWithSizeLimits()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp648 float curRatio = static_cast<float>(targetRect.width_) / static_cast<float>(targetRect.height_); in CalcFreeformTargetRect() local
649 if (!MathHelper::GreatNotEqual(limits_.minRatio_, curRatio) && in CalcFreeformTargetRect()
650 !MathHelper::GreatNotEqual(curRatio, limits_.maxRatio_)) { in CalcFreeformTargetRect()
653 float newRatio = MathHelper::LessNotEqual(curRatio, limits_.minRatio_) ? limits_.minRatio_ : limits_.maxRatio_; in CalcFreeformTargetRect()
/foundation/window/window_manager/wm/src/
H A Dwindow_scene_session_impl.cpp1596 float curRatio = static_cast<float>(width) / static_cast<float>(height); in UpdateFloatingWindowSizeBySizeLimits() local
1599 (!MathHelper::GreatNotEqual(sizeLimits.minRatio_, curRatio) && in UpdateFloatingWindowSizeBySizeLimits()
1600 !MathHelper::GreatNotEqual(curRatio, sizeLimits.maxRatio_))) { in UpdateFloatingWindowSizeBySizeLimits()
1604 float newRatio = curRatio < sizeLimits.minRatio_ ? sizeLimits.minRatio_ : sizeLimits.maxRatio_; in UpdateFloatingWindowSizeBySizeLimits()

Completed in 12 milliseconds