void Ctrl::Refresh() { GuiLock __; if(fullrefresh || !IsVisible() || !IsOpen()) return; LLOG("Refresh " << Name() << " full:" << fullrefresh); Refresh(Rect(GetSize()).Inflated(OverPaint())); if(!GuiPlatformSetFullRefreshSpecial()) fullrefresh = true; }
void Ctrl::Refresh() { sCheckGuiLock(); GuiLock __; // Beware: Even if we have ThreadHasGuiLock ASSERT, we still can be the main thread! if(fullrefresh || !IsVisible() || !IsOpen()) return; LLOG("Refresh " << Name() << " full:" << fullrefresh); if(!GuiPlatformSetFullRefreshSpecial()) fullrefresh = true; // Needs to be set ahead because of possible MT ICall that can cause repaint during Refresh0 Refresh0(Rect(GetSize()).Inflated(OverPaint())); }
void Ctrl::Refresh() { GuiLock __; if(fullrefresh || !IsVisible() || !IsOpen()) return; LLOG("Refresh " << Name() << " full:" << fullrefresh); Refresh(Rect(GetSize()).Inflated(OverPaint())); #ifdef PLATFORM_WIN32 if(!isdhctrl) #endif fullrefresh = true; }
void Ctrl::Refresh(const Rect& area) { GuiLock __; if(fullrefresh || !IsVisible() || !IsOpen()) return; LLOG("Refresh " << Name() << ' ' << area); RefreshFrame((area + GetView().TopLeft()) & GetView().Inflated(OverPaint())); }
void Ctrl::Refresh0(const Rect& area) { RefreshFrame((area + GetView().TopLeft()) & GetView().Inflated(OverPaint())); }