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

Method close_window

dlib/gui_core/gui_core_kernel_1.cpp:1678–1694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676// ----------------------------------------------------------------------------------------
1677
1678 void base_window::
1679 close_window (
1680 )
1681 {
1682 using namespace gui_core_kernel_1_globals;
1683 auto_mutex M(wm);
1684 if (has_been_destroyed == false)
1685 {
1686 // do this just to make sure no one tries to call this window's
1687 // calbacks.
1688 globals->window_table.destroy(hwnd);
1689 gui_core_kernel_1_globals::destroy_window(hwnd);
1690 hwnd = 0;
1691 has_been_destroyed = true;
1692 globals->window_close_signaler.broadcast();
1693 }
1694 }
1695
1696// ----------------------------------------------------------------------------------------
1697

Callers

nothing calls this directly

Calls 3

destroy_windowFunction · 0.85
destroyMethod · 0.45
broadcastMethod · 0.45

Tested by

no test coverage detected