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

Method set_pos

dlib/gui_core/gui_core_kernel_2.cpp:1853–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1851// ----------------------------------------------------------------------------------------
1852
1853 void base_window::
1854 set_pos (
1855 long x_,
1856 long y_
1857 )
1858 {
1859 using namespace gui_core_kernel_2_globals;
1860 auto_mutex a(wm);
1861 if (has_been_destroyed == true)
1862 return;
1863
1864
1865 x = x_;
1866 y = y_;
1867
1868 has_been_moved = true;
1869
1870 XMoveWindow(x11_stuff.globals->disp,x11_stuff.hwnd,x,y);
1871 XFlush(x11_stuff.globals->disp);
1872 }
1873
1874// ----------------------------------------------------------------------------------------
1875

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected