Home
last modified time | relevance | path

Searched refs:sizeLimits (Results 1 - 10 of 10) sorted by relevance

/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy_cascade.cpp281 const auto& sizeLimits = node->GetWindowUpdatedSizeLimits(); in CheckAspectRatioBySizeLimits() local
283 newLimits = sizeLimits; in CheckAspectRatioBySizeLimits()
290 newLimits.maxWidth_ = sizeLimits.maxWidth_ - winFrameW; in CheckAspectRatioBySizeLimits()
291 newLimits.minWidth_ = sizeLimits.minWidth_ - winFrameW; in CheckAspectRatioBySizeLimits()
292 newLimits.maxHeight_ = sizeLimits.maxHeight_ - winFrameH; in CheckAspectRatioBySizeLimits()
293 newLimits.minHeight_ = sizeLimits.minHeight_ - winFrameH; in CheckAspectRatioBySizeLimits()
753 const auto& sizeLimits = node->GetWindowUpdatedSizeLimits(); in UpdateFloatingWindowSizeForStretchableWindow() local
754 float scale = std::min(static_cast<float>(winRect.width_) / sizeLimits.minWidth_, in UpdateFloatingWindowSizeForStretchableWindow()
755 static_cast<float>(winRect.height_) / sizeLimits.minHeight_); in UpdateFloatingWindowSizeForStretchableWindow()
757 WLOGE("invalid sizeLimits"); in UpdateFloatingWindowSizeForStretchableWindow()
772 const auto& sizeLimits = node->GetWindowUpdatedSizeLimits(); FixWindowSizeByRatioIfDragBeyondLimitRegion() local
[all...]
H A Dwindow_node.cpp188 void WindowNode::SetWindowSizeLimits(const WindowLimits& sizeLimits) in SetWindowSizeLimits() argument
190 property_->SetSizeLimits(sizeLimits); in SetWindowSizeLimits()
193 void WindowNode::SetWindowUpdatedSizeLimits(const WindowLimits& sizeLimits) in SetWindowUpdatedSizeLimits() argument
195 property_->SetUpdatedSizeLimits(sizeLimits); in SetWindowUpdatedSizeLimits()
/foundation/window/window_manager/wmserver/test/unittest/
H A Dwindow_layout_policy_test.cpp653 WindowLimits sizeLimits = { 400, 400, 400, 400, 2.0, 2.0 }; // sizeLimits: 400, 400, 400, 400, 2.0, 2.0 in HWTEST_F() local
654 node->SetWindowUpdatedSizeLimits(sizeLimits); in HWTEST_F()
658 sizeLimits.maxWidth_ = 800; // maxWidth: 800 in HWTEST_F()
659 node->SetWindowUpdatedSizeLimits(sizeLimits); in HWTEST_F()
662 sizeLimits.maxWidth_ = 400; // maxWidth: 400 in HWTEST_F()
663 sizeLimits.maxHeight_ = 800; // maxHeight: 800 in HWTEST_F()
664 node->SetWindowUpdatedSizeLimits(sizeLimits); in HWTEST_F()
667 sizeLimits.maxWidth_ = 800; // maxWidth: 800 in HWTEST_F()
668 sizeLimits in HWTEST_F()
699 WindowLimits sizeLimits = { 800, 800, 400, 400, 2.0, 1.0 }; // sizeLimits: 800, 800, 400, 400, 2.0, 1.0 HWTEST_F() local
735 WindowLimits sizeLimits = { 800, 800, 400, 400, 2.0, 1.0 }; // sizeLimits: 800, 800, 400, 400, 2.0, 1.0 HWTEST_F() local
785 WindowLimits sizeLimits = { 800, 800, 400, 400, 2.0, 1.0 }; // sizeLimits: 800, 800, 400, 400, 2.0, 1.0 HWTEST_F() local
824 WindowLimits sizeLimits = { 800, 800, 400, 400, 2.0, 1.0 }; // sizeLimits: 800, 800, 400, 400, 2.0, 1.0 HWTEST_F() local
951 WindowLimits sizeLimits = { 800, 800, 400, 400, 2.0, 1.0 }; // sizeLimits: 800, 800, 400, 400, 2.0, 1.0 HWTEST_F() local
979 WindowLimits sizeLimits = { 800, 400, 800, 400, 2.0, 1.0 }; // sizeLimits: 800, 400, 800, 400, 2.0, 1.0 HWTEST_F() local
[all...]
/foundation/window/window_manager/utils/include/
H A Dwindow_helper.h506 static bool IsRectSatisfiedWithSizeLimits(const Rect& rect, const WindowLimits& sizeLimits) in IsRectSatisfiedWithSizeLimits() argument
512 if (sizeLimits.minWidth_ <= rect.width_ && rect.width_ <= sizeLimits.maxWidth_ && in IsRectSatisfiedWithSizeLimits()
513 sizeLimits.minHeight_ <= rect.height_ && rect.height_ <= sizeLimits.maxHeight_ && in IsRectSatisfiedWithSizeLimits()
514 sizeLimits.minRatio_ <= curRatio && curRatio <= sizeLimits.maxRatio_) { in IsRectSatisfiedWithSizeLimits()
553 static bool IsAspectRatioSatisfiedWithSizeLimits(const WindowLimits& sizeLimits, float ratio, float vpr) in IsAspectRatioSatisfiedWithSizeLimits() argument
558 * sizeLimits is empty, there is no need to check ratio (layout will check), return true directly. in IsAspectRatioSatisfiedWithSizeLimits()
561 if (sizeLimits in IsAspectRatioSatisfiedWithSizeLimits()
[all...]
H A Dwindow_property.h80 void SetSizeLimits(const WindowLimits& sizeLimits);
81 void SetUpdatedSizeLimits(const WindowLimits& sizeLimits);
/foundation/window/window_manager/wmserver/include/
H A Dwindow_node.h89 void SetWindowSizeLimits(const WindowLimits& sizeLimits);
90 void SetWindowUpdatedSizeLimits(const WindowLimits& sizeLimits);
/foundation/window/window_manager/utils/src/
H A Dwindow_property.cpp264 void WindowProperty::SetSizeLimits(const WindowLimits& sizeLimits) in SetSizeLimits() argument
266 sizeLimits_ = sizeLimits; in SetSizeLimits()
269 void WindowProperty::SetUpdatedSizeLimits(const WindowLimits& sizeLimits) in SetUpdatedSizeLimits() argument
271 updatedSizeLimits_ = sizeLimits; in SetUpdatedSizeLimits()
709 WindowLimits sizeLimits = { parcel.ReadUint32(), parcel.ReadUint32(), parcel.ReadUint32(), in UnmarshallingWindowSizeLimits() local
711 property->SetSizeLimits(sizeLimits); in UnmarshallingWindowSizeLimits()
/foundation/window/window_manager/wm/src/
H A Dwindow_scene_session_impl.cpp1584 const auto& sizeLimits = property_->GetWindowLimits(); in UpdateFloatingWindowSizeBySizeLimits() local
1588 width = std::max(sizeLimits.minWidth_, width); in UpdateFloatingWindowSizeBySizeLimits()
1589 height = std::max(sizeLimits.minHeight_, height); in UpdateFloatingWindowSizeBySizeLimits()
1591 width = std::min(sizeLimits.maxWidth_, width); in UpdateFloatingWindowSizeBySizeLimits()
1592 height = std::min(sizeLimits.maxHeight_, height); in UpdateFloatingWindowSizeBySizeLimits()
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 in UpdateFloatingWindowSizeBySizeLimits()
[all...]
H A Dwindow_impl.cpp1156 WindowLimits sizeLimits; in GetConfigurationFromAbilityInfo() local
1157 sizeLimits.maxWidth_ = abilityInfo->maxWindowWidth; in GetConfigurationFromAbilityInfo()
1158 sizeLimits.maxHeight_ = abilityInfo->maxWindowHeight; in GetConfigurationFromAbilityInfo()
1159 sizeLimits.minWidth_ = abilityInfo->minWindowWidth; in GetConfigurationFromAbilityInfo()
1160 sizeLimits.minHeight_ = abilityInfo->minWindowHeight; in GetConfigurationFromAbilityInfo()
1161 sizeLimits.maxRatio_ = static_cast<float>(abilityInfo->maxWindowRatio); in GetConfigurationFromAbilityInfo()
1162 sizeLimits.minRatio_ = static_cast<float>(abilityInfo->minWindowRatio); in GetConfigurationFromAbilityInfo()
1163 property_->SetSizeLimits(sizeLimits); in GetConfigurationFromAbilityInfo()
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
H A Djs_window.cpp6062 WindowLimits sizeLimits(windowLimits); in OnSetWindowLimits()
6068 WmErrorCode ret = WM_JS_TO_ERROR_CODE_MAP.at(weakWindow->SetWindowLimits(sizeLimits)); in OnSetWindowLimits()
6070 auto objValue = GetWindowLimitsAndConvertToJsValue(env, sizeLimits); in OnSetWindowLimits()

Completed in 39 milliseconds