Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
drag-button.cpp
#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/dragger.hpp>
int main()
{
using namespace nana;
form fm;
button btn(fm, nana::rectangle(10, 10, 100, 20));
btn.caption("Drag Me");
dragger dg;
dg.trigger(btn); //When you drag the btn, then
dg.target(btn); //move the btn
fm.show();
#ifdef NANA_AUTOMATIC_GUI_TESTING
1, 1, [&btn]() {click(btn); }
#endif
);
}