5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMUTATORVIEW_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMUTATORVIEW_H_
11#include "flutter/shell/platform/embedder/embedder.h"
16class PlatformViewLayer {
23 const std::vector<FlutterPlatformViewMutation>&
mutations,
28 const std::vector<FlutterPlatformViewMutation>&
mutations()
const {
return mutations_; }
34 std::vector<FlutterPlatformViewMutation> mutations_;
54@property(readonly, nonatomic)
BOOL cleanupScheduled;
56- (void)processMouseMoveEvent:(nonnull NSEvent*)event
58 overlayRegion:(const
std::vector<CGRect>&)region;
66- (nonnull instancetype)initWithPlatformView:(nonnull NSView*)platformView
69- (nonnull instancetype)initWithPlatformView:(nonnull NSView*)platformView;
77- (void)applyFlutterLayer:(nonnull const
flutter::PlatformViewLayer*)layer;
84- (void)addHitTestIgnoreRegion:(CGRect)region;
Exposed methods for testing.
int64_t FlutterPlatformViewIdentifier
NSView * platformView
Returns wrapped platform view.
void resetHitTestRegion()
Resets hit hit testing region for this mutator view.
A structure to represent a 2D point.
A structure to represent the width and height.