Flutter Engine
The Flutter Engine
third_party
skia
tools
sk_app
ios
Window_ios.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef Window_ios_DEFINED
9
#define Window_ios_DEFINED
10
11
#include "
src/core/SkChecksum.h
"
12
#include "
src/core/SkTDynamicHash.h
"
13
#include "
tools/sk_app/Window.h
"
14
15
#import <UIKit/UIKit.h>
16
17
namespace
sk_app
{
18
19
class
Window_ios
:
public
Window
{
20
public
:
21
Window_ios
()
22
:
Window
()
23
, fWindow(nil) {}
24
~Window_ios
()
override
{ this->closeWindow(); }
25
26
bool
initWindow
();
27
28
void
setTitle
(
const
char
*)
override
{}
29
void
show
()
override
{}
30
31
bool
attach
(
BackendType
)
override
;
32
33
void
onInval
()
override
;
34
35
static
void
PaintWindow
();
36
37
UIWindow*
uiWindow
() {
return
fWindow; }
38
39
static
Window_ios
*
MainWindow
() {
return
gWindow; }
40
41
private
:
42
void
closeWindow();
43
44
UIWindow* fWindow;
45
46
static
Window_ios
* gWindow;
// there should be only one
47
};
48
49
}
// namespace sk_app
50
51
//////////////////////////////////////////////////////////////////////////
52
53
@interface
MainView
: UIView
54
55
- (
MainView
*)initWithWindow:(
sk_app
::Window_ios*)initWindow;
56
57
@end
58
59
#endif
SkChecksum.h
SkTDynamicHash.h
Window.h
sk_app::Window_ios
Definition:
Window_ios.h:19
sk_app::Window_ios::onInval
void onInval() override
Definition:
Window_ios.mm:117
sk_app::Window_ios::attach
bool attach(BackendType) override
Definition:
Window_ios.mm:80
sk_app::Window_ios::initWindow
bool initWindow()
Definition:
Window_ios.mm:44
sk_app::Window_ios::MainWindow
static Window_ios * MainWindow()
Definition:
Window_ios.h:39
sk_app::Window_ios::setTitle
void setTitle(const char *) override
Definition:
Window_ios.h:28
sk_app::Window_ios::~Window_ios
~Window_ios() override
Definition:
Window_ios.h:24
sk_app::Window_ios::show
void show() override
Definition:
Window_ios.h:29
sk_app::Window_ios::PaintWindow
static void PaintWindow()
Definition:
Window_ios.mm:113
sk_app::Window_ios::uiWindow
UIWindow * uiWindow()
Definition:
Window_ios.h:37
sk_app::Window_ios::Window_ios
Window_ios()
Definition:
Window_ios.h:21
sk_app::Window
Definition:
Window.h:40
sk_app::Window::BackendType
BackendType
Definition:
Window.h:63
MainView
Definition:
Window_ios.h:54
sk_app
Definition:
surface_glue_android.cpp:31
Generated on Sun Jun 23 2024 21:56:50 for Flutter Engine by
1.9.4