Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
HelloWorld.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 HelloWorld_DEFINED
9#define HelloWorld_DEFINED
10
14#include "tools/sk_app/Window.h"
16
17class SkSurface;
18class SkTypeface;
19
21public:
22 HelloWorld(int argc, char** argv, void* platformData);
23 ~HelloWorld() override;
24
25 void onIdle() override;
26
27 void onBackendCreated() override;
28 void onPaint(SkSurface*) override;
29 bool onChar(SkUnichar c, skui::ModifierKey modifiers) override;
30
31private:
32 void updateTitle();
33
34 sk_app::Window* fWindow;
35 sk_app::Window::BackendType fBackendType;
36 sk_sp<SkTypeface> fTypeface;
37
38 SkScalar fRotationAngle;
39};
40
41#endif
int32_t SkUnichar
Definition SkTypes.h:175
void onIdle() override
~HelloWorld() override
void onPaint(SkSurface *) override
void onBackendCreated() override
bool onChar(SkUnichar c, skui::ModifierKey modifiers) override
float SkScalar
Definition extension.cpp:12
char ** argv
Definition library.h:9
ModifierKey
Definition ModifierKey.h:9