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 <windows.h> 12 #include "../Window.h" 13 14 namespace sk_app { 15 16 class Window_win : public Window { 17 public: Window_win()18 Window_win() : Window() {} 19 ~Window_win() override; 20 21 bool init(HINSTANCE instance); 22 23 void setTitle(const char*) override; 24 void show() override; 25 26 bool attach(BackendType) override; 27 28 void onInval() override; 29 30 void setRequestedDisplayParams(const DisplayParams&, bool allowReattach) override; 31 32 private: 33 void closeWindow(); 34 35 HINSTANCE fHInstance; 36 HWND fHWnd; 37 BackendType fBackend; 38 39 typedef Window INHERITED; 40 }; 41 42 } // namespace sk_app 43 44 #endif 45