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

Method on_click

dlib/test/gui/main.cpp:715–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713
714
715 void on_click (
716 )
717 {
718 ostringstream sout;
719 sout << "text field: " << tf.text();
720 ++button_count;
721 btn_count.set_text(sout.str());
722
723 if (flip == 0)
724 {
725 flip = 1;
726 lb.set_size(200,200);
727 }
728 else if (flip == 1)
729 {
730 flip = 2;
731 lb.set_size(150,200);
732 }
733 else if (flip == 2)
734 {
735 flip = 3;
736 lb.set_size(150,300);
737 }
738 else
739 {
740 flip = 0;
741 lb.set_size(200,300);
742 }
743 }
744
745
746 button b;

Callers

nothing calls this directly

Calls 4

textMethod · 0.80
set_textMethod · 0.45
strMethod · 0.45
set_sizeMethod · 0.45

Tested by

no test coverage detected