Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::PathComponentStartDirectionVisitor 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 146 of file path_component.h.

Member Function Documentation

◆ operator()() [1/4]

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

Definition at line 315 of file path_component.cc.

316 {
317 if (!component) {
318 return std::nullopt;
319 }
320 return component->GetStartDirection();
321}

◆ operator()() [2/4]

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

Definition at line 299 of file path_component.cc.

300 {
301 if (!component) {
302 return std::nullopt;
303 }
304 return component->GetStartDirection();
305}

◆ operator()() [3/4]

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

Definition at line 307 of file path_component.cc.

308 {
309 if (!component) {
310 return std::nullopt;
311 }
312 return component->GetStartDirection();
313}

◆ operator()() [4/4]

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

Definition at line 150 of file path_component.h.

150 {
151 return std::nullopt;
152 }

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