#include <StyleLength.h>
Style::Length represents a CSS Value which may be one of:
- Undefined
- A keyword (e.g. auto)
- A CSS <length-percentage> value: a. <length> value (e.g. 10px) b. <percentage> value of a reference <length>
References:
- https://www.w3.org/TR/css-values-4/#lengths
- https://www.w3.org/TR/css-values-4/#percentage-value
- https://www.w3.org/TR/css-values-4/#mixed-percentages
◆ StyleLength() [1/2]
| constexpr facebook::yoga::StyleLength::StyleLength |
( |
| ) |
|
|
constexprdefault |
◆ StyleLength() [2/2]
| constexpr facebook::yoga::StyleLength::StyleLength |
( |
FloatOptional | value, |
|
|
Unit | unit ) |
|
inlineconstexprprivate |
◆ inexactEquals()
| constexpr bool facebook::yoga::StyleLength::inexactEquals |
( |
const StyleLength & | other | ) |
const |
|
inlineconstexpr |
◆ isAuto()
| constexpr bool facebook::yoga::StyleLength::isAuto |
( |
| ) |
const |
|
inlineconstexpr |
◆ isDefined()
| constexpr bool facebook::yoga::StyleLength::isDefined |
( |
| ) |
const |
|
inlineconstexpr |
◆ isPercent()
| constexpr bool facebook::yoga::StyleLength::isPercent |
( |
| ) |
const |
|
inlineconstexpr |
◆ isPoints()
| constexpr bool facebook::yoga::StyleLength::isPoints |
( |
| ) |
const |
|
inlineconstexpr |
◆ isUndefined()
| constexpr bool facebook::yoga::StyleLength::isUndefined |
( |
| ) |
const |
|
inlineconstexpr |
◆ ofAuto()
| static constexpr StyleLength facebook::yoga::StyleLength::ofAuto |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ operator YGValue()
| constexpr facebook::yoga::StyleLength::operator YGValue |
( |
| ) |
const |
|
inlineexplicitconstexpr |
◆ operator==()
| constexpr bool facebook::yoga::StyleLength::operator== |
( |
const StyleLength & | rhs | ) |
const |
|
inlineconstexpr |
◆ percent()
| static constexpr StyleLength facebook::yoga::StyleLength::percent |
( |
float | value | ) |
|
|
inlinestaticconstexpr |
◆ points()
| static constexpr StyleLength facebook::yoga::StyleLength::points |
( |
float | value | ) |
|
|
inlinestaticconstexpr |
◆ resolve()
| constexpr FloatOptional facebook::yoga::StyleLength::resolve |
( |
float | referenceLength | ) |
|
|
inlineconstexpr |
◆ undefined()
| static constexpr StyleLength facebook::yoga::StyleLength::undefined |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ value()
| constexpr FloatOptional facebook::yoga::StyleLength::value |
( |
| ) |
const |
|
inlineconstexpr |
◆ unit_
◆ value_
该类的文档由以下文件生成: