diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-02-24 12:27:00 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-02-24 12:27:00 +0000 |
| commit | fbf67ef050c8a82ffe6156b255cc89d6020c1084 (patch) | |
| tree | 921362eaddd964015fabe55dced231e3f8c15c9a /src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp | |
| parent | be893a81b4533d1dc22e91f7d603dbb536ed79f8 (diff) | |
algo/scrolling: adjust focus callbacks to be more intuitive
Diffstat (limited to 'src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp')
| -rw-r--r-- | src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp index 109aa99e..20db6efe 100644 --- a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp +++ b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.hpp @@ -77,7 +77,7 @@ namespace Layout::Tiled { SP<SColumnData> prev(SP<SColumnData> c); SP<SColumnData> atCenter(); - bool visible(SP<SColumnData> c); + bool visible(SP<SColumnData> c, bool full = false); void centerCol(SP<SColumnData> c); void fitCol(SP<SColumnData> c); void centerOrFitCol(SP<SColumnData> c); @@ -111,6 +111,12 @@ namespace Layout::Tiled { CBox usableArea(); + enum eInputMode : uint8_t { + INPUT_MODE_SOFT = 0, + INPUT_MODE_CLICK, + INPUT_MODE_KB + }; + private: SP<SScrollingData> m_scrollingData; @@ -130,7 +136,7 @@ namespace Layout::Tiled { void focusTargetUpdate(SP<ITarget> target); void moveTargetTo(SP<ITarget> t, Math::eDirection dir, bool silent); - void focusOnInput(SP<ITarget> target, bool hardInput); + void focusOnInput(SP<ITarget> target, eInputMode input); friend struct SScrollingData; }; |
