X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcanvas%2FCanvasEvent.hxx;h=9ac9d475675b98fe156d427fa8ae4f1d9ced56d6;hb=46442ef50c5a2b7c8e41e5c025f86c1cd35e6e15;hp=b8babfb54682423d1c335acdca8e218882e38068;hpb=7d8fde82e611932b82515474d667805fc3547320;p=simgear.git diff --git a/simgear/canvas/CanvasEvent.hxx b/simgear/canvas/CanvasEvent.hxx index b8babfb5..9ac9d475 100644 --- a/simgear/canvas/CanvasEvent.hxx +++ b/simgear/canvas/CanvasEvent.hxx @@ -1,4 +1,4 @@ -// Canvas Event for event model similar to DOM Level 2 Event Model +// Canvas Event for event model similar to DOM Level 3 Event Model // // Copyright (C) 2012 Thomas Geymayer // @@ -42,11 +42,21 @@ namespace canvas Type type; ElementWeakPtr target; + bool propagation_stopped; Event(); + + // We need a vtable to allow nasal::Ghost to determine the dynamic type + // of the actual event instances. + virtual ~Event(); + Type getType() const; std::string getTypeString() const; + ElementWeakPtr getTarget() const; + void stopPropagation(); + + static Type strToType(const std::string& str); };