Lines Matching defs:rect
48 bool CheckRectValid(const Media::Rect& rect, int32_t oriHeight, int32_t oriWidth) const;
115 void NotifyAvailableAreaChanged(DMRect rect);
388 bool DisplayManager::Impl::CheckRectValid(const Media::Rect& rect, int32_t oriHeight, int32_t oriWidth) const
390 if (rect.left < 0) {
393 if (rect.top < 0) {
396 if (rect.width < 0) {
399 if (rect.height < 0) {
402 if (rect.width + rect.left > oriWidth) {
405 if (rect.height + rect.top > oriHeight) {
685 std::shared_ptr<Media::PixelMap> DisplayManager::GetSnapshotByPicker(Media::Rect &rect, DmErrorCode* errorCode)
693 SingletonContainer::Get<DisplayManagerAdapter>().GetSnapshotByPicker(rect, errorCode);
700 rect.left, rect.top, rect.width, rect.height);
702 if (rect.width == 0 || rect.height == 0) {
707 opt.size.width = rect.width;
708 opt.size.height = rect.height;
711 auto pixelMap = Media::PixelMap::Create(*screenShot, rect, opt);
719 std::shared_ptr<Media::PixelMap> DisplayManager::GetScreenshot(DisplayId displayId, const Media::Rect &rect,
731 if (!pImpl_->CheckRectValid(rect, oriHeight, oriWidth)) {
732 WLOGFE("rect invalid! left %{public}d, top %{public}d, w %{public}d, h %{public}d",
733 rect.left, rect.top, rect.width, rect.height);
737 WLOGFE("size invalid! w %{public}d, h %{public}d", rect.width, rect.height);
747 auto pixelMap = Media::PixelMap::Create(*screenShot, rect, opt);
1596 void DisplayManager::Impl::NotifyAvailableAreaChanged(DMRect rect)
1604 listener->OnAvailableAreaChanged(rect);