Inherits flutter::LayerStateStack::StateEntry.
Definition at line 246 of file layer_state_stack.cc.
◆ OpacityEntry()
| flutter::OpacityEntry::OpacityEntry |
( |
const DlRect & |
bounds, |
|
|
DlScalar |
opacity, |
|
|
const LayerStateStack::RenderingAttributes & |
prev |
|
) |
| |
|
inline |
Definition at line 248 of file layer_state_stack.cc.
251 : bounds_(bounds),
252 opacity_(opacity),
253 old_opacity_(prev.opacity),
254 old_bounds_(prev.save_layer_bounds) {}
◆ apply()
Definition at line 256 of file layer_state_stack.cc.
256 {
257 stack->outstanding_.save_layer_bounds = bounds_;
258 stack->outstanding_.opacity *= opacity_;
259 }
◆ restore()
Definition at line 260 of file layer_state_stack.cc.
260 {
261 stack->outstanding_.save_layer_bounds = old_bounds_;
262 stack->outstanding_.opacity = old_opacity_;
263 }
◆ update_mutators()
| void flutter::OpacityEntry::update_mutators |
( |
MutatorsStack * |
mutators_stack | ) |
const |
|
inlineoverride |
The documentation for this class was generated from the following file: