slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 静态 Public 属性 | 静态 Private 成员函数 | 静态 Private 属性 | 所有成员列表
z8::Window类 参考

#include <Window.h>

Public 成员函数

 Window ()
 
float AspectRatio () const
 
float LogicalHeight () const
 
float LogicalWidth () const
 
void Open () const
 
void UpdateDpi (unsigned dpi)
 

Public 属性

HINSTANCE Inst
 
HWND Wnd
 
WNDCLASSWWndClass
 
int Width = 1440
 
int Height = 840
 
unsigned Dpi = USER_DEFAULT_SCREEN_DPI
 
float DpiScale = 1.0f
 
std::wstring Caption = L"window"
 

静态 Public 属性

static HINSTANCE Instance
 
static int AliveCount
 

静态 Private 成员函数

static bool Init ()
 

静态 Private 属性

static bool IsInit = Init()
 
static WNDCLASSW DefaultWndClass
 

构造及析构函数说明

◆ Window()

z8::Window::Window ( )
函数调用图:

成员函数说明

◆ AspectRatio()

float Window::AspectRatio ( ) const

◆ Init()

bool Window::Init ( )
staticprivate

◆ LogicalHeight()

float Window::LogicalHeight ( ) const
这是这个函数的调用关系图:

◆ LogicalWidth()

float Window::LogicalWidth ( ) const
这是这个函数的调用关系图:

◆ Open()

void Window::Open ( ) const
这是这个函数的调用关系图:

◆ UpdateDpi()

void Window::UpdateDpi ( unsigned dpi)

更新窗口物理 DPI;Layout 始终通过 LogicalWidth/Height 消费 96 DPI 坐标。

这是这个函数的调用关系图:

类成员变量说明

◆ AliveCount

int z8::Window::AliveCount
inlinestatic

◆ Caption

std::wstring z8::Window::Caption = L"window"

◆ DefaultWndClass

WNDCLASSW z8::Window::DefaultWndClass
inlinestaticprivate

◆ Dpi

unsigned z8::Window::Dpi = USER_DEFAULT_SCREEN_DPI

◆ DpiScale

float z8::Window::DpiScale = 1.0f

◆ Height

int z8::Window::Height = 840

◆ Inst

HINSTANCE z8::Window::Inst

◆ Instance

HINSTANCE z8::Window::Instance
inlinestatic

◆ IsInit

bool z8::Window::IsInit = Init()
inlinestaticprivate

◆ Width

int z8::Window::Width = 1440

◆ Wnd

HWND z8::Window::Wnd

◆ WndClass

WNDCLASSW* z8::Window::WndClass

该类的文档由以下文件生成: