Skip to content

Commit

Permalink
Merge pull request #351 from GiuseppeCesarano/main
Browse files Browse the repository at this point in the history
C++ events are now enum instead of const static int
  • Loading branch information
hassandraga authored May 31, 2024
2 parents c8c1b2b + fc10b42 commit 6fe3549
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions include/webui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ extern "C" {

namespace webui {

static constexpr int DISCONNECTED = 0; // 0. Window disconnection event
static constexpr int CONNECTED = 1; // 1. Window connection event
static constexpr int MOUSE_CLICK = 2; // 2. Mouse click event
static constexpr int NAVIGATION = 3; // 3. Window navigation event
static constexpr int CALLBACKS = 4; // 4. Function call event
enum : int {
DISCONNECTED = 0, // 0. Window disconnection event
CONNECTED = 1, // 1. Window connection event
MOUSE_CLICK = 2, // 2. Mouse click event
NAVIGATION = 3, // 3. Window navigation event
CALLBACKS = 4 // 4. Function call event
};

class window {
private:
Expand Down

0 comments on commit 6fe3549

Please sign in to comment.