Project

General

Profile

Change request #698

Create event dispatch class

Added by David Demelier over 1 year ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
libmlk-client
Target version:
-
Start date:
09/21/2017
Due date:
% Done:

100%

Estimated time:
0.30 h
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

Create a dedicated class for dispatching clients events.

dispatcher class

This class have virtual functions for each event.

class dispatcher {
public:
    virtual void handle_key_down(const key_event&) {}
    virtual void handle_key_up(const key_event&) {}
};

Update window

The window's poll member function will pass a dispatcher to the backend.

Associated revisions

Revision 130:f58075b58fa1 (diff)
Added by David Demelier over 1 year ago

Client: create dispatcher class, closes #698

The dispatcher class is the main class that contains several functions to be
called to dispatch UI events.

It is defined as a class because it has to be passed into C++ source files
which can be complicated with templates and our client backend code.

History

#1

Updated by David Demelier over 1 year ago

  • Description updated (diff)
#2

Updated by David Demelier over 1 year ago

  • Description updated (diff)
#3

Updated by David Demelier over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
#4

Updated by David Demelier over 1 year ago

  • Status changed from Resolved to Closed
#5

Updated by David Demelier 7 months ago

  • Target version deleted (0.1)

Also available in: Atom PDF