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

Method close_window

dlib/gui_core/gui_core_kernel_2.cpp:1700–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1698// ----------------------------------------------------------------------------------------
1699
1700 void base_window::
1701 close_window (
1702 )
1703 {
1704 using namespace gui_core_kernel_2_globals;
1705 auto_mutex M(wm);
1706 if (has_been_destroyed == false)
1707 {
1708 has_been_destroyed = true;
1709
1710 x11_stuff.globals->window_table.destroy(x11_stuff.hwnd);
1711
1712 XDestroyWindow(x11_stuff.globals->disp,x11_stuff.hwnd);
1713 x11_stuff.hwnd = 0;
1714 x11_stuff.globals->window_close_signaler.broadcast();
1715 }
1716 }
1717
1718// ----------------------------------------------------------------------------------------
1719

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.45
broadcastMethod · 0.45

Tested by

no test coverage detected