mirror of
https://github.com/encounter/engine.git
synced 2026-07-10 03:18:43 -07:00
44 lines
1.8 KiB
Objective-C
44 lines
1.8 KiB
Objective-C
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_OVERLAY_VIEW_H_
|
|
#define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_OVERLAY_VIEW_H_
|
|
|
|
#include <UIKit/UIKit.h>
|
|
|
|
#include <memory>
|
|
|
|
#import "FlutterPlatformViews_Internal.h"
|
|
|
|
#include "flutter/fml/memory/weak_ptr.h"
|
|
#include "flutter/shell/common/shell.h"
|
|
#include "flutter/shell/platform/darwin/ios/ios_gl_context.h"
|
|
#include "flutter/shell/platform/darwin/ios/ios_surface.h"
|
|
#include "flutter/shell/platform/darwin/ios/ios_surface_gl.h"
|
|
|
|
/// UIViews that are used by |FlutterPlatformViews| to present Flutter
|
|
/// rendering on top of system compositor rendering (ex. a web view).
|
|
///
|
|
/// When there is a view composited by the system compositor within a Flutter
|
|
/// view hierarchy, instead of rendering into a single render target, Flutter
|
|
/// renders into multiple render targets (depending on the number of
|
|
/// interleaving levels between Flutter & non-Flutter contents). While the
|
|
/// FlutterView contains the backing store for the root render target, the
|
|
/// FlutterOverlay view contains the backing stores for the rest. The overlay
|
|
/// views also handle touch propagation and the like for touches that occurs
|
|
/// either on overlays or otherwise may be intercepted by the platform views.
|
|
@interface FlutterOverlayView : UIView
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
|
|
- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
|
|
|
|
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
|
- (instancetype)initWithContentsScale:(CGFloat)contentsScale;
|
|
- (std::unique_ptr<flutter::IOSSurface>)createSurface:
|
|
(std::shared_ptr<flutter::IOSGLContext>)gl_context;
|
|
|
|
@end
|
|
|
|
#endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_OVERLAY_VIEW_H_
|