| Flutter Impeller |

Public Member Functions | List of all members
impeller::PathComponentStartDirectionVisitor 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 171 of file path_component.h.

## Member Function Documentation

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

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

Definition at line 372 of file path_component.cc.

373 {
374 if (!component) {
375 return std::nullopt;
376 }
377 return component->GetStartDirection();
378 }

References impeller::CubicPathComponent::GetStartDirection().

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

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

Definition at line 356 of file path_component.cc.

357 {
358 if (!component) {
359 return std::nullopt;
360 }
361 return component->GetStartDirection();
362 }

References impeller::LinearPathComponent::GetStartDirection().

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

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

Definition at line 364 of file path_component.cc.

365 {
366 if (!component) {
367 return std::nullopt;
368 }
369 return component->GetStartDirection();
370 }

References impeller::QuadraticPathComponent::GetStartDirection().

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

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

Definition at line 175 of file path_component.h.

175 {
176 return std::nullopt;
177 }

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

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