| Flutter Impeller |

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

`#include <impeller.hpp>`

Inheritance diagram for IMPELLER_HPP_NAMESPACE::LineMetrics:

## Public Member Functions
| LineMetrics (ImpellerLineMetrics metrics, AdoptTag tag)
double | GetUnscaledAscent (size_t line) const
double | GetAscent (size_t line) const
double | GetDescent (size_t line) const
double | GetBaseline (size_t line) const
bool | IsHardbreak (size_t line) const
double | GetWidth (size_t line) const
double | GetHeight (size_t line) const
double | GetLeft (size_t line) const
size_t | GetCodeUnitStartIndex (size_t line) const
size_t | GetCodeUnitEndIndex (size_t line) const
size_t | GetCodeUnitEndIndexExcludingWhitespace (size_t line) const
size_t | GetCodeUnitEndIndexIncludingNewline (size_t line) const
Public Member Functions inherited from IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >
| Object ()=default
| Object (ImpellerLineMetrics object)
| Object (ImpellerLineMetrics object, AdoptTag)
| Object (Object &&other)
| Object (const Object &other)
| ~Object ()
Object & | operator= (Object &&other)
Object & | operator= (const Object &other)
ImpellerLineMetrics | Get () const
| operator bool () const

## Detailed Description

See also
  ImpellerLineMetrics

Definition at line 795 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ LineMetrics()

IMPELLER_HPP_NAMESPACE::LineMetrics::LineMetrics | ( | ImpellerLineMetrics | metrics,
|  | AdoptTag | tag
| ) |  |
| inline

Definition at line 798 of file impeller.hpp.

799 : Object(metrics, tag) {}
IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Object
Object()=default

## Member Function Documentation

## ◆ GetAscent()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetAscent | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetAscent

Definition at line 811 of file impeller.hpp.

811 {
812 return gGlobalProcTable.ImpellerLineMetricsGetAscent(Get(), line);
813 }
IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get
ImpellerLineMetrics Get() const
Definition: impeller.hpp:278
IMPELLER_HPP_NAMESPACE::gGlobalProcTable
ProcTable gGlobalProcTable
Definition: playground_test.cc:25

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetBaseline()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetBaseline | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetBaseline

Definition at line 825 of file impeller.hpp.

825 {
826 return gGlobalProcTable.ImpellerLineMetricsGetBaseline(Get(), line);
827 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetCodeUnitEndIndex()

size_t IMPELLER_HPP_NAMESPACE::LineMetrics::GetCodeUnitEndIndex | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetCodeUnitEndIndex

Definition at line 868 of file impeller.hpp.

868 {
869 return gGlobalProcTable.ImpellerLineMetricsGetCodeUnitEndIndex(Get(), line);
870 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetCodeUnitEndIndexExcludingWhitespace()

size_t IMPELLER_HPP_NAMESPACE::LineMetrics::GetCodeUnitEndIndexExcludingWhitespace | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetCodeUnitEndIndexExcludingWhitespace

Definition at line 875 of file impeller.hpp.

875 {
876 return gGlobalProcTable
877 .ImpellerLineMetricsGetCodeUnitEndIndexExcludingWhitespace(Get(), line);
878 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetCodeUnitEndIndexIncludingNewline()

size_t IMPELLER_HPP_NAMESPACE::LineMetrics::GetCodeUnitEndIndexIncludingNewline | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetCodeUnitEndIndexIncludingNewline

Definition at line 883 of file impeller.hpp.

883 {
884 return gGlobalProcTable
885 .ImpellerLineMetricsGetCodeUnitEndIndexIncludingNewline(Get(), line);
886 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetCodeUnitStartIndex()

size_t IMPELLER_HPP_NAMESPACE::LineMetrics::GetCodeUnitStartIndex | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetCodeUnitStartIndex

Definition at line 860 of file impeller.hpp.

860 {
861 return gGlobalProcTable.ImpellerLineMetricsGetCodeUnitStartIndex(Get(),
862 line);
863 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetDescent()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetDescent | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetDescent

Definition at line 818 of file impeller.hpp.

818 {
819 return gGlobalProcTable.ImpellerLineMetricsGetDescent(Get(), line);
820 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetHeight()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetHeight | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetHeight

Definition at line 846 of file impeller.hpp.

846 {
847 return gGlobalProcTable.ImpellerLineMetricsGetHeight(Get(), line);
848 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetLeft()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetLeft | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetLeft

Definition at line 853 of file impeller.hpp.

853 {
854 return gGlobalProcTable.ImpellerLineMetricsGetLeft(Get(), line);
855 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetUnscaledAscent()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetUnscaledAscent | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetUnscaledAscent

Definition at line 804 of file impeller.hpp.

804 {
805 return gGlobalProcTable.ImpellerLineMetricsGetUnscaledAscent(Get(), line);
806 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ GetWidth()

double IMPELLER_HPP_NAMESPACE::LineMetrics::GetWidth | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsGetWidth

Definition at line 839 of file impeller.hpp.

839 {
840 return gGlobalProcTable.ImpellerLineMetricsGetWidth(Get(), line);
841 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ IsHardbreak()

bool IMPELLER_HPP_NAMESPACE::LineMetrics::IsHardbreak | ( | size_t | line | ) | const
| inline

See also
  ImpellerLineMetricsIsHardbreak

Definition at line 832 of file impeller.hpp.

832 {
833 return gGlobalProcTable.ImpellerLineMetricsIsHardbreak(Get(), line);
834 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerLineMetrics, ImpellerLineMetricsTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

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

- impeller/toolkit/interop/impeller.hpp