slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Window.h
浏览该文件的文档.
1//
2// Created by zhou_zhengming on 2026/5/7.
3//
4
5#pragma once
6
7#include <string>
8#include <windows.h>
9
10namespace z8 {
11
12class Window {
13public:
14 HINSTANCE Inst;
15 HWND Wnd;
16 WNDCLASSW* WndClass;
17
18 int Width = 960;
19 int Height = 540;
20 std::wstring Caption = L"window";
21
22public:
23 Window();
24 void Open() const;
25 float AspectRatio() const;
26
27public:
28 inline static HINSTANCE Instance;
29 inline static int AliveCount;
30
31private:
32 static bool Init();
33 inline static bool IsInit = Init();
34 inline static WNDCLASSW DefaultWndClass;
35};
36} // namespace z8
Definition Window.h:12
static WNDCLASSW DefaultWndClass
Definition Window.h:34
float AspectRatio() const
Definition Window.cpp:33
std::wstring Caption
Definition Window.h:20
static int AliveCount
Definition Window.h:29
static HINSTANCE Instance
Definition Window.h:28
static bool Init()
Definition Window.cpp:37
WNDCLASSW * WndClass
Definition Window.h:16
Window()
Definition Window.cpp:11
int Width
Definition Window.h:18
HWND Wnd
Definition Window.h:15
void Open() const
Definition Window.cpp:28
int Height
Definition Window.h:19
HINSTANCE Inst
Definition Window.h:14
static bool IsInit
Definition Window.h:33
Definition Application.h:14