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

#include <Win32WindowHost.h>

类 z8::Win32WindowHost 继承关系图:
Inheritance graph
[图例]
z8::Win32WindowHost 的协作图:
Collaboration graph
[图例]

Protected 成员函数

 Win32WindowHost ()=default
 
virtual ~Win32WindowHost ()
 
void AttachWindow (HWND window, EventTarget &inputTarget, HWND coordinateWindow=nullptr)
 
void DetachWindow ()
 
bool DispatchInputMessage (HWND window, UINT message, WPARAM wParam, LPARAM lParam, LRESULT &result)
 
virtual LRESULT HandleWindowMessage (HWND window, UINT message, WPARAM wParam, LPARAM lParam)=0
 

Private 成员函数

float ResolveCoordinateScale () const
 
MouseMovArgs ResolveMouseArgs (HWND sourceWindow, UINT message, WPARAM wParam, LPARAM lParam)
 

静态 Private 成员函数

static MouseButton ResolveMouseButton (UINT message, WPARAM wParam)
 
static LPCWSTR ResolveSystemCursor (MouseCursor cursor)
 
static LRESULT CALLBACK WindowProcedure (HWND window, UINT message, WPARAM wParam, LPARAM lParam)
 

Private 属性

EventTargetInputTarget = nullptr
 
HWND AttachedWindow = nullptr
 
HWND InputCoordinateWindow = nullptr
 
POINT LastPointer {}
 
bool HasPointerPosition = false
 
bool ReleasingCapture = false
 

详细描述

Win32 HWND 与保留式事件目标之间的共享适配层。

该类只负责 WNDPROC 对象转发、坐标归一化和输入状态,不拥有 HWND,也不 参与交换链或窗口业务生命周期;主 Application 与 Floating host 因而可以 复用同一套平台消息语义,同时保留各自的 resize/render 策略。

构造及析构函数说明

◆ Win32WindowHost()

z8::Win32WindowHost::Win32WindowHost ( )
protecteddefault

◆ ~Win32WindowHost()

Win32WindowHost::~Win32WindowHost ( )
protectedvirtual
函数调用图:

成员函数说明

◆ AttachWindow()

void Win32WindowHost::AttachWindow ( HWND window,
EventTarget & inputTarget,
HWND coordinateWindow = nullptr )
protected

绑定现有 HWND;coordinateWindow 决定事件坐标系,Floating window 可将 本地客户坐标统一映射回主 Layout 客户区。

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

◆ DetachWindow()

void Win32WindowHost::DetachWindow ( )
protected
这是这个函数的调用关系图:

◆ DispatchInputMessage()

bool Win32WindowHost::DispatchInputMessage ( HWND window,
UINT message,
WPARAM wParam,
LPARAM lParam,
LRESULT & result )
protected

处理共享输入消息;返回 true 表示 result 已包含窗口过程结果。

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

◆ HandleWindowMessage()

virtual LRESULT z8::Win32WindowHost::HandleWindowMessage ( HWND window,
UINT message,
WPARAM wParam,
LPARAM lParam )
protectedpure virtual

◆ ResolveCoordinateScale()

float Win32WindowHost::ResolveCoordinateScale ( ) const
private
这是这个函数的调用关系图:

◆ ResolveMouseArgs()

MouseMovArgs Win32WindowHost::ResolveMouseArgs ( HWND sourceWindow,
UINT message,
WPARAM wParam,
LPARAM lParam )
private
函数调用图:
这是这个函数的调用关系图:

◆ ResolveMouseButton()

MouseButton Win32WindowHost::ResolveMouseButton ( UINT message,
WPARAM wParam )
staticprivate
这是这个函数的调用关系图:

◆ ResolveSystemCursor()

LPCWSTR Win32WindowHost::ResolveSystemCursor ( MouseCursor cursor)
staticprivate
这是这个函数的调用关系图:

◆ WindowProcedure()

LRESULT CALLBACK Win32WindowHost::WindowProcedure ( HWND window,
UINT message,
WPARAM wParam,
LPARAM lParam )
staticprivate
这是这个函数的调用关系图:

类成员变量说明

◆ AttachedWindow

HWND z8::Win32WindowHost::AttachedWindow = nullptr
private

◆ HasPointerPosition

bool z8::Win32WindowHost::HasPointerPosition = false
private

◆ InputCoordinateWindow

HWND z8::Win32WindowHost::InputCoordinateWindow = nullptr
private

◆ InputTarget

EventTarget* z8::Win32WindowHost::InputTarget = nullptr
private

◆ LastPointer

POINT z8::Win32WindowHost::LastPointer {}
private

◆ ReleasingCapture

bool z8::Win32WindowHost::ReleasingCapture = false
private

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