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

## Member Function Documentation

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

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

Definition at line 370 of file path_component.cc.

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

References impeller::CubicPathComponent::GetStartDirection().

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

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

Definition at line 354 of file path_component.cc.

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

References impeller::LinearPathComponent::GetStartDirection().

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

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

Definition at line 362 of file path_component.cc.

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

References impeller::QuadraticPathComponent::GetStartDirection().

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

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

Definition at line 160 of file path_component.h.

160 {
161 return std::nullopt;
162 }

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

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