MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getPropertyWidth

Method getPropertyWidth

src/eepp/ui/uiwidget.cpp:2631–2637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2629}
2630
2631Float UIWidget::getPropertyWidth() const {
2632 const StyleSheetProperty* prop = nullptr;
2633 if ( mStyle && ( prop = mStyle->getProperty( PropertyId::Width ) ) ) {
2634 return lengthFromValue( *prop );
2635 }
2636 return 0.f;
2637}
2638
2639Float UIWidget::getPropertyHeight() const {
2640 const StyleSheetProperty* prop = nullptr;

Callers 1

Calls 1

getPropertyMethod · 0.45

Tested by

no test coverage detected