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

Method HandleSizeChange

src/SFGUI/Entry.cpp:301–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void Entry::HandleSizeChange() {
302 if( HasFocus() ) {
303 GrabFocus( Widget::Ptr() );
304 }
305
306 SetCursorPosition( 0 );
307 RecalculateVisibleString();
308}
309
310sf::Vector2f Entry::CalculateRequisition() {
311 const std::string& font_name( Context::Get().GetEngine().GetProperty<std::string>( "FontName", shared_from_this() ) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected