Change request #698

Create event dispatch class

Added by David Demelier 9 months ago. Updated 9 months ago.

Status:ClosedStart date:09/21/2017
Priority:NormalDue date:
Assignee:David Demelier% Done:

100%

Category:Client libraryEstimated time:0.30 h
Target version:0.1
MFD after: Bookmark:@
MFD revision: Submitted by:
Branch:default

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
Added by David Demelier 9 months 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 9 months ago

  • Description updated (diff)

#2 Updated by David Demelier 9 months ago

  • Description updated (diff)

#3 Updated by David Demelier 9 months ago

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

#4 Updated by David Demelier 9 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF