Flutter Impeller
IMPELLER_HPP_NAMESPACE::ParagraphBuilder Class Reference

#include <impeller.hpp>

Inheritance diagram for IMPELLER_HPP_NAMESPACE::ParagraphBuilder:
IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >

Public Member Functions

 ParagraphBuilder (const TypographyContext &context)
 
Paragraph Build (float width)
 
ParagraphBuilderPushStyle (const ParagraphStyle &style)
 
ParagraphBuilderPopStyle ()
 
ParagraphBuilderAddText (const uint8_t *utf8_data, uint32_t length)
 
ParagraphBuilderAddText (const std::string &string)
 
ParagraphBuilderAddText (const std::string_view &string)
 
- Public Member Functions inherited from IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >
 Object ()=default
 
 Object (ImpellerParagraphBuilder object)
 
 Object (ImpellerParagraphBuilder object, AdoptTag)
 
 Object (Object &&other)
 
 Object (const Object &other)
 
 ~Object ()
 
Objectoperator= (Object &&other)
 
Objectoperator= (const Object &other)
 
ImpellerParagraphBuilder Get () const
 
 operator bool () const
 

Detailed Description

See also
ImpellerParagraphBuilder

Definition at line 1245 of file impeller.hpp.

Constructor & Destructor Documentation

◆ ParagraphBuilder()

IMPELLER_HPP_NAMESPACE::ParagraphBuilder::ParagraphBuilder ( const TypographyContext context)
inlineexplicit

Member Function Documentation

◆ AddText() [1/3]

ParagraphBuilder& IMPELLER_HPP_NAMESPACE::ParagraphBuilder::AddText ( const std::string &  string)
inline
See also
ImpellerParagraphBuilderAddText

Definition at line 1290 of file impeller.hpp.

1290  {
1291  return AddText(reinterpret_cast<const uint8_t*>(string.data()),
1292  string.size());
1293  }
ParagraphBuilder & AddText(const uint8_t *utf8_data, uint32_t length)
Definition: impeller.hpp:1282
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:68

References AddText(), and data.

◆ AddText() [2/3]

ParagraphBuilder& IMPELLER_HPP_NAMESPACE::ParagraphBuilder::AddText ( const std::string_view &  string)
inline
See also
ImpellerParagraphBuilderAddText

Definition at line 1298 of file impeller.hpp.

1298  {
1299  return AddText(reinterpret_cast<const uint8_t*>(string.data()),
1300  string.size());
1301  }

References AddText(), and data.

◆ AddText() [3/3]

ParagraphBuilder& IMPELLER_HPP_NAMESPACE::ParagraphBuilder::AddText ( const uint8_t *  utf8_data,
uint32_t  length 
)
inline
See also
ImpellerParagraphBuilderAddText

Definition at line 1282 of file impeller.hpp.

1282  {
1283  gGlobalProcTable.ImpellerParagraphBuilderAddText(Get(), utf8_data, length);
1284  return *this;
1285  }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

Referenced by AddText().

◆ Build()

Paragraph IMPELLER_HPP_NAMESPACE::ParagraphBuilder::Build ( float  width)
inline
See also
ImpellerParagraphBuilderBuildParagraphNew

Definition at line 1255 of file impeller.hpp.

1255  {
1256  return Paragraph(
1257  gGlobalProcTable.ImpellerParagraphBuilderBuildParagraphNew(Get(), //
1258  width //
1259  ),
1261  }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >::Get(), IMPELLER_HPP_NAMESPACE::gGlobalProcTable, and IMPELLER_HPP_NAMESPACE::kAdopt.

◆ PopStyle()

ParagraphBuilder& IMPELLER_HPP_NAMESPACE::ParagraphBuilder::PopStyle ( )
inline
See also
ImpellerParagraphBuilderPopStyle

Definition at line 1274 of file impeller.hpp.

1274  {
1275  gGlobalProcTable.ImpellerParagraphBuilderPopStyle(Get());
1276  return *this;
1277  }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

◆ PushStyle()

ParagraphBuilder& IMPELLER_HPP_NAMESPACE::ParagraphBuilder::PushStyle ( const ParagraphStyle style)
inline

The documentation for this class was generated from the following file: