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

Method lengthFromValueAsDp

src/eepp/ui/uinode.cpp:1685–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1683}
1684
1685Float UINode::lengthFromValueAsDp( const std::string& value,
1686 const PropertyRelativeTarget& relativeTarget,
1687 const Float& defaultValue, const Uint32& propertyIndex ) const {
1688 Float containerLength =
1689 getPropertyRelativeTargetContainerLength( relativeTarget, defaultValue, propertyIndex );
1690 return convertLengthAsDp( StyleSheetLength::fromString( value, defaultValue ),
1691 containerLength );
1692}
1693
1694Float UINode::lengthFromValueAsDp( const StyleSheetProperty& property,
1695 const Float& defaultValue ) const {

Callers 2

asDpDimensionMethod · 0.80
asDpDimensionVector2fMethod · 0.80

Calls 4

fromStringFunction · 0.85
getIndexMethod · 0.80
getValueMethod · 0.45
getPropertyDefinitionMethod · 0.45

Tested by

no test coverage detected