Flutter Engine
The Flutter Engine
Instance Methods | Protected Attributes | List of all members
FlutterResponderWrapper Class Reference
Inheritance diagram for FlutterResponderWrapper:

Instance Methods

(instancetype) - initWithResponder: [implementation]
 
(void) - keyDown: [implementation]
 
(void) - keyUp: [implementation]
 
(BOOL- performKeyEquivalent: [implementation]
 
(void) - flagsChanged: [implementation]
 

Protected Attributes

NSResponder * _responder
 

Detailed Description

Responder wrapper that forwards key events to another responder. This is a necessary middle step for mocking responder because when setting the responder to controller AppKit will access ivars of the objects, which means it must extend NSResponder instead of just implementing the selectors.

Definition at line 46 of file FlutterViewControllerTest.mm.

Method Documentation

◆ flagsChanged:

- (void) flagsChanged: (NSEvent*)  event
implementation

Definition at line 47 of file FlutterViewControllerTest.mm.

72 :(NSEvent*)event {
73 [_responder flagsChanged:event];
74}
FlKeyEvent * event

◆ initWithResponder:

- (instancetype) initWithResponder: (NSResponder*)  responder
implementation

Definition at line 47 of file FlutterViewControllerTest.mm.

53 :(NSResponder*)responder {
54 if (self = [super init]) {
55 _responder = responder;
56 }
57 return self;
58}
static bool init()

◆ keyDown:

- (void) keyDown: (NSEvent*)  event
implementation

Definition at line 47 of file FlutterViewControllerTest.mm.

60 :(NSEvent*)event {
61 [_responder keyDown:event];
62}

◆ keyUp:

- (void) keyUp: (NSEvent*)  event
implementation

Definition at line 47 of file FlutterViewControllerTest.mm.

64 :(NSEvent*)event {
65 [_responder keyUp:event];
66}

◆ performKeyEquivalent:

- (BOOL) performKeyEquivalent: (NSEvent*)  event
implementation

Definition at line 47 of file FlutterViewControllerTest.mm.

68 :(NSEvent*)event {
69 return [_responder performKeyEquivalent:event];
70}

Member Data Documentation

◆ _responder

- (NSResponder*) _responder
protected

Definition at line 47 of file FlutterViewControllerTest.mm.


The documentation for this class was generated from the following file: