| Flutter Impeller |

Public Member Functions | List of all members
IMPELLER_HPP_NAMESPACE::ParagraphBuilder Class Reference

`#include <impeller.hpp>`

Inheritance diagram for IMPELLER_HPP_NAMESPACE::ParagraphBuilder:

## Public Member Functions
| ParagraphBuilder (const TypographyContext &context)
Paragraph | Build (float width)
ParagraphBuilder & | PushStyle (const ParagraphStyle &style)
ParagraphBuilder & | PopStyle ()
ParagraphBuilder & | AddText (const uint8_t *utf8_data, uint32_t length)
ParagraphBuilder & | AddText (const std::string &string)
ParagraphBuilder & | AddText (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 ()
Object & | operator= (Object &&other)
Object & | operator= (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

Definition at line 1248 of file impeller.hpp.

1249 : Object(gGlobalProcTable.ImpellerParagraphBuilderNew(context.Get()),
1250 AdoptTag::kAdopt) {}
IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >::Object
Object()=default
IMPELLER_HPP_NAMESPACE::AdoptTag::kAdopt
@ kAdopt
IMPELLER_HPP_NAMESPACE::gGlobalProcTable
ProcTable gGlobalProcTable
Definition: playground_test.cc:25

References IMPELLER_HPP_NAMESPACE::kAdopt.

## 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 }
IMPELLER_HPP_NAMESPACE::ParagraphBuilder::AddText
ParagraphBuilder & AddText(const uint8_t *utf8_data, uint32_t length)
Definition: impeller.hpp:1282
data
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 }
IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >::Get
ImpellerParagraphBuilder Get() const
Definition: impeller.hpp:278

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 ),
1260 AdoptTag::kAdopt);
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

See also
  ImpellerParagraphBuilderPushStyle

Definition at line 1266 of file impeller.hpp.

1266 {
1267 gGlobalProcTable.ImpellerParagraphBuilderPushStyle(Get(), style.Get());
1268 return *this;
1269 }

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

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

- impeller/toolkit/interop/impeller.hpp