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

## Member Function Documentation

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

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

Definition at line 396 of file path_component.cc.

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

References impeller::CubicPathComponent::GetEndDirection().

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

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

Definition at line 380 of file path_component.cc.

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

References impeller::LinearPathComponent::GetEndDirection().

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

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

Definition at line 388 of file path_component.cc.

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

References impeller::QuadraticPathComponent::GetEndDirection().

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

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

Definition at line 184 of file path_component.h.

184 {
185 return std::nullopt;
186 }

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

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