Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Instance Methods | Properties | List of all members
ChildClippingView Class Reference

#import <FlutterPlatformViews_Internal.h>

Inheritance diagram for ChildClippingView:

Instance Methods

(void) - applyBlurBackdropFilters:
 
(NSMutableArray *) - backdropFilterSubviews
 
(BOOL- pointInside:withEvent: [implementation]
 

Properties

NSArray< PlatformViewFilter * > * filters [implementation]
 

Detailed Description

Definition at line 119 of file FlutterPlatformViews_Internal.h.

Method Documentation

◆ applyBlurBackdropFilters:

- (void) applyBlurBackdropFilters: (NSArray<PlatformViewFilter*>*)  filters

Definition at line 176 of file FlutterPlatformViews_Internal.mm.

194 :(NSArray<PlatformViewFilter*>*)filters {
195 FML_DCHECK(self.filters.count == self.backdropFilterSubviews.count);
196 if (self.filters.count == 0 && filters.count == 0) {
197 return;
198 }
199 self.filters = filters;
200 NSUInteger index = 0;
201 for (index = 0; index < self.filters.count; index++) {
202 UIVisualEffectView* backdropFilterView;
203 PlatformViewFilter* filter = self.filters[index];
204 if (self.backdropFilterSubviews.count <= index) {
205 backdropFilterView = filter.backdropFilterView;
206 [self addSubview:backdropFilterView];
207 [self.backdropFilterSubviews addObject:backdropFilterView];
208 } else {
209 [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
210 }
211 }
212 for (NSUInteger i = self.backdropFilterSubviews.count; i > index; i--) {
213 [self.backdropFilterSubviews[i - 1] removeFromSuperview];
214 [self.backdropFilterSubviews removeLastObject];
215 }
216}
#define FML_DCHECK(condition)
Definition: logging.h:103
NSArray< PlatformViewFilter * > * filters
NSMutableArray * backdropFilterSubviews()

◆ backdropFilterSubviews

- (NSMutableArray *) backdropFilterSubviews

Definition at line 176 of file FlutterPlatformViews_Internal.mm.

218 {
219 if (!_backdropFilterSubviews) {
220 _backdropFilterSubviews = [[NSMutableArray alloc] init];
221 }
222 return _backdropFilterSubviews;
223}

◆ pointInside:withEvent:

- (BOOL) pointInside: (CGPoint)  point
withEvent: (UIEvent*)  event 
implementation

Definition at line 176 of file FlutterPlatformViews_Internal.mm.

185 :(CGPoint)point withEvent:(UIEvent*)event {
186 for (UIView* view in self.subviews) {
187 if ([view pointInside:[self convertPoint:point toView:view] withEvent:event]) {
188 return YES;
189 }
190 }
191 return NO;
192}
FlKeyEvent * event

Property Documentation

◆ filters

- (NSArray<PlatformViewFilter*>*) filters
readwritenonatomiccopyimplementation

Definition at line 175 of file FlutterPlatformViews_Internal.mm.


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