|
|
|
@ -1682,6 +1682,18 @@ class Sdl2Application::ExitEvent { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class Sdl2Application::ViewportEvent { |
|
|
|
class Sdl2Application::ViewportEvent { |
|
|
|
public: |
|
|
|
public: |
|
|
|
|
|
|
|
/** @brief Copying is not allowed */ |
|
|
|
|
|
|
|
ViewportEvent(const ViewportEvent&) = delete; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Moving is not allowed */ |
|
|
|
|
|
|
|
ViewportEvent(ViewportEvent&&) = delete; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Copying is not allowed */ |
|
|
|
|
|
|
|
ViewportEvent& operator=(const ViewportEvent&) = delete; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Moving is not allowed */ |
|
|
|
|
|
|
|
ViewportEvent& operator=(ViewportEvent&&) = delete; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Window size |
|
|
|
* @brief Window size |
|
|
|
* |
|
|
|
* |
|
|
|
@ -1718,8 +1730,9 @@ class Sdl2Application::ViewportEvent { |
|
|
|
|
|
|
|
|
|
|
|
explicit ViewportEvent(const Vector2i& windowSize, const Vector2i& framebufferSize, const Vector2& dpiScaling): _windowSize{windowSize}, _framebufferSize{framebufferSize}, _dpiScaling{dpiScaling} {} |
|
|
|
explicit ViewportEvent(const Vector2i& windowSize, const Vector2i& framebufferSize, const Vector2& dpiScaling): _windowSize{windowSize}, _framebufferSize{framebufferSize}, _dpiScaling{dpiScaling} {} |
|
|
|
|
|
|
|
|
|
|
|
Vector2i _windowSize, _framebufferSize; |
|
|
|
const Vector2i _windowSize; |
|
|
|
Vector2 _dpiScaling; |
|
|
|
const Vector2i _framebufferSize; |
|
|
|
|
|
|
|
const Vector2 _dpiScaling; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -2273,10 +2286,10 @@ class Sdl2Application::MultiGestureEvent { |
|
|
|
private: |
|
|
|
private: |
|
|
|
explicit MultiGestureEvent(const Vector2& center, Float relativeRotation, Float relativeDistance, Int fingerCount): _center{center}, _relativeRotation{relativeRotation}, _relativeDistance{relativeDistance}, _fingerCount{fingerCount}, _accepted{false} {} |
|
|
|
explicit MultiGestureEvent(const Vector2& center, Float relativeRotation, Float relativeDistance, Int fingerCount): _center{center}, _relativeRotation{relativeRotation}, _relativeDistance{relativeDistance}, _fingerCount{fingerCount}, _accepted{false} {} |
|
|
|
|
|
|
|
|
|
|
|
Vector2 _center; |
|
|
|
const Vector2 _center; |
|
|
|
Float _relativeRotation, |
|
|
|
const Float _relativeRotation; |
|
|
|
_relativeDistance; |
|
|
|
const Float _relativeDistance; |
|
|
|
Int _fingerCount; |
|
|
|
const Int _fingerCount; |
|
|
|
bool _accepted; |
|
|
|
bool _accepted; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -2320,7 +2333,7 @@ class Sdl2Application::TextInputEvent { |
|
|
|
private: |
|
|
|
private: |
|
|
|
explicit TextInputEvent(Containers::ArrayView<const char> text): _text{text}, _accepted{false} {} |
|
|
|
explicit TextInputEvent(Containers::ArrayView<const char> text): _text{text}, _accepted{false} {} |
|
|
|
|
|
|
|
|
|
|
|
Containers::ArrayView<const char> _text; |
|
|
|
const Containers::ArrayView<const char> _text; |
|
|
|
bool _accepted; |
|
|
|
bool _accepted; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -2370,8 +2383,9 @@ class Sdl2Application::TextEditingEvent { |
|
|
|
private: |
|
|
|
private: |
|
|
|
explicit TextEditingEvent(Containers::ArrayView<const char> text, Int start, Int length): _text{text}, _start{start}, _length{length}, _accepted{false} {} |
|
|
|
explicit TextEditingEvent(Containers::ArrayView<const char> text, Int start, Int length): _text{text}, _start{start}, _length{length}, _accepted{false} {} |
|
|
|
|
|
|
|
|
|
|
|
Containers::ArrayView<const char> _text; |
|
|
|
const Containers::ArrayView<const char> _text; |
|
|
|
Int _start, _length; |
|
|
|
const Int _start; |
|
|
|
|
|
|
|
const Int _length; |
|
|
|
bool _accepted; |
|
|
|
bool _accepted; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|