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

Method invalidate_rectangle

dlib/gui_core/gui_core_kernel_1.cpp:2031–2047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029// ----------------------------------------------------------------------------------------
2030
2031 void base_window::
2032 invalidate_rectangle (
2033 const rectangle& rect
2034 )
2035 {
2036 auto_mutex M(wm);
2037 if (rect.is_empty() == false && !has_been_destroyed)
2038 {
2039 RECT info;
2040 info.top = rect.top();
2041 info.left = rect.left();
2042 info.right = rect.right()+1;
2043 info.bottom = rect.bottom()+1;
2044
2045 InvalidateRect(hwnd,&info,FALSE);
2046 }
2047 }
2048
2049// ----------------------------------------------------------------------------------------
2050

Callers

nothing calls this directly

Calls 5

is_emptyMethod · 0.45
topMethod · 0.45
leftMethod · 0.45
rightMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected