Home
last modified time | relevance | path

Searched refs:newLimits (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy.cpp527newLimits.maxRatio_ = static_cast<float>(newLimits.maxWidth_) / static_cast<float>(newLimits.minHe… in UpdateWindowSizeLimits()
528newLimits.minRatio_ = static_cast<float>(newLimits.minWidth_) / static_cast<float>(newLimits.maxHe… in UpdateWindowSizeLimits()
529 …if (newLimits.minRatio_ <= customizedLimits.maxRatio_ && customizedLimits.maxRatio_ <= newLimits.m… in UpdateWindowSizeLimits()
532 …if (newLimits.minRatio_ <= customizedLimits.minRatio_ && customizedLimits.minRatio_ <= newLimits.m… in UpdateWindowSizeLimits()
537 …32_t newMaxWidth = static_cast<uint32_t>(static_cast<float>(newLimits.maxHeight_) * newLimits.maxR… in UpdateWindowSizeLimits()
538 newLimits.maxWidth_ = std::min(newMaxWidth, newLimits.maxWidth_); in UpdateWindowSizeLimits()
539 …32_t newMinWidth = static_cast<uint32_t>(static_cast<float>(newLimits.minHeight_) * newLimits.minR… in UpdateWindowSizeLimits()
540 newLimits.minWidth_ = std::max(newMinWidth, newLimits.minWidth_); in UpdateWindowSizeLimits()
542 newLimits.maxHeight_ = std::min(newMaxHeight, newLimits.maxHeight_); in UpdateWindowSizeLimits()
544 newLimits.minHeight_ = std::max(newMinHeight, newLimits.minHeight_); in UpdateWindowSizeLimits()
[all …]
H A Dwindow_layout_policy_cascade.cpp279 WindowLimits& newLimits) const in CheckAspectRatioBySizeLimits()
284 newLimits = sizeLimits; in CheckAspectRatioBySizeLimits()
291 newLimits.maxWidth_ = sizeLimits.maxWidth_ - winFrameW; in CheckAspectRatioBySizeLimits()
297 …float maxRatio = static_cast<float>(newLimits.maxWidth_) / static_cast<float>(newLimits.minHeight_… in CheckAspectRatioBySizeLimits()
298 …float minRatio = static_cast<float>(newLimits.minWidth_) / static_cast<float>(newLimits.maxHeight_… in CheckAspectRatioBySizeLimits()
305 newLimits.maxWidth_ = std::min(newMaxWidth, newLimits.maxWidth_); in CheckAspectRatioBySizeLimits()
307 newLimits.minWidth_ = std::max(newMinWidth, newLimits.minWidth_); in CheckAspectRatioBySizeLimits()
309 newLimits.maxHeight_ = std::min(newMaxHeight, newLimits.maxHeight_); in CheckAspectRatioBySizeLimits()
311 newLimits.minHeight_ = std::max(newMinHeight, newLimits.minHeight_); in CheckAspectRatioBySizeLimits()
324 WindowLimits newLimits; in ComputeRectByAspectRatio() local
[all …]
/ohos5.0/foundation/window/window_manager/wm/src/
H A Dwindow_scene_session_impl.cpp991 newLimits = systemLimits; in CalculateNewLimitsByLimits()
1020 if (newLimits.minHeight_ != 0) { in CalculateNewLimitsByRatio()
1021 … maxRatio = static_cast<double>(newLimits.maxWidth_) / static_cast<double>(newLimits.minHeight_); in CalculateNewLimitsByRatio()
1023 if (newLimits.maxHeight_ != 0) { in CalculateNewLimitsByRatio()
1024 … minRatio = static_cast<double>(newLimits.minWidth_) / static_cast<double>(newLimits.maxHeight_); in CalculateNewLimitsByRatio()
1039 newLimits.maxWidth_ = std::min(newMaxWidth, newLimits.maxWidth_); in CalculateNewLimitsByRatio()
1044 newLimits.minWidth_ = std::max(newMinWidth, newLimits.minWidth_); in CalculateNewLimitsByRatio()
1050 newLimits.maxHeight_ = std::min(newMaxHeight, newLimits.maxHeight_); in CalculateNewLimitsByRatio()
1056 newLimits.minHeight_ = std::max(newMinHeight, newLimits.minHeight_); in CalculateNewLimitsByRatio()
1062 WindowLimits newLimits; in UpdateWindowSizeLimits() local
[all …]
/ohos5.0/foundation/window/window_manager/wmserver/include/
H A Dwindow_layout_policy_cascade.h68 bool CheckAspectRatioBySizeLimits(const sptr<WindowNode>& node, WindowLimits& newLimits) const;
/ohos5.0/foundation/window/window_manager/wm/include/
H A Dwindow_scene_session_impl.h239 WindowLimits& newLimits, WindowLimits& customizedLimits, float& virtualPixelRatio);
240 void CalculateNewLimitsByRatio(WindowLimits& newLimits, WindowLimits& customizedLimits);
/ohos5.0/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_scene_session_impl_test4.cpp226 WindowLimits newLimits = {0, 0, 0, 0, 0.0, 0.0}; variable
228 windowSceneSessionImpl->CalculateNewLimitsByRatio(newLimits, customizedLimits);
229 newLimits = {500, 500, 500, 500, 0.0, 0.0};
231 windowSceneSessionImpl->CalculateNewLimitsByRatio(newLimits, customizedLimits);
233 windowSceneSessionImpl->CalculateNewLimitsByRatio(newLimits, customizedLimits);