slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 类型 | Private 成员函数 | Private 属性 | 静态 Private 属性 | 友元 | 所有成员列表
facebook::yoga::StyleValueHandle类 参考

#include <StyleValueHandle.h>

Public 成员函数

constexpr bool isUndefined () const
 
constexpr bool isDefined () const
 
constexpr bool isAuto () const
 
constexpr bool isPercent () const
 
constexpr bool isPoint () const
 

静态 Public 成员函数

static constexpr StyleValueHandle ofAuto ()
 

Private 类型

enum class  Type : uint8_t {
  Undefined , Point , Percent , Number ,
  Auto , Keyword
}
 
enum class  Keyword : uint8_t { MaxContent , FitContent , Stretch }
 

Private 成员函数

constexpr bool isKeyword (Keyword keyword) const
 
constexpr Type type () const
 
constexpr void setType (Type handleType)
 
constexpr uint16_t value () const
 
constexpr void setValue (uint16_t value)
 
constexpr bool isValueIndexed () const
 
constexpr void setValueIsIndexed ()
 

Private 属性

uint16_t repr_ {0}
 

静态 Private 属性

static constexpr uint16_t kHandleTypeMask = 0b0000'0000'0000'0111
 
static constexpr uint16_t kHandleIndexedMask = 0b0000'0000'0000'1000
 
static constexpr uint16_t kHandleValueMask = 0b1111'1111'1111'0000
 

友元

class StyleValuePool
 

详细描述

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

enum class facebook::yoga::StyleValueHandle::Keyword : uint8_t
strongprivate
枚举值
MaxContent 
FitContent 
Stretch 

◆ Type

enum class facebook::yoga::StyleValueHandle::Type : uint8_t
strongprivate
枚举值
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()

static constexpr StyleValueHandle facebook::yoga::StyleValueHandle::ofAuto ( )
inlinestaticconstexpr
函数调用图:
这是这个函数的调用关系图:

◆ 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

friend class StyleValuePool
friend

类成员变量说明

◆ 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

该类的文档由以下文件生成: