#include <StyleValueHandle.h>
StyleValueHandle is a small (16-bit) handle to a length or number in a style. The value may be embedded directly in the handle if simple, or the handle may instead point to an index within a StyleValuePool.
To read or write a value from a StyleValueHandle, use StyleValuePool::store(), and StyleValuePool::getLength()/ StyleValuePool::getNumber().
◆ Keyword
| 枚举值 |
|---|
| MaxContent | |
| FitContent | |
| Stretch | |
◆ Type
| 枚举值 |
|---|
| Undefined | |
| Point | |
| Percent | |
| Number | |
| Auto | |
| Keyword | |
◆ isAuto()
| constexpr bool facebook::yoga::StyleValueHandle::isAuto |
( |
| ) |
const |
|
inlineconstexpr |
◆ isDefined()
| constexpr bool facebook::yoga::StyleValueHandle::isDefined |
( |
| ) |
const |
|
inlineconstexpr |
◆ isKeyword()
| constexpr bool facebook::yoga::StyleValueHandle::isKeyword |
( |
Keyword | keyword | ) |
const |
|
inlineconstexprprivate |
◆ isPercent()
| constexpr bool facebook::yoga::StyleValueHandle::isPercent |
( |
| ) |
const |
|
inlineconstexpr |
◆ isPoint()
| constexpr bool facebook::yoga::StyleValueHandle::isPoint |
( |
| ) |
const |
|
inlineconstexpr |
◆ isUndefined()
| constexpr bool facebook::yoga::StyleValueHandle::isUndefined |
( |
| ) |
const |
|
inlineconstexpr |
◆ isValueIndexed()
| constexpr bool facebook::yoga::StyleValueHandle::isValueIndexed |
( |
| ) |
const |
|
inlineconstexprprivate |
◆ ofAuto()
◆ setType()
| constexpr void facebook::yoga::StyleValueHandle::setType |
( |
Type | handleType | ) |
|
|
inlineconstexprprivate |
◆ setValue()
| constexpr void facebook::yoga::StyleValueHandle::setValue |
( |
uint16_t | value | ) |
|
|
inlineconstexprprivate |
◆ setValueIsIndexed()
| constexpr void facebook::yoga::StyleValueHandle::setValueIsIndexed |
( |
| ) |
|
|
inlineconstexprprivate |
◆ type()
| constexpr Type facebook::yoga::StyleValueHandle::type |
( |
| ) |
const |
|
inlineconstexprprivate |
◆ value()
| constexpr uint16_t facebook::yoga::StyleValueHandle::value |
( |
| ) |
const |
|
inlineconstexprprivate |
◆ StyleValuePool
◆ kHandleIndexedMask
| constexpr uint16_t facebook::yoga::StyleValueHandle::kHandleIndexedMask = 0b0000'0000'0000'1000 |
|
staticconstexprprivate |
◆ kHandleTypeMask
| constexpr uint16_t facebook::yoga::StyleValueHandle::kHandleTypeMask = 0b0000'0000'0000'0111 |
|
staticconstexprprivate |
◆ kHandleValueMask
| constexpr uint16_t facebook::yoga::StyleValueHandle::kHandleValueMask = 0b1111'1111'1111'0000 |
|
staticconstexprprivate |
◆ repr_
| uint16_t facebook::yoga::StyleValueHandle::repr_ {0} |
|
private |
该类的文档由以下文件生成: