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

Method SetRequisition

src/SFGUI/Widget.cpp:558–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558void Widget::SetRequisition( const sf::Vector2f& requisition ) {
559 if( requisition.x > 0.f || requisition.y > 0.f ) {
560 m_custom_requisition.reset( new sf::Vector2f( requisition ) );
561 }
562 else {
563 m_custom_requisition.reset();
564 }
565
566 RequestResize();
567}
568
569sf::Vector2f Widget::GetAbsolutePosition() const {
570 // If no parent, allocation's position is absolute position.

Callers 11

HandleStateChangeMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
RunMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

RunMethod · 0.64