Flutter Engine
The Flutter Engine
|
#import <FlutterMutatorView.h>
Instance Methods | |
(nonnull instancetype) | - initWithPlatformView:cursorCoordiator: |
Designated initializer. More... | |
(nonnull instancetype) | - initWithPlatformView: |
(void) | - applyFlutterLayer: |
(void) | - resetHitTestRegion |
Resets hit hit testing region for this mutator view. More... | |
(void) | - addHitTestIgnoreRegion: |
(NSMutableArray *) | - pathClipViews [implementation] |
(NSView *) | - platformViewContainer [implementation] |
(instancetype) | - initWithPlatformView: [implementation] |
(instancetype) | - initWithPlatformView:cursorCoordiator: [implementation] |
(void) | - mouseMoved: [implementation] |
(NSView *) | - hitTest: [implementation] |
(BOOL) | - isFlipped [implementation] |
(CGFloat) | - contentsScale [implementation] |
Returns the scale factor to translate logical pixels to physical pixels for this view. More... | |
(void) | - updatePathClipViewsWithPaths: [implementation] |
Updates the nested stack of clip views that host the platform view. More... | |
(void) | - updatePlatformViewWithBounds:transformedBounds:transform:clipRect: [implementation] |
(void) | - applyFlutterLayer: [implementation] |
Protected Attributes | |
NSMutableArray * | _pathClipViews |
NSView * | _platformViewContainer |
NSView * | _platformView |
FlutterCursorCoordinator * | _cursorCoordinator |
NSView * | _trackingAreaContainer |
NSTrackingArea * | _trackingArea |
std::vector< CGRect > | _hitTestIgnoreRegion |
Properties | |
NSView * | platformView |
Returns wrapped platform view. More... | |
FlutterMutatorView contains platform view and is responsible for applying FlutterLayer mutations to it.
Definition at line 63 of file FlutterMutatorView.h.
- (void) addHitTestIgnoreRegion: | (CGRect) | region |
Adds rectangle (in local vie coordinates) to hit test ignore region (part of view obscured by Flutter contents).
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Whenever possible view will be clipped using layer bounds. If clipping to path is needed, CAShapeLayer(s) will be used as mask. Clipping to round rect only clips to path if round corners are intersected.
Paths in global logical coordinates that need to be clipped to.
Update PlatformViewContainer, PlatformView, and apply transforms and axis-aligned clip rect.
Definition at line 417 of file FlutterMutatorView.mm.
- (void) applyFlutterLayer: | (nonnull const flutter::PlatformViewLayer *) | layer |
Applies mutations from FlutterLayer to the platform view. This may involve creating or removing intermediate subviews depending on current state and requested mutations.
|
implementation |
Returns the scale factor to translate logical pixels to physical pixels for this view.
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Definition at line 417 of file FlutterMutatorView.mm.
- (nonnull instancetype) initWithPlatformView: | (nonnull NSView *) | platformView |
|
implementation |
Definition at line 417 of file FlutterMutatorView.mm.
- (nonnull instancetype) initWithPlatformView: | (nonnull NSView *) | platformView | |
cursorCoordiator: | (nullable FlutterCursorCoordinator *) | coordinator | |
Designated initializer.
|
implementation |
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Provided by category FlutterMutatorView(Private).
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Provided by category FlutterMutatorView(Private).
Definition at line 417 of file FlutterMutatorView.mm.
- (void) resetHitTestRegion |
Resets hit hit testing region for this mutator view.
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Updates the nested stack of clip views that host the platform view.
Definition at line 417 of file FlutterMutatorView.mm.
|
implementation |
Updates the PlatformView and PlatformView container views.
Re-nests _platformViewContainer in the innermost clip view, applies transforms to the underlying CALayer, adds the platform view as a subview of the container, and sets the axis-aligned clip rect around the tranformed view.
Definition at line 417 of file FlutterMutatorView.mm.
|
protected |
Definition at line 104 of file FlutterMutatorView.mm.
|
protected |
Definition at line 114 of file FlutterMutatorView.mm.
|
protected |
Definition at line 96 of file FlutterMutatorView.mm.
|
protected |
Definition at line 102 of file FlutterMutatorView.mm.
|
protected |
Definition at line 100 of file FlutterMutatorView.mm.
|
protected |
Definition at line 111 of file FlutterMutatorView.mm.
|
protected |
Definition at line 108 of file FlutterMutatorView.mm.
|
readatomicassign |
Returns wrapped platform view.
Definition at line 72 of file FlutterMutatorView.h.