annotate libmlk-core/mlk/core/mouse.h @ 646:7e1eb7f6c049 default tip @

misc: remove .clang
author David Demelier <markand@malikania.fr>
date Sun, 04 Feb 2024 15:24:37 +0100
parents 3b9f2c82cbae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 /*
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 * mouse.h -- mouse definitions
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 *
445
773a082f0b91 misc: update copyright years
David Demelier <markand@malikania.fr>
parents: 431
diff changeset
4 * Copyright (c) 2020-2023 David Demelier <markand@malikania.fr>
19
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 *
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 * Permission to use, copy, modify, and/or distribute this software for any
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 * purpose with or without fee is hereby granted, provided that the above
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 * copyright notice and this permission notice appear in all copies.
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 *
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 */
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
366
19782ea1cf4a misc: start rebranding
David Demelier <markand@malikania.fr>
parents: 320
diff changeset
19 #ifndef MLK_CORE_MOUSE_H
19782ea1cf4a misc: start rebranding
David Demelier <markand@malikania.fr>
parents: 320
diff changeset
20 #define MLK_CORE_MOUSE_H
19
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
21
530
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
22 /**
532
3b9f2c82cbae doc: fix file inclusion
David Demelier <markand@malikania.fr>
parents: 530
diff changeset
23 * \file mlk/core/mouse.h
530
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
24 * \brief Mouse definitions
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
25 */
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
26
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
27 /**
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
28 * \enum mlk_mouse_button
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
29 * \brief Mouse button
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
30 *
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
31 * This enumeration is implemented as a bitmask.
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
32 */
450
b26dd49f69ff core: event -> mlk_event (and friends)
David Demelier <markand@malikania.fr>
parents: 445
diff changeset
33 enum mlk_mouse_button {
530
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
34 /**
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
35 * No button pressed.
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
36 */
450
b26dd49f69ff core: event -> mlk_event (and friends)
David Demelier <markand@malikania.fr>
parents: 445
diff changeset
37 MLK_MOUSE_BUTTON_NONE = 0,
530
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
38
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
39 /**
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
40 * Left button.
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
41 */
450
b26dd49f69ff core: event -> mlk_event (and friends)
David Demelier <markand@malikania.fr>
parents: 445
diff changeset
42 MLK_MOUSE_BUTTON_LEFT = (1 << 0),
530
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
43
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
44 /**
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
45 * Middle click button.
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
46 */
450
b26dd49f69ff core: event -> mlk_event (and friends)
David Demelier <markand@malikania.fr>
parents: 445
diff changeset
47 MLK_MOUSE_BUTTON_MIDDLE = (1 << 1),
530
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
48
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
49 /**
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
50 * Right button.
acc483db7bff core: doxygenize mouse
David Demelier <markand@malikania.fr>
parents: 450
diff changeset
51 */
450
b26dd49f69ff core: event -> mlk_event (and friends)
David Demelier <markand@malikania.fr>
parents: 445
diff changeset
52 MLK_MOUSE_BUTTON_RIGHT = (1 << 2)
19
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 };
bc1fdff76775 core: implement most useful events, closes #2445
David Demelier <markand@malikania.fr>
parents:
diff changeset
54
366
19782ea1cf4a misc: start rebranding
David Demelier <markand@malikania.fr>
parents: 320
diff changeset
55 #endif /* !MLK_CORE_MOUSE_H */