MCPcopy Create free account
hub / github.com/aseprite/laf / redraw

Method redraw

examples/floating_window.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 bool isVisible() const { return (m_nativeWindow && m_nativeWindow->isVisible()); }
45
46 void redraw()
47 {
48 auto rc = m_nativeWindow->surface()->bounds();
49 onRedraw(m_nativeWindow->surface(), rc);
50
51 if (m_nativeWindow->isVisible())
52 m_nativeWindow->invalidateRegion(gfx::Region(rc));
53 else
54 m_nativeWindow->setVisible(true);
55 }
56
57 virtual bool isFloating() const { return false; }
58

Callers 1

app_mainFunction · 0.80

Calls 6

RegionClass · 0.50
boundsMethod · 0.45
surfaceMethod · 0.45
isVisibleMethod · 0.45
invalidateRegionMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected