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

Method IsChildInteresting

src/SFGUI/Box.cpp:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234bool Box::IsChildInteresting( Widget* child ) const {
235 return
236 child->IsLocallyVisible() &&
237 (child->GetRequisition().x > 0.f || child->GetAllocation().size.x > 0.0f) &&
238 (child->GetRequisition().y > 0.f || child->GetAllocation().size.y > 0.0f)
239 ;
240}
241
242void Box::HandleRequisitionChange() {
243 AllocateChildren();

Callers

nothing calls this directly

Calls 1

IsLocallyVisibleMethod · 0.80

Tested by

no test coverage detected