22 #ifndef TITANIC_MOUSE_MESSAGES_H 23 #define TITANIC_MOUSE_MESSAGES_H 25 #include "titanic/support/rect.h" 26 #include "titanic/messages/messages.h" 30 enum MouseButton { MB_LEFT = 1, MB_MIDDLE = 2, MB_RIGHT = 4 };
38 static bool isSupportedBy(
const CTreeItem *item) {
44 _mousePos(pt), _buttons(buttons) {}
53 static bool isSupportedBy(
const CTreeItem *item) {
66 static bool isSupportedBy(
const CTreeItem *item) {
77 static bool isSupportedBy(
const CTreeItem *item) {
84 static void generate();
93 static bool isSupportedBy(
const CTreeItem *item) {
100 static void generate();
112 static bool isSupportedBy(
const CTreeItem *item) {
123 static bool isSupportedBy(
const CTreeItem *item) {
134 static bool isSupportedBy(
const CTreeItem *item) {
145 static bool isSupportedBy(
const CTreeItem *item) {
158 _dragItem(
nullptr), _handled(
false) {}
160 static bool isSupportedBy(
const CTreeItem *item) {
174 CMessage(), _mousePos(pt), _value3(v3), _value4(v4) {}
176 static bool isSupportedBy(
const CTreeItem *item) {
190 static bool isSupportedBy(
const CTreeItem *item) {
203 static bool isSupportedBy(
const CTreeItem *item) {
216 static bool isSupportedBy(
const CTreeItem *item) {
Definition: mouse_messages.h:150
Definition: mouse_messages.h:195
Definition: mouse_messages.h:208
static bool supports(const CTreeItem *treeItem, ClassDef *classDef)
Definition: mouse_messages.h:117
Definition: mouse_messages.h:47
Definition: mouse_messages.h:139
MouseButton
Definition: events.h:183
Definition: game_object.h:79
Definition: mouse_messages.h:181
Definition: tree_item.h:37
Definition: mouse_messages.h:32
Definition: mouse_messages.h:103
Definition: mouse_messages.h:128
Definition: mouse_messages.h:165
Definition: messages.h:91