- Now it is possible to attach listeners to canvas elements and also the canvas itself, which get called upon different mouse events (Currently only basic mouse events supported. click/dblclick etc. are missing)
34 lines
1.3 KiB
C++
34 lines
1.3 KiB
C++
// Mapping between canvas gui Event types and their names
|
|
//
|
|
// Copyright (C) 2012 Thomas Geymayer <tomgey@gmail.com>
|
|
//
|
|
// This library is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Library General Public
|
|
// License as published by the Free Software Foundation; either
|
|
// version 2 of the License, or (at your option) any later version.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
// Library General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Library General Public
|
|
// License along with this library; if not, write to the Free Software
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
#ifndef ENUM_MAPPING
|
|
# error "Don't include this file directly!"
|
|
#endif
|
|
|
|
ENUM_MAPPING(MOUSE_DOWN, "mousedown")
|
|
ENUM_MAPPING(MOUSE_UP, "mouseup")
|
|
ENUM_MAPPING(CLICK, "click")
|
|
ENUM_MAPPING(DBL_CLICK, "dblclick")
|
|
ENUM_MAPPING(DRAG, "drag")
|
|
ENUM_MAPPING(WHEEL, "wheel")
|
|
ENUM_MAPPING(MOUSE_MOVE, "mousemove")
|
|
ENUM_MAPPING(MOUSE_OVER, "mouseover")
|
|
ENUM_MAPPING(MOUSE_OUT, "mouseout")
|
|
ENUM_MAPPING(MOUSE_ENTER, "mouseenter")
|
|
ENUM_MAPPING(MOUSE_LEAVE, "mouseleave")
|