Tweeny 4.1.0
A Tweening library for modern C++
Loading...
Searching...
No Matches
event.h
1/*
2This file is part of the Tweeny library.
3
4Copyright (c) 2016-2026 Leonardo Guilherme Lucena de Freitas
5Copyright (c) 2016 Guilherme R. Costa
6
7Permission is hereby granted, free of charge, to any person obtaining a copy of
8this software and associated documentation files (the "Software"), to deal in
9the Software without restriction, including without limitation the rights to
10use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11the Software, and to permit persons to whom the Software is furnished to do so,
12subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all
15copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23*/
24
42
43#ifndef TWEENY_EVENT_H
44#define TWEENY_EVENT_H
45
46#include "detail/event.h"
47
56namespace tweeny::event {
83 inline constexpr detail::event::step_t step{};
84
111 inline constexpr detail::event::seek_t seek{};
112
139 inline constexpr detail::event::jump_t jump{};
140
175
211
247
280 inline constexpr detail::event::update_t update{};
281}
282
283#endif //TWEENY_EVENT_H
constexpr detail::event::complete_t complete
Event triggered when the animation is at completion.
Definition event.h:174
constexpr detail::event::seek_t seek
Event triggered after each seek() call.
Definition event.h:111
constexpr detail::event::jump_t jump
Event triggered after each jump() call.
Definition event.h:139
constexpr detail::event::update_t update
Event triggered whenever the tween position changes.
Definition event.h:280
constexpr detail::event::step_t step
Event triggered after each step() call.
Definition event.h:83
Event types and response codes for tween callbacks.
Definition detail/event.h:74
Tag type for completion events.
Definition detail/event.h:53
Tag type for jump events.
Definition detail/event.h:47
Tag type for keyframeEnter events.
Definition detail/event.h:59
Tag type for keyframeLeave events.
Definition detail/event.h:65
Tag type for seek events.
Definition detail/event.h:41
Tag type for step events.
Definition detail/event.h:35
Tag type for update events.
Definition detail/event.h:71
Event data passed when entering a new keyframe.
Definition detail/event.h:81
Event data passed when leaving a keyframe.
Definition detail/event.h:92