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

## Member Function Documentation

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

std::optional< Vector2 > impeller::PathComponentStartDirectionVisitor::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->GetStartDirection();
398 }

References impeller::CubicPathComponent::GetStartDirection().

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

std::optional< Vector2 > impeller::PathComponentStartDirectionVisitor::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->GetStartDirection();
382 }

References impeller::LinearPathComponent::GetStartDirection().

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

std::optional< Vector2 > impeller::PathComponentStartDirectionVisitor::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->GetStartDirection();
390 }

References impeller::QuadraticPathComponent::GetStartDirection().

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

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

Definition at line 174 of file path_component.h.

174 {
175 return std::nullopt;
176 }

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

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