Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::PathComponentEndDirectionVisitor Struct Reference

#include <path_component.h>

Public Member Functions

std::optional< Vector2operator() (const LinearPathComponent *component)
 
std::optional< Vector2operator() (const QuadraticPathComponent *component)
 
std::optional< Vector2operator() (const CubicPathComponent *component)
 
std::optional< Vector2operator() (std::monostate monostate)
 

Detailed Description

Definition at line 155 of file path_component.h.

Member Function Documentation

◆ operator()() [1/4]

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

Definition at line 339 of file path_component.cc.

340 {
341 if (!component) {
342 return std::nullopt;
343 }
344 return component->GetEndDirection();
345}

◆ operator()() [2/4]

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

Definition at line 323 of file path_component.cc.

324 {
325 if (!component) {
326 return std::nullopt;
327 }
328 return component->GetEndDirection();
329}

◆ operator()() [3/4]

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

Definition at line 331 of file path_component.cc.

332 {
333 if (!component) {
334 return std::nullopt;
335 }
336 return component->GetEndDirection();
337}

◆ operator()() [4/4]

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

Definition at line 159 of file path_component.h.

159 {
160 return std::nullopt;
161 }

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