| Flutter Impeller |

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

`#include <impeller.hpp>`

Inheritance diagram for IMPELLER_HPP_NAMESPACE::ParagraphStyle:

## Public Member Functions
| ParagraphStyle ()
ParagraphStyle & | SetBackground (const Paint &paint)
ParagraphStyle & | SetFontFamily (const char *family_name)
ParagraphStyle & | SetFontSize (float size)
ParagraphStyle & | SetFontStyle (ImpellerFontStyle style)
ParagraphStyle & | SetFontWeight (ImpellerFontWeight weight)
ParagraphStyle & | SetForeground (const Paint &paint)
ParagraphStyle & | SetHeight (float height)
ParagraphStyle & | SetLocale (const char *locale)
ParagraphStyle & | SetMaxLines (uint32_t max_lines)
ParagraphStyle & | SetTextAlignment (ImpellerTextAlignment align)
ParagraphStyle & | SetTextDirection (ImpellerTextDirection direction)
Public Member Functions inherited from IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >
| Object ()=default
| Object (ImpellerParagraphStyle object)
| Object (ImpellerParagraphStyle object, AdoptTag)
| Object (Object &&other)
| Object (const Object &other)
| ~Object ()
Object & | operator= (Object &&other)
Object & | operator= (const Object &other)
ImpellerParagraphStyle | Get () const
| operator bool () const

## Detailed Description

See also
  ImpellerParagraphStyle

Definition at line 788 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ ParagraphStyle()

IMPELLER_HPP_NAMESPACE::ParagraphStyle::ParagraphStyle | ( |  | ) |
| inline

Definition at line 791 of file impeller.hpp.

792 : Object(gGlobalProcTable.ImpellerParagraphStyleNew(), AdoptTag::kAdopt) {
793 }

References IMPELLER_HPP_NAMESPACE::kAdopt.

## Member Function Documentation

## ◆ SetBackground()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetBackground | ( | const Paint & | paint | ) |
| inline

See also
  ImpellerParagraphStyleSetBackground

Definition at line 798 of file impeller.hpp.

798 {
799 gGlobalProcTable.ImpellerParagraphStyleSetBackground(Get(), paint.Get());
800 return *this;
801 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetFontFamily()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetFontFamily | ( | const char * | family_name | ) |
| inline

See also
  ImpellerParagraphStyleSetFontFamily

Definition at line 806 of file impeller.hpp.

806 {
807 gGlobalProcTable.ImpellerParagraphStyleSetFontFamily(Get(), family_name);
808 return *this;
809 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetFontSize()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetFontSize | ( | float | size | ) |
| inline

See also
  ImpellerParagraphStyleSetFontSize

Definition at line 814 of file impeller.hpp.

814 {
815 gGlobalProcTable.ImpellerParagraphStyleSetFontSize(Get(), size);
816 return *this;
817 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetFontStyle()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetFontStyle | ( | ImpellerFontStyle | style | ) |
| inline

See also
  ImpellerParagraphStyleSetFontStyle

Definition at line 822 of file impeller.hpp.

822 {
823 gGlobalProcTable.ImpellerParagraphStyleSetFontStyle(Get(), style);
824 return *this;
825 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetFontWeight()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetFontWeight | ( | ImpellerFontWeight | weight | ) |
| inline

See also
  ImpellerParagraphStyleSetFontWeight

Definition at line 830 of file impeller.hpp.

830 {
831 gGlobalProcTable.ImpellerParagraphStyleSetFontWeight(Get(), weight);
832 return *this;
833 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetForeground()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetForeground | ( | const Paint & | paint | ) |
| inline

See also
  ImpellerParagraphStyleSetForeground

Definition at line 838 of file impeller.hpp.

838 {
839 gGlobalProcTable.ImpellerParagraphStyleSetForeground(Get(), paint.Get());
840 return *this;
841 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetHeight()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetHeight | ( | float | height | ) |
| inline

See also
  ImpellerParagraphStyleSetHeight

Definition at line 846 of file impeller.hpp.

846 {
847 gGlobalProcTable.ImpellerParagraphStyleSetHeight(Get(), height);
848 return *this;
849 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetLocale()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetLocale | ( | const char * | locale | ) |
| inline

See also
  ImpellerParagraphStyleSetLocale

Definition at line 854 of file impeller.hpp.

854 {
855 gGlobalProcTable.ImpellerParagraphStyleSetLocale(Get(), locale);
856 return *this;
857 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetMaxLines()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetMaxLines | ( | uint32_t | max_lines | ) |
| inline

See also
  ImpellerParagraphStyleSetMaxLines

Definition at line 862 of file impeller.hpp.

862 {
863 gGlobalProcTable.ImpellerParagraphStyleSetMaxLines(Get(), max_lines);
864 return *this;
865 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetTextAlignment()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetTextAlignment | ( | ImpellerTextAlignment | align | ) |
| inline

See also
  ImpellerParagraphStyleSetTextAlignment

Definition at line 870 of file impeller.hpp.

870 {
871 gGlobalProcTable.ImpellerParagraphStyleSetTextAlignment(Get(), align);
872 return *this;
873 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetTextDirection()

ParagraphStyle& IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetTextDirection | ( | ImpellerTextDirection | direction | ) |
| inline

See also
  ImpellerParagraphStyleSetTextDirection

Definition at line 878 of file impeller.hpp.

878 {
879 gGlobalProcTable.ImpellerParagraphStyleSetTextDirection(Get(), direction);
880 return *this;
881 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

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

- impeller/toolkit/interop/impeller.hpp

IMPELLER_HPP_NAMESPACE::gGlobalProcTable
ProcTable gGlobalProcTable
Definition: playground_test.cc:10
IMPELLER_HPP_NAMESPACE::AdoptTag::kAdopt
@ kAdopt
IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Get
ImpellerParagraphStyle Get() const
Definition: impeller.hpp:234
IMPELLER_HPP_NAMESPACE::Object< ImpellerParagraphStyle, ImpellerParagraphStyleTraits >::Object
Object()=default