MCPcopy Create free account
hub / github.com/TankOs/SFGUI / OnToggleOrientationClick

Method OnToggleOrientationClick

examples/Test.cpp:658–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658void SampleApp::OnToggleOrientationClick() {
659 if( m_boxorientation->GetOrientation() == sfg::Box::Orientation::HORIZONTAL ) {
660 m_boxorientation->SetOrientation( sfg::Box::Orientation::VERTICAL );
661 }
662 else {
663 m_boxorientation->SetOrientation( sfg::Box::Orientation::HORIZONTAL );
664 }
665}
666
667void SampleApp::OnToggleSpaceClick() {
668 if( m_scrolled_window_box->GetSpacing() > .0f ) {

Callers

nothing calls this directly

Calls 2

GetOrientationMethod · 0.45
SetOrientationMethod · 0.45

Tested by

no test coverage detected