Flutter Engine
The Flutter Engine
FlutterMouseCursorPlugin.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#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMOUSECURSORPLUGIN_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMOUSECURSORPLUGIN_H_
7
8#import <Cocoa/Cocoa.h>
9
10#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterBinaryMessenger.h"
11#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h"
12
14- (void)didUpdateMouseCursor:(nonnull NSCursor*)cursor;
15@end
16
17/**
18 * A plugin to handle mouse cursor.
19 *
20 * Responsible for bridging the native macOS mouse cursor system with the
21 * Flutter framework mouse cursor classes, via system channels.
22 */
24
25+ (void)registerWithRegistrar:(nonnull id<FlutterPluginRegistrar>)registrar
26 delegate:(nullable id<FlutterMouseCursorPluginDelegate>)delegate;
27
28@end
29
30#endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMOUSECURSORPLUGIN_H_