| Flutter Impeller |

Public Member Functions | List of all members
impeller::PathComponentEndDirectionVisitor Struct Reference

`#include <path_component.h>`

## Public Member Functions
std::optional< Vector2 > | operator() (const LinearPathComponent *component)
std::optional< Vector2 > | operator() (const QuadraticPathComponent *component)
std::optional< Vector2 > | operator() (const CubicPathComponent *component)
std::optional< Vector2 > | operator() (std::monostate monostate)

## Detailed Description

Definition at line 165 of file path_component.h.

## Member Function Documentation

## ◆ operator()() [1/4]

std::optional< Vector2 > impeller::PathComponentEndDirectionVisitor::operator() | ( | const CubicPathComponent * | component | ) |

Definition at line 394 of file path_component.cc.

395 {
396 if (!component) {
397 return std::nullopt;
398 }
399 return component->GetEndDirection();
400 }

References impeller::CubicPathComponent::GetEndDirection().

## ◆ operator()() [2/4]

std::optional< Vector2 > impeller::PathComponentEndDirectionVisitor::operator() | ( | const LinearPathComponent * | component | ) |

Definition at line 378 of file path_component.cc.

379 {
380 if (!component) {
381 return std::nullopt;
382 }
383 return component->GetEndDirection();
384 }

References impeller::LinearPathComponent::GetEndDirection().

## ◆ operator()() [3/4]

std::optional< Vector2 > impeller::PathComponentEndDirectionVisitor::operator() | ( | const QuadraticPathComponent * | component | ) |

Definition at line 386 of file path_component.cc.

387 {
388 if (!component) {
389 return std::nullopt;
390 }
391 return component->GetEndDirection();
392 }

References impeller::QuadraticPathComponent::GetEndDirection().

## ◆ operator()() [4/4]

std::optional<Vector2> impeller::PathComponentEndDirectionVisitor::operator() | ( | std::monostate | monostate | ) |
| inline

Definition at line 169 of file path_component.h.

169 {
170 return std::nullopt;
171 }

The documentation for this struct was generated from the following files:

- impeller/geometry/path_component.h
- impeller/geometry/path_component.cc