Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::TranslateEntry Class Reference

Inherits flutter::LayerStateStack::StateEntry.

Public Member Functions

 TranslateEntry (SkScalar tx, SkScalar ty)
 
void apply (LayerStateStack *stack) const override
 
void update_mutators (MutatorsStack *mutators_stack) const override
 

Detailed Description

Definition at line 373 of file layer_state_stack.cc.

Constructor & Destructor Documentation

◆ TranslateEntry()

flutter::TranslateEntry::TranslateEntry ( SkScalar  tx,
SkScalar  ty 
)
inline

Definition at line 375 of file layer_state_stack.cc.

375: tx_(tx), ty_(ty) {}

Member Function Documentation

◆ apply()

void flutter::TranslateEntry::apply ( LayerStateStack stack) const
inlineoverride

Definition at line 377 of file layer_state_stack.cc.

377 {
378 stack->delegate_->translate(tx_, ty_);
379 }

◆ update_mutators()

void flutter::TranslateEntry::update_mutators ( MutatorsStack mutators_stack) const
inlineoverride

Definition at line 380 of file layer_state_stack.cc.

380 {
381 mutators_stack->PushTransform(SkMatrix::Translate(tx_, ty_));
382 }
static SkMatrix Translate(SkScalar dx, SkScalar dy)
Definition: SkMatrix.h:91

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