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 "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h" 6 7 #import <Cocoa/Cocoa.h> 8 9 #import "flutter/shell/platform/embedder/embedder.h" 10 11 @interface FlutterEngine () 12 13 /** 14 * True if the engine is currently running. 15 */ 16 @property(nonatomic, readonly) BOOL running; 17 18 /** 19 * The resource context used by the engine for texture uploads. FlutterViews associated with this 20 * engine should be created to share with this context. 21 */ 22 @property(nonatomic, readonly, nullable) NSOpenGLContext* resourceContext; 23 24 /** 25 * Informs the engine that the associated view controller's view size has changed. 26 */ 27 - (void)updateWindowMetrics; 28 29 /** 30 * Dispatches the given pointer event data to engine. 31 */ 32 - (void)sendPointerEvent:(const FlutterPointerEvent&)event; 33 34 @end 35