2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 #include <TokenSpace.h>
12 /*! \brief Identifies a mouse click target in the app server.
14 Used to discriminate between different targets in order to filter
15 multi-clicks. A click on a different target resets the click count.
29 fWindow(B_NULL_TOKEN
),
34 ClickTarget(Type type
, int32 window
, int32 windowElement
)
38 fWindowElement(windowElement
)
44 return fType
!= TYPE_INVALID
;
52 int32
WindowToken() const
57 int32
WindowElement() const
59 return fWindowElement
;
62 bool operator==(const ClickTarget
& other
) const
64 return fType
== other
.fType
&& fWindow
== other
.fWindow
65 && fWindowElement
== other
.fWindowElement
;
68 bool operator!=(const ClickTarget
& other
) const
70 return !(*this == other
);
80 #endif // CLICK_TARGET_H