| 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 174 of file path_component.h.

## Member Function Documentation

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

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

Definition at line 392 of file path_component.cc.

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

References impeller::CubicPathComponent::GetEndDirection().

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

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

Definition at line 376 of file path_component.cc.

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

References impeller::LinearPathComponent::GetEndDirection().

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

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

Definition at line 384 of file path_component.cc.

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

References impeller::QuadraticPathComponent::GetEndDirection().

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

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

Definition at line 178 of file path_component.h.

178 {
179 return std::nullopt;
180 }

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

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