Flutter macOS Embedder
FlutterMutatorView.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
#import <Cocoa/Cocoa.h>
6
7
#include "flutter/shell/platform/embedder/embedder.h"
8
9
/// FlutterMutatorView contains platform view and is responsible for applying
10
/// FlutterLayer mutations to it.
11
@interface
FlutterMutatorView
: NSView
12
13
/// Designated initializer.
14
- (nonnull instancetype)initWithPlatformView:(nonnull NSView*)platformView;
15
16
/// Returns wrapped platform view.
17
@property
(readonly, nonnull) NSView*
platformView
;
18
19
/// Applies mutations from FlutterLayer to the platform view. This may involve
20
/// creating or removing intermediate subviews depending on current state and
21
/// requested mutations.
22
- (void)applyFlutterLayer:(nonnull const FlutterLayer*)layer;
23
24
@end
FlutterMutatorView
Definition:
FlutterMutatorView.h:11
FlutterMutatorView::platformView
NSView * platformView
Returns wrapped platform view.
Definition:
FlutterMutatorView.h:17
shell
platform
darwin
macos
framework
Source
FlutterMutatorView.h
Generated by
1.8.17