| Flutter Impeller |

mask_filter.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_IMPELLER_TOOLKIT_INTEROP_MASK_FILTER_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_MASK_FILTER_H_
7
8 #include "flutter/display_list/effects/dl_mask_filter.h"
9 #include "impeller/toolkit/interop/impeller.h"
10 #include "impeller/toolkit/interop/object.h"
11
12 namespace impeller::interop {
13
14 class MaskFilter final
15 : public Object<MaskFilter,
16 IMPELLER_INTERNAL_HANDLE_NAME(ImpellerMaskFilter)> {
17 public:
18 static ScopedObject<MaskFilter> MakeBlur(flutter::DlBlurStyle style,
19 float sigma);
20
21 explicit MaskFilter(std::shared_ptr<flutter::DlMaskFilter> mask_filter);
22
23 ~MaskFilter() override;
24
25 MaskFilter(const MaskFilter&) = delete;
26
27 MaskFilter& operator=(const MaskFilter&) = delete;
28
29 const std::shared_ptr<flutter::DlMaskFilter>& GetMaskFilter() const;
30
31 public:
32 std::shared_ptr<flutter::DlMaskFilter> mask_filter_;
33 };
34
35 } // namespace impeller::interop
36
37 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_MASK_FILTER_H_
impeller::interop::MaskFilter
Definition: mask_filter.h:16
impeller::interop::MaskFilter::mask_filter_
std::shared_ptr< flutter::DlMaskFilter > mask_filter_
Definition: mask_filter.h:32
impeller::interop::MaskFilter::~MaskFilter
~MaskFilter() override
impeller::interop::MaskFilter::MaskFilter
MaskFilter(const MaskFilter &)=delete
impeller::interop::MaskFilter::operator=
MaskFilter & operator=(const MaskFilter &)=delete
impeller::interop::MaskFilter::GetMaskFilter
const std::shared_ptr< flutter::DlMaskFilter > & GetMaskFilter() const
Definition: mask_filter.cc:23
impeller::interop::MaskFilter::MaskFilter
MaskFilter(std::shared_ptr< flutter::DlMaskFilter > mask_filter)
Definition: mask_filter.cc:18
impeller::interop::MaskFilter::MakeBlur
static ScopedObject< MaskFilter > MakeBlur(flutter::DlBlurStyle style, float sigma)
Definition: mask_filter.cc:9
impeller::interop::Object
Definition: object.h:56
impeller::interop::ScopedObject
Definition: object.h:67
impeller.h
impeller::interop
Definition: color_filter.cc:7
object.h