Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
ChildClippingView Class Reference

#include <FlutterPlatformViews_Internal.h>

Inheritance diagram for ChildClippingView:

Instance Methods

(void) - applyBlurBackdropFilters:
 
(NSMutableArray *) - backdropFilterSubviews
 
(BOOL- pointInside:withEvent: [implementation]
 
(void) - dealloc [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 185 of file FlutterPlatformViews_Internal.mm.

203 :(NSArray<PlatformViewFilter*>*)filters {
204 FML_DCHECK(self.filters.count == self.backdropFilterSubviews.count);
205 if (self.filters.count == 0 && filters.count == 0) {
206 return;
207 }
208 self.filters = filters;
209 NSUInteger index = 0;
210 for (index = 0; index < self.filters.count; index++) {
211 UIVisualEffectView* backdropFilterView;
212 PlatformViewFilter* filter = self.filters[index];
213 if (self.backdropFilterSubviews.count <= index) {
214 backdropFilterView = filter.backdropFilterView;
215 [self addSubview:backdropFilterView];
216 [self.backdropFilterSubviews addObject:backdropFilterView];
217 } else {
218 [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
219 }
220 }
221 for (NSUInteger i = self.backdropFilterSubviews.count; i > index; i--) {
222 [self.backdropFilterSubviews[i - 1] removeFromSuperview];
223 [self.backdropFilterSubviews removeLastObject];
224 }
225}
#define FML_DCHECK(condition)
Definition logging.h:103
NSArray< PlatformViewFilter * > * filters

◆ backdropFilterSubviews

- (NSMutableArray *) backdropFilterSubviews

Definition at line 185 of file FlutterPlatformViews_Internal.mm.

237 {
238 if (!_backdropFilterSubviews) {
239 _backdropFilterSubviews = [[NSMutableArray alloc] init];
240 }
241 return _backdropFilterSubviews;
242}

◆ dealloc

- (void) dealloc
implementation

Definition at line 185 of file FlutterPlatformViews_Internal.mm.

227 {
228 [_filters release];
229 _filters = nil;
230
231 [_backdropFilterSubviews release];
232 _backdropFilterSubviews = nil;
233
234 [super dealloc];
235}

◆ pointInside:withEvent:

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

Definition at line 185 of file FlutterPlatformViews_Internal.mm.

194 :(CGPoint)point withEvent:(UIEvent*)event {
195 for (UIView* view in self.subviews) {
196 if ([view pointInside:[self convertPoint:point toView:view] withEvent:event]) {
197 return YES;
198 }
199 }
200 return NO;
201}
FlKeyEvent * event
for(int row=0;row< height;++row)

Property Documentation

◆ filters

- (NSArray<PlatformViewFilter*>*) filters
readwritenonatomicretainimplementation

Provided by category ChildClippingView().

Definition at line 184 of file FlutterPlatformViews_Internal.mm.


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