Flutter Engine
The Flutter Engine
Window_win.h
Go to the documentation of this file.
1/*
2* Copyright 2016 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_win_DEFINED
9#define Window_win_DEFINED
10
11#include "tools/sk_app/Window.h"
12
13#include <windows.h>
14
15namespace sk_app {
16
17class Window_win : public Window {
18public:
20 ~Window_win() override;
21
22 bool init(HINSTANCE instance);
23
24 void setTitle(const char*) override;
25 void show() override;
26
27 bool attach(BackendType) override;
28
29 void onInval() override;
30
31 void setRequestedDisplayParams(const DisplayParams&, bool allowReattach) override;
32
33private:
34 void closeWindow();
35
36 HINSTANCE fHInstance;
37 HWND fHWnd;
38 BackendType fBackend;
39 bool fInitializedBackend = false;
40};
41
42} // namespace sk_app
43
44#endif
void show() override
Definition: Window_win.cpp:345
void onInval() override
Definition: Window_win.cpp:396
void setRequestedDisplayParams(const DisplayParams &, bool allowReattach) override
Definition: Window_win.cpp:400
bool init(HINSTANCE instance)
Definition: Window_win.cpp:60
bool attach(BackendType) override
Definition: Window_win.cpp:350
~Window_win() override
Definition: Window_win.cpp:53
void setTitle(const char *) override
Definition: Window_win.cpp:341
VkInstance instance
Definition: main.cc:48