MCPcopy Create free account
hub / github.com/davisking/dlib / invalidate_rectangle

Method invalidate_rectangle

dlib/gui_core/gui_core_kernel_2.cpp:1943–1963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1941// ----------------------------------------------------------------------------------------
1942
1943 void base_window::
1944 invalidate_rectangle (
1945 const rectangle& rect
1946 )
1947 {
1948 using namespace gui_core_kernel_2_globals;
1949 auto_mutex a(wm);
1950 if (is_mapped == false)
1951 return;
1952
1953 if (rect.is_empty() == false && !has_been_destroyed)
1954 {
1955 const long x = rect.left();
1956 const long y = rect.top();
1957 const unsigned long width = rect.width();
1958 const unsigned long height = rect.height();
1959
1960 XClearArea(x11_stuff.globals->disp,x11_stuff.hwnd,x,y,width,height,1);
1961 XFlush(x11_stuff.globals->disp);
1962 }
1963 }
1964
1965// ----------------------------------------------------------------------------------------
1966

Callers

nothing calls this directly

Calls 5

is_emptyMethod · 0.45
leftMethod · 0.45
topMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected