mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "core/math/Point.h"
|
||||
#include "core/math/Rectangle.h"
|
||||
#include "core/SharedPtr.h"
|
||||
#include "core/EnableSharedFromThis.h"
|
||||
#include "../FocusManager.h"
|
||||
#include "../FocusMoveDirection.h"
|
||||
|
||||
@@ -11,7 +12,7 @@ class VramContext;
|
||||
class InputProvider;
|
||||
|
||||
/// @brief Base class for views.
|
||||
class View
|
||||
class View : public EnableSharedFromThis<View>
|
||||
{
|
||||
public:
|
||||
/// @brief Link used for views that contain other views.
|
||||
@@ -58,6 +59,21 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// @brief Handles a pen down event.
|
||||
/// @param touchPoint The touch point.
|
||||
/// @param focusManager The focus manager.
|
||||
virtual void HandlePenDown(const Point& touchPoint, FocusManager& focusManager) { }
|
||||
|
||||
/// @brief Handles a pen move event.
|
||||
/// @param touchPoint The touch point.
|
||||
/// @param focusManager The focus manager.
|
||||
virtual void HandlePenMove(const Point& touchPoint, FocusManager& focusManager) { }
|
||||
|
||||
/// @brief Handles a pen up event.
|
||||
/// @param lastTouchPoint The last touch point.
|
||||
/// @param focusManager The focus manager.
|
||||
virtual void HandlePenUp(const Point& lastTouchPoint, FocusManager& focusManager) { }
|
||||
|
||||
/// @brief Gets the bounds of the view.
|
||||
/// @return The bounds of the view.
|
||||
virtual Rectangle GetBounds() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user