Lines Matching defs:window
175 LiteWindow* window = GetWindowById(id);
176 if (window != nullptr) {
177 return window->GetSurface();
185 LiteWindow* window = GetWindowById(id);
186 if (window != nullptr) {
187 window->SetIsShow(true);
188 UpdateWindowRegion(window, window->config_.rect);
195 LiteWindow* window = GetWindowById(id);
196 if (window != nullptr) {
197 window->SetIsShow(false);
198 UpdateWindowRegion(window, window->config_.rect);
243 LiteWindow* window = GetWindowById(id);
244 if (window != nullptr) {
245 window->MoveTo(x, y);
252 LiteWindow* window = GetWindowById(id);
253 if (window == nullptr) {
256 Rect rectBefore = window->config_.rect;
257 window->Resize(width, height);
258 Rect rectAfter = window->config_.rect;
266 UpdateWindowRegion(window, {static_cast<int16_t>(x2 + 1), y1, rectBefore.GetRight(),
270 UpdateWindowRegion(window, {x1, static_cast<int16_t>(y2 + 1), x2, rectBefore.GetBottom()});
278 LiteWindow* window = GetWindowById(id);
279 if (window != nullptr) {
280 UpdateWindowRegion(window, window->config_.rect);
334 LiteWindow* window = new LiteWindow(config);
335 if (window == nullptr) {
338 if (!window->CreateSurface()) {
339 delete window;
342 window->SetPid(pid);
343 winList_.PushFront(window);
344 return window;
354 LiteWindow* window = node->data_;
356 if (window != nullptr) {
357 AddUpdateRegion(window->config_.rect);
358 delete window;
365 GRAPHIC_LOGE("reach max window num!");
402 void LiteWM::UpdateWindowRegion(const LiteWindow* window, const Rect& rect)
406 if (winNode->data_ == window) {
425 LiteWindow* window = winNode->data_;
426 if ((window != nullptr) && window->isShow_ && window->IsCoverMode()) {
427 Rect& winRect = window->config_.rect;
519 LiteWindow* window = winNode->data_;
520 if (window == nullptr) {
523 window->UpdateBackBuf();
526 Rect& winRect = window->config_.rect;
528 if (!window->isShow_ || window->NoNeedToDraw() ||
529 window->backBuf_ == nullptr || !mask.Intersect(winRect, rect)) {
538 if (!window->IsCoverMode()) {
544 GRAPHIC_LOGD("Blit, id=%d, srcRect={%d,%d,%d,%d}, x=%d, y=%d", window->id_, EXPAND_RECT(srcRect), x, y);
545 window->Flush(srcRect, layerData_, x, y);
764 LiteWindow* window = tmp->data_;
765 GRAPHIC_LOGI("window->GetPid() = %d,pid = %d", window->GetPid(), pid);
766 if (window->GetPid() == pid) {
768 AddUpdateRegion(window->config_.rect);
769 delete window;