Lines Matching refs:rect

153     Rect& rect = cursorInfo_.rect;
155 if (rect.GetLeft() == point.x && rect.GetTop() == point.y) {
159 AddUpdateRegion(rect);
160 rect.SetPosition(point.x, point.y);
188 UpdateWindowRegion(window, window->config_.rect);
198 UpdateWindowRegion(window, window->config_.rect);
216 UpdateWindowRegion(winList_.Begin()->data_, node->data_->config_.rect);
235 UpdateWindowRegion(winList_.Begin()->data_, node->data_->config_.rect);
256 Rect rectBefore = window->config_.rect;
258 Rect rectAfter = window->config_.rect;
280 UpdateWindowRegion(window, window->config_.rect);
323 cursorInfo_.rect.SetRect(0, 0, CURSOR_WIDTH - 1, CURSOR_HEIGHT - 1);
357 AddUpdateRegion(window->config_.rect);
402 void LiteWM::UpdateWindowRegion(const LiteWindow* window, const Rect& rect)
407 CalculateUpdateRegion(winNode->prev_, EXPAND_RECT(rect));
412 AddUpdateRegion(rect);
417 Rect rect(x1, y1, x2, y2);
419 AddUpdateRegion(rect);
427 Rect& winRect = window->config_.rect;
429 GRAPHIC_LOGD("winRect={%d,%d,%d,%d}, rect={%d,%d,%d,%d}", EXPAND_RECT(winRect), EXPAND_RECT(rect));
430 if (mask.Intersect(winRect, rect)) {
452 void LiteWM::AddUpdateRegion(const Rect& rect)
455 GRAPHIC_LOGD("AddUpdateRegion, rect={%d,%d,%d,%d}", EXPAND_RECT(rect));
457 updates_.updates[updates_.num++] = rect;
458 updates_.bound = rect;
462 if (updateRect.IsIntersect(rect) || updateRect.IsExtends(rect)) {
463 updateRect.Join(updateRect, rect);
464 updates_.bound.Join(updates_.bound, rect);
469 updates_.bound.Join(updates_.bound, rect);
473 updates_.updates[updates_.num++] = rect;
474 updates_.bound.Join(updates_.bound, rect);
488 if (cursorInfo_.enableCursor && cursorInfo_.rect.IsIntersect(updates_.updates[i])) {
525 Rect rect(x1, y1, x2, y2);
526 Rect& winRect = window->config_.rect;
529 window->backBuf_ == nullptr || !mask.Intersect(winRect, rect)) {
530 GRAPHIC_LOGI("winRect={%d,%d,%d,%d}, rect={%d,%d,%d,%d}", EXPAND_RECT(winRect), EXPAND_RECT(rect));
567 Rect rect(0, 0, layerData_->width - 1, layerData_->height - 1);
569 if (!rect.Intersect(rect, rectBg)) {
573 x1 = rect.GetLeft();
574 x2 = rect.GetRight();
575 y1 = rect.GetTop();
576 y2 = rect.GetBottom();
590 Rect rect(0, 0, layerData_->width - 1, layerData_->height - 1);
591 if (!rect.Intersect(rect, cursorInfo_.rect)) {
595 int16_t x1 = rect.GetLeft();
596 int16_t x2 = rect.GetRight();
597 int16_t y1 = rect.GetTop();
598 int16_t y2 = rect.GetBottom();
643 if (win->data_->isShow_ && win->data_->GetConfig().rect.IsContains(p)) {
768 AddUpdateRegion(window->config_.rect);