Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
Loading...
Searching...
No Matches
clip_path_layer.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_FLOW_LAYERS_CLIP_PATH_LAYER_H_
6
#define FLUTTER_FLOW_LAYERS_CLIP_PATH_LAYER_H_
7
8
#include "
flutter/flow/layers/clip_shape_layer.h
"
9
10
#include "
flutter/display_list/geometry/dl_path.h
"
11
12
namespace
flutter
{
13
14
class
ClipPathLayer
:
public
ClipShapeLayer
<DlPath> {
15
public
:
16
explicit
ClipPathLayer
(
const
DlPath
& clip_path,
17
Clip
clip_behavior
=
Clip::kAntiAlias
);
18
19
protected
:
20
const
DlRect
clip_shape_bounds
()
const override
;
21
22
void
ApplyClip
(
LayerStateStack::MutatorContext
& mutator)
const override
;
23
24
private
:
25
FML_DISALLOW_COPY_AND_ASSIGN
(
ClipPathLayer
);
26
};
27
28
}
// namespace flutter
29
30
#endif
// FLUTTER_FLOW_LAYERS_CLIP_PATH_LAYER_H_
flutter::ClipPathLayer
Definition
clip_path_layer.h:14
flutter::ClipPathLayer::ApplyClip
void ApplyClip(LayerStateStack::MutatorContext &mutator) const override
Definition
clip_path_layer.cc:16
flutter::ClipPathLayer::clip_shape_bounds
const DlRect clip_shape_bounds() const override
Definition
clip_path_layer.cc:12
flutter::ClipShapeLayer
Definition
clip_shape_layer.h:15
flutter::ClipShapeLayer< DlPath >::clip_behavior
Clip clip_behavior() const
Definition
clip_shape_layer.h:113
flutter::DlPath
Definition
dl_path.h:19
flutter::LayerStateStack::MutatorContext
Definition
layer_state_stack.h:156
clip_shape_layer.h
dl_path.h
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
flutter::Clip
Clip
Definition
layer.h:43
flutter::kAntiAlias
@ kAntiAlias
Definition
layer.h:43
impeller::TRect< Scalar >
flow
layers
clip_path_layer.h
Generated on Tue Dec 2 2025 04:46:37 for Flutter Engine Uber Docs by
1.9.8