cpp-sdl2
C++ header-only SDL2 wrapper
|
Installed effect handle. More...
#include <haptic.hpp>
Public Member Functions | |
InstalledEffect (effect_list::size_type index, Haptic *owner) | |
InstalledEffect ()=default | |
InstalledEffect (InstalledEffect const &) | |
InstalledEffect & | operator= (InstalledEffect const &) |
InstalledEffect (InstalledEffect &&other) noexcept | |
InstalledEffect & | operator= (InstalledEffect &&other) noexcept |
~InstalledEffect () | |
void | run (uint32_t iterations=1) |
Private Member Functions | |
void | move_from (InstalledEffect &other) |
Private Attributes | |
effect_list::size_type | index_ = invalid_index |
Haptic * | owner_ = nullptr |
Static Private Attributes | |
static constexpr effect_list::size_type | invalid_index |
Friends | |
class | Haptic |
Installed effect handle.
Definition at line 27 of file haptic.hpp.
|
inline |
Definition at line 38 of file haptic.hpp.
References InstalledEffect(), and operator=().
|
default |
Referenced by InstalledEffect().
sdl::Haptic::InstalledEffect::InstalledEffect | ( | InstalledEffect const & | ) |
|
inlinenoexcept |
Definition at line 46 of file haptic.hpp.
|
inline |
Definition at line 61 of file haptic.hpp.
References sdl::Haptic::get_effect_sdlid(), sdl::Haptic::ptr(), and sdl::Haptic::remove_effect().
|
inlineprivate |
Definition at line 35 of file haptic.hpp.
InstalledEffect& sdl::Haptic::InstalledEffect::operator= | ( | InstalledEffect const & | ) |
Referenced by InstalledEffect(), and sdl::Haptic::~Haptic().
|
inlinenoexcept |
Definition at line 48 of file haptic.hpp.
References index_, and invalid_index.
|
inline |
Definition at line 72 of file haptic.hpp.
References sdl::Haptic::run_effect().
|
friend |
Definition at line 33 of file haptic.hpp.
Referenced by sdl::Haptic::~Haptic().
|
private |
Definition at line 31 of file haptic.hpp.
Referenced by sdl::Haptic::get_effect_sdlid(), and operator=().
|
staticprivate |
Definition at line 29 of file haptic.hpp.
Referenced by operator=().
|
private |
Definition at line 32 of file haptic.hpp.