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

#include <StyleSizeLength.h>

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

Public 成员函数

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

静态 Public 成员函数

static constexpr StyleSizeLength points (float value)
 
static constexpr StyleSizeLength percent (float value)
 
static constexpr StyleSizeLength stretch (float fraction)
 
static constexpr StyleSizeLength ofAuto ()
 
static constexpr StyleSizeLength ofMaxContent ()
 
static constexpr StyleSizeLength ofFitContent ()
 
static constexpr StyleSizeLength ofStretch ()
 
static constexpr StyleSizeLength undefined ()
 

Private 成员函数

constexpr StyleSizeLength (FloatOptional value, Unit unit)
 

Private 属性

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

详细描述

This class represents a CSS Value for sizes (e.g. width, height, min-width, etc.). It may be one of:

  1. Undefined
  2. A keyword (e.g. auto, max-content, stretch, etc.)
  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

构造及析构函数说明

◆ StyleSizeLength() [1/2]

constexpr facebook::yoga::StyleSizeLength::StyleSizeLength ( )
constexprdefault

◆ StyleSizeLength() [2/2]

constexpr facebook::yoga::StyleSizeLength::StyleSizeLength ( FloatOptional value,
Unit unit )
inlineconstexprprivate

成员函数说明

◆ inexactEquals()

constexpr bool facebook::yoga::StyleSizeLength::inexactEquals ( const StyleSizeLength & other) const
inlineconstexpr
函数调用图:
这是这个函数的调用关系图:

◆ isAuto()

constexpr bool facebook::yoga::StyleSizeLength::isAuto ( ) const
inlineconstexpr
这是这个函数的调用关系图:

◆ isDefined()

constexpr bool facebook::yoga::StyleSizeLength::isDefined ( ) const
inlineconstexpr
函数调用图:

◆ isFitContent()

constexpr bool facebook::yoga::StyleSizeLength::isFitContent ( ) const
inlineconstexpr
这是这个函数的调用关系图:

◆ isMaxContent()

constexpr bool facebook::yoga::StyleSizeLength::isMaxContent ( ) const
inlineconstexpr
这是这个函数的调用关系图:

◆ isPercent()

constexpr bool facebook::yoga::StyleSizeLength::isPercent ( ) const
inlineconstexpr

◆ isPoints()

constexpr bool facebook::yoga::StyleSizeLength::isPoints ( ) const
inlineconstexpr
这是这个函数的调用关系图:

◆ isStretch()

constexpr bool facebook::yoga::StyleSizeLength::isStretch ( ) const
inlineconstexpr
这是这个函数的调用关系图:

◆ isUndefined()

constexpr bool facebook::yoga::StyleSizeLength::isUndefined ( ) const
inlineconstexpr
这是这个函数的调用关系图:

◆ ofAuto()

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

◆ ofFitContent()

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

◆ ofMaxContent()

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

◆ ofStretch()

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

◆ operator YGValue()

constexpr facebook::yoga::StyleSizeLength::operator YGValue ( ) const
inlineexplicitconstexpr
函数调用图:

◆ operator==()

constexpr bool facebook::yoga::StyleSizeLength::operator== ( const StyleSizeLength & rhs) const
inlineconstexpr

◆ percent()

static constexpr StyleSizeLength facebook::yoga::StyleSizeLength::percent ( float value)
inlinestaticconstexpr
函数调用图:
这是这个函数的调用关系图:

◆ points()

static constexpr StyleSizeLength facebook::yoga::StyleSizeLength::points ( float value)
inlinestaticconstexpr
函数调用图:
这是这个函数的调用关系图:

◆ resolve()

constexpr FloatOptional facebook::yoga::StyleSizeLength::resolve ( float referenceLength) const
inlineconstexpr
函数调用图:

◆ stretch()

static constexpr StyleSizeLength facebook::yoga::StyleSizeLength::stretch ( float fraction)
inlinestaticconstexpr
函数调用图:
这是这个函数的调用关系图:

◆ undefined()

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

◆ value()

constexpr FloatOptional facebook::yoga::StyleSizeLength::value ( ) const
inlineconstexpr
这是这个函数的调用关系图:

类成员变量说明

◆ unit_

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

◆ value_

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

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