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

#include <StyleLength.h>

facebook::yoga::StyleLength 的协作图:
Collaboration graph
[图例]

Public 成员函数

constexpr StyleLength ()=default
 
constexpr bool isAuto () const
 
constexpr bool isUndefined () const
 
constexpr bool isPoints () const
 
constexpr bool isPercent () const
 
constexpr bool isDefined () const
 
constexpr FloatOptional value () const
 
constexpr FloatOptional resolve (float referenceLength)
 
constexpr operator YGValue () const
 
constexpr bool operator== (const StyleLength &rhs) const
 
constexpr bool inexactEquals (const StyleLength &other) const
 

静态 Public 成员函数

static constexpr StyleLength points (float value)
 
static constexpr StyleLength percent (float value)
 
static constexpr StyleLength ofAuto ()
 
static constexpr StyleLength undefined ()
 

Private 成员函数

constexpr StyleLength (FloatOptional value, Unit unit)
 

Private 属性

FloatOptional value_ {}
 
Unit unit_ {Unit::Undefined}
 

详细描述

Style::Length represents a CSS Value which may be one of:

  1. Undefined
  2. A keyword (e.g. auto)
  3. A CSS <length-percentage> value: a. <length> value (e.g. 10px) b. <percentage> value of a reference <length>

References:

  1. https://www.w3.org/TR/css-values-4/#lengths
  2. https://www.w3.org/TR/css-values-4/#percentage-value
  3. 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_

Unit facebook::yoga::StyleLength::unit_ {Unit::Undefined}
private

◆ value_

FloatOptional facebook::yoga::StyleLength::value_ {}
private

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