| Flutter Impeller |

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

`#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 920 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ ParagraphBuilder()

IMPELLER_HPP_NAMESPACE::ParagraphBuilder::ParagraphBuilder | ( | const TypographyContext & | context | ) |
| inline explicit

Definition at line 923 of file impeller.hpp.

924 : Object(gGlobalProcTable.ImpellerParagraphBuilderNew(context.Get()),
925 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:10

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 965 of file impeller.hpp.

965 {
966 return AddText(reinterpret_cast<const uint8_t*>(string.data()),
967 string.size());
968 }
IMPELLER_HPP_NAMESPACE::ParagraphBuilder::AddText
ParagraphBuilder & AddText(const uint8_t *utf8_data, uint32_t length)
Definition: impeller.hpp:957
data
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:64

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 973 of file impeller.hpp.

973 {
974 return AddText(reinterpret_cast<const uint8_t*>(string.data()),
975 string.size());
976 }

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 957 of file impeller.hpp.

957 {
958 gGlobalProcTable.ImpellerParagraphBuilderAddText(Get(), utf8_data, length);
959 return *this;
960 }
IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphBuilder, ImpellerParagraphBuilderTraits >::Get
ImpellerParagraphBuilder Get() const
Definition: impeller.hpp:234

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 930 of file impeller.hpp.

930 {
931 return Paragraph(
932 gGlobalProcTable.ImpellerParagraphBuilderBuildParagraphNew(Get(), //
933 width //
934 ),
935 AdoptTag::kAdopt);
936 }

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 949 of file impeller.hpp.

949 {
950 gGlobalProcTable.ImpellerParagraphBuilderPopStyle(Get());
951 return *this;
952 }

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 941 of file impeller.hpp.

941 {
942 gGlobalProcTable.ImpellerParagraphBuilderPushStyle(Get(), style.Get());
943 return *this;
944 }

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