Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
flutter::testing::WmKeyDownInfo Struct Reference

#include <wm_builders.h>

Public Member Functions

Win32Message Build (LRESULT expected_result=kWmResultDontCheck)
 

Public Attributes

uint32_t key
 
uint8_t scan_code
 
WmFieldExtended extended
 
WmFieldPrevState prev_state
 
uint16_t repeat_count = 1
 

Detailed Description

Definition at line 50 of file wm_builders.h.

Member Function Documentation

◆ Build()

Win32Message flutter::testing::WmKeyDownInfo::Build ( LRESULT  expected_result = kWmResultDontCheck)

Definition at line 10 of file wm_builders.cc.

10 {
11 LPARAM lParam = (repeat_count << 0) | (scan_code << 16) | (extended << 24) |
12 (prev_state << 30);
13 return Win32Message{
14 .message = WM_KEYDOWN,
15 .wParam = key,
16 .lParam = lParam,
17 .expected_result = expected_result,
18 };
19}
LONG_PTR LPARAM
Definition: windows_types.h:60

Member Data Documentation

◆ extended

WmFieldExtended flutter::testing::WmKeyDownInfo::extended

Definition at line 55 of file wm_builders.h.

◆ key

uint32_t flutter::testing::WmKeyDownInfo::key

Definition at line 51 of file wm_builders.h.

◆ prev_state

WmFieldPrevState flutter::testing::WmKeyDownInfo::prev_state

Definition at line 57 of file wm_builders.h.

◆ repeat_count

uint16_t flutter::testing::WmKeyDownInfo::repeat_count = 1

Definition at line 63 of file wm_builders.h.

◆ scan_code

uint8_t flutter::testing::WmKeyDownInfo::scan_code

Definition at line 53 of file wm_builders.h.


The documentation for this struct was generated from the following files: