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

Method HandleSizeChange

src/SFGUI/SpinButton.cpp:197–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void SpinButton::HandleSizeChange() {
198 float stepper_aspect_ratio( Context::Get().GetEngine().GetProperty<float>( "StepperAspectRatio", shared_from_this() ) );
199
200 SetTextMargin( GetAllocation().size.y / 2.f * stepper_aspect_ratio );
201
202 Entry::HandleSizeChange();
203}
204
205void SpinButton::HandleFocusChange( Widget::Ptr focused_widget ) {
206 Entry::HandleFocusChange( focused_widget );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected