![]() |
|
#include <MouseEventXML.h>


Public Member Functions | |
| typedef | DRAIN_XML_TREE (N) tree_t |
| MouseEventXML (tree_t &root, drain::image::MouseXML::EventClass mouseEvent, const std::string &owner) | |
| bool | routineIsSet (tree_t &elem) const |
| void | setListenerNEW (tree_t &elem) const |
| tree_t & | getListenerRoutine () const |
| tree_t & | getListenerInitSubScope () const |
| Scope inside ctx. | |
| template<class V > | |
| void | defineVariable (const std::string &name, const V &value) const |
| void | useCoordinates (CoordinateProcessing level) const |
| void | connectClass (const drain::ClassXML &cls) const |
| void | connectTag (const std::string &s) const |
| void | connectTag (const typename N::tag_t &type) const |
| void | connectElement (const drain::ClassXML &cls) |
| void | connectElement (const typename N::tag_t &type) const |
| void | connectElement (const std::string &arg) const |
| void | connectElement (const char *arg) const |
Protected Attributes | |
| tree_t & | root |
| const std::string | eventName |
| const std::string | handlerName |
| const std::string | initName |
| tree_t & | scopeJS |
| std::string | owner |
| std::set< std::string > | connectedObjects |
Protected Attributes inherited from MouseXML | |
| static const std::string & | handlerName |
| static const std::string & | initFnctName |
| static XML & | elem |
| static XML const EventClass & | eventCls |
Additional Inherited Members | |
Public Types inherited from MouseXML | |
| enum | ElemClass { MOUSE , MOUSE_LISTENER , MONITOR , MONITOR_MOVE , MONITOR_DOWN , MONITOR_UP , MONITOR_DRAG } |
| enum | EventClass { ENTER , LEAVE , MOVE , DOWN , UP , CLICK } |
| enum | CoordinateProcessing { UNDEFINED = 0 , IMAGE_COORDS = 1 , RELATIVE_COORDS = 3 , GEOGRAPHIC_COORDS = 7 } |
| typedef drain::EnumFlagger< drain::MultiFlagger< CoordinateProcessing > > | CoordFlagger |
Static Public Member Functions inherited from MouseXML | |
| static void | addVisibilitySwitch (XML &dstElem, XML &listenerElem, const std::string &scope="document", const std::string &mouseEventOn="onmouseenter", const std::string &mouseEventOff="onmouseleave") |
| Show an element only if the mouse is on another specified element (listenerElem). | |
Protected Member Functions inherited from MouseXML | |
| template<class N > | |
| void | adjustListenerGeoRef (DRAIN_XML_TREE(N) &handlerScopeJS, CoordFlagger::ivalue_t coords) const |
Static Protected Member Functions inherited from MouseXML | |
| static std::string | getEventFunctionName (MouseXML::EventClass eventKey) |
| Modifies short mouse event name like "click" to "onmouseclick", or prefixed form "handleClick". | |
| static std::string | getHandlerFunctionName (MouseXML::EventClass eventKey) |
| static std::string | getInitialiserFunctionName (MouseXML::EventClass eventKey) |
| template<class N > | |
| static | DRAIN_XML_TREE (N) &getListenerScope(DRAIN_XML_TREE(N) &root |
| Return internal ("top-level") routine for mouse event. The routine calls subroutine (that has a sub scope). | |
| template<class N > | |
| static | DRAIN_XML_TREE (N) &getListenerInitScope(DRAIN_XML_TREE(N) &root |
| Return ("top-level") initialisation script scope for a mouse event. The routine calls subroutine (that has a sub scope). | |
| template<class N > | |
| static | DRAIN_XML_TREE (N) &ensureListenerUNUSED(DRAIN_XML_TREE(N) &root |
| Create internal ("top-level") routine for mouse event, if it does not exist. | |
| static void | attachListener (XML &elem, const std::string &eventName, const std::string &handlerName) |
| template<class N > | |
| static | DRAIN_XML_TREE (N) &ensureListenerHandler(DRAIN_XML_TREE(N) &root |
| template<class N > | |
| static | DRAIN_XML_TREE (N) &ensureListenerInit(DRAIN_XML_TREE(N) &root |
| Create internal ("top-level") initialisation script scope for mouse event, if it does not exist. | |
Static Protected Attributes inherited from MouseXML | |
| static const std::string | COORD_INIT_SCOPE |
| N | - Node type for the tree, DRAIN_XML_TREE(N) |
1.9.8