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

#include <skpath_bridge.h>

Inheritance diagram for fontations_ffi::ColorPainterWrapper:
sk_fontations::BoundsPainter sk_fontations::ColorPainter

Public Member Functions

virtual ~ColorPainterWrapper ()=default
 
virtual void push_transform (const Transform &transform)=0
 
virtual void pop_transform ()=0
 
virtual void push_clip_glyph (uint16_t glyph_id)=0
 
virtual void push_clip_rectangle (float x_min, float y_min, float x_max, float y_max)=0
 
virtual void pop_clip ()=0
 
virtual void fill_solid (uint16_t palette_index, float alpha)=0
 
virtual void fill_linear (const FillLinearParams &fill_linear_params, BridgeColorStops &stops, uint8_t extend_mode)=0
 
virtual void fill_radial (const FillRadialParams &fill_radial_params, BridgeColorStops &stops, uint8_t extend_mode)=0
 
virtual void fill_sweep (const FillSweepParams &, BridgeColorStops &stops, uint8_t extend_mode)=0
 
virtual void fill_glyph_solid (uint16_t glyph_id, uint16_t palette_index, float alpha)=0
 
virtual void fill_glyph_radial (uint16_t glyph_id, const fontations_ffi::Transform &transform, const fontations_ffi::FillRadialParams &fill_radial_params, fontations_ffi::BridgeColorStops &stops, uint8_t)=0
 
virtual void fill_glyph_linear (uint16_t glyph_id, const fontations_ffi::Transform &transform, const fontations_ffi::FillLinearParams &fill_linear_params, fontations_ffi::BridgeColorStops &stops, uint8_t)=0
 
virtual void fill_glyph_sweep (uint16_t glyph_id, const fontations_ffi::Transform &transform, const fontations_ffi::FillSweepParams &fill_sweep_params, fontations_ffi::BridgeColorStops &stops, uint8_t)=0
 
virtual void push_layer (uint8_t colrV1CompositeMode)=0
 
virtual void pop_layer ()=0
 

Detailed Description

C++ pure virtual interface, exposed to Rust side for receiving COLRv0/COLRv1 drawing callback matching Skrifa's ColorPainter trait.

Definition at line 46 of file skpath_bridge.h.

Constructor & Destructor Documentation

◆ ~ColorPainterWrapper()

virtual fontations_ffi::ColorPainterWrapper::~ColorPainterWrapper ( )
virtualdefault

Member Function Documentation

◆ fill_glyph_linear()

virtual void fontations_ffi::ColorPainterWrapper::fill_glyph_linear ( uint16_t  glyph_id,
const fontations_ffi::Transform &  transform,
const fontations_ffi::FillLinearParams &  fill_linear_params,
fontations_ffi::BridgeColorStops &  stops,
uint8_t   
)
pure virtual

◆ fill_glyph_radial()

virtual void fontations_ffi::ColorPainterWrapper::fill_glyph_radial ( uint16_t  glyph_id,
const fontations_ffi::Transform &  transform,
const fontations_ffi::FillRadialParams &  fill_radial_params,
fontations_ffi::BridgeColorStops &  stops,
uint8_t   
)
pure virtual

◆ fill_glyph_solid()

virtual void fontations_ffi::ColorPainterWrapper::fill_glyph_solid ( uint16_t  glyph_id,
uint16_t  palette_index,
float  alpha 
)
pure virtual

◆ fill_glyph_sweep()

virtual void fontations_ffi::ColorPainterWrapper::fill_glyph_sweep ( uint16_t  glyph_id,
const fontations_ffi::Transform &  transform,
const fontations_ffi::FillSweepParams &  fill_sweep_params,
fontations_ffi::BridgeColorStops &  stops,
uint8_t   
)
pure virtual

◆ fill_linear()

virtual void fontations_ffi::ColorPainterWrapper::fill_linear ( const FillLinearParams &  fill_linear_params,
BridgeColorStops &  stops,
uint8_t  extend_mode 
)
pure virtual

◆ fill_radial()

virtual void fontations_ffi::ColorPainterWrapper::fill_radial ( const FillRadialParams &  fill_radial_params,
BridgeColorStops &  stops,
uint8_t  extend_mode 
)
pure virtual

◆ fill_solid()

virtual void fontations_ffi::ColorPainterWrapper::fill_solid ( uint16_t  palette_index,
float  alpha 
)
pure virtual

◆ fill_sweep()

virtual void fontations_ffi::ColorPainterWrapper::fill_sweep ( const FillSweepParams &  ,
BridgeColorStops &  stops,
uint8_t  extend_mode 
)
pure virtual

◆ pop_clip()

virtual void fontations_ffi::ColorPainterWrapper::pop_clip ( )
pure virtual

◆ pop_layer()

virtual void fontations_ffi::ColorPainterWrapper::pop_layer ( )
pure virtual

◆ pop_transform()

virtual void fontations_ffi::ColorPainterWrapper::pop_transform ( )
pure virtual

◆ push_clip_glyph()

virtual void fontations_ffi::ColorPainterWrapper::push_clip_glyph ( uint16_t  glyph_id)
pure virtual

◆ push_clip_rectangle()

virtual void fontations_ffi::ColorPainterWrapper::push_clip_rectangle ( float  x_min,
float  y_min,
float  x_max,
float  y_max 
)
pure virtual

◆ push_layer()

virtual void fontations_ffi::ColorPainterWrapper::push_layer ( uint8_t  colrV1CompositeMode)
pure virtual

◆ push_transform()

virtual void fontations_ffi::ColorPainterWrapper::push_transform ( const Transform &  transform)
pure virtual

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