Entry.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <gale/key/key.hpp>
10 
11 namespace ewol {
12  namespace event {
13  class Entry {
14  private:
15  enum gale::key::keyboard m_type;
16  enum gale::key::status m_status;
17  gale::key::Special m_specialKey;
18  char32_t m_unicodeData;
19  public:
20  Entry(enum gale::key::keyboard _type,
21  enum gale::key::status _status,
22  gale::key::Special _specialKey,
23  char32_t _char) :
24  m_type(_type),
25  m_status(_status),
26  m_specialKey(_specialKey),
27  m_unicodeData(_char) {
28 
29  };
30  void setType(enum gale::key::keyboard _type) {
31  m_type = _type;
32  };
33  inline const enum gale::key::keyboard& getType() const {
34  return m_type;
35  };
36  void setStatus(enum gale::key::status _status) {
37  m_status = _status;
38  };
39  inline const enum gale::key::status& getStatus() const {
40  return m_status;
41  };
42  void setSpecialKey(const gale::key::Special& _specialKey) {
43  m_specialKey = _specialKey;
44  };
45  inline const gale::key::Special& getSpecialKey() const {
46  return m_specialKey;
47  };
48  void setChar(char32_t _char) {
49  m_unicodeData = _char;
50  };
51  inline const char32_t& getChar() const {
52  return m_unicodeData;
53  };
54  };
55  std::ostream& operator <<(std::ostream& _os, const ewol::event::Entry& _obj);
56 
57  class EntrySystem {
58  public:
59  EntrySystem(enum gale::key::keyboard _type,
60  enum gale::key::status _status,
61  gale::key::Special _specialKey,
62  char32_t _char) :
63  m_event(_type, _status, _specialKey, _char) {
64 
65  };
66  ewol::event::Entry m_event;
67  };
68  std::ostream& operator <<(std::ostream& _os, const ewol::event::EntrySystem& _obj);
69  };
70 };
Definition: Entry.hpp:13
Definition: Area.hpp:16
Definition: Entry.hpp:57