Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
fontations_ffi::AxisWrapper Class Referenceabstract

#include <skpath_bridge.h>

Inheritance diagram for fontations_ffi::AxisWrapper:
sk_fontations::AxisWrapper

Public Member Functions

virtual ~AxisWrapper ()=default
 
virtual bool populate_axis (size_t i, uint32_t axisTag, float min, float def, float max, bool hidden)=0
 
virtual size_t size () const =0
 

Detailed Description

C++ pure virtual interface type, exposed to Rust side to be able to write out variation design parameters to the caller-side allocated SkFontParameters::Variation::Axis. A direct cast or mapping between a shared C++/Rust struct and a Skia side struct is not possible because the hidden-axis flag is private on SkFontParameters::Variation::Axis.

Definition at line 29 of file skpath_bridge.h.

Constructor & Destructor Documentation

◆ ~AxisWrapper()

virtual fontations_ffi::AxisWrapper::~AxisWrapper ( )
virtualdefault

Member Function Documentation

◆ populate_axis()

virtual bool fontations_ffi::AxisWrapper::populate_axis ( size_t  i,
uint32_t  axisTag,
float  min,
float  def,
float  max,
bool  hidden 
)
pure virtual

Implemented in sk_fontations::AxisWrapper.

◆ size()

virtual size_t fontations_ffi::AxisWrapper::size ( ) const
pure virtual

Implemented in sk_fontations::AxisWrapper.


The documentation for this class was generated from the following file: