diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-28 15:56:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-28 15:56:07 +0100 |
| commit | 98fbbafef78057c818fb02b15c27e38ad2f5b5bc (patch) | |
| tree | c62aa1eae704e7595d58f7edeb3804e8bfd0099d /src/layout/algorithm/Algorithm.hpp | |
| parent | d4c6ff434c5c7aa66bc7c28e5ce336d2a694bfcc (diff) | |
config/errors: Report and categorize errors properly for actions (#14192)
Makes all errors categorized, some not displayed, some displayed.
All errors can be obtained after hl.dispatch()
Diffstat (limited to 'src/layout/algorithm/Algorithm.hpp')
| -rw-r--r-- | src/layout/algorithm/Algorithm.hpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/layout/algorithm/Algorithm.hpp b/src/layout/algorithm/Algorithm.hpp index 7df6c5c1..8b9e471d 100644 --- a/src/layout/algorithm/Algorithm.hpp +++ b/src/layout/algorithm/Algorithm.hpp @@ -20,38 +20,38 @@ namespace Layout { static SP<CAlgorithm> create(UP<ITiledAlgorithm>&& tiled, UP<IFloatingAlgorithm>&& floating, SP<CSpace> space); ~CAlgorithm() = default; - void addTarget(SP<ITarget> target); - void moveTarget(SP<ITarget> target, std::optional<Vector2D> focalPoint = std::nullopt, bool reposition = false); - void removeTarget(SP<ITarget> target); + void addTarget(SP<ITarget> target); + void moveTarget(SP<ITarget> target, std::optional<Vector2D> focalPoint = std::nullopt, bool reposition = false); + void removeTarget(SP<ITarget> target); - void swapTargets(SP<ITarget> a, SP<ITarget> b); - void moveTargetInDirection(SP<ITarget> t, Math::eDirection dir, bool silent); + void swapTargets(SP<ITarget> a, SP<ITarget> b); + void moveTargetInDirection(SP<ITarget> t, Math::eDirection dir, bool silent); - SP<ITarget> getNextCandidate(SP<ITarget> old); + SP<ITarget> getNextCandidate(SP<ITarget> old); - void setFloating(SP<ITarget> target, bool floating, bool reposition = false); + void setFloating(SP<ITarget> target, bool floating, bool reposition = false); - std::expected<void, std::string> layoutMsg(const std::string_view& sv); - std::optional<Vector2D> predictSizeForNewTiledTarget(); + Config::ErrorResult layoutMsg(const std::string_view& sv); + std::optional<Vector2D> predictSizeForNewTiledTarget(); - void recalculate(); - void recenter(SP<ITarget> t); + void recalculate(); + void recenter(SP<ITarget> t); - void resizeTarget(const Vector2D& Δ, SP<ITarget> target, eRectCorner corner = CORNER_NONE); - void moveTarget(const Vector2D& Δ, SP<ITarget> target); + void resizeTarget(const Vector2D& Δ, SP<ITarget> target, eRectCorner corner = CORNER_NONE); + void moveTarget(const Vector2D& Δ, SP<ITarget> target); - void setTargetGeom(const CBox& box, SP<ITarget> target); // only for float + void setTargetGeom(const CBox& box, SP<ITarget> target); // only for float - void updateFloatingAlgo(UP<IFloatingAlgorithm>&& algo); - void updateTiledAlgo(UP<ITiledAlgorithm>&& algo); + void updateFloatingAlgo(UP<IFloatingAlgorithm>&& algo); + void updateTiledAlgo(UP<ITiledAlgorithm>&& algo); - const UP<ITiledAlgorithm>& tiledAlgo() const; - const UP<IFloatingAlgorithm>& floatingAlgo() const; + const UP<ITiledAlgorithm>& tiledAlgo() const; + const UP<IFloatingAlgorithm>& floatingAlgo() const; - SP<CSpace> space() const; + SP<CSpace> space() const; - size_t tiledTargets() const; - size_t floatingTargets() const; + size_t tiledTargets() const; + size_t floatingTargets() const; private: CAlgorithm(UP<ITiledAlgorithm>&& tiled, UP<IFloatingAlgorithm>&& floating, SP<CSpace> space); @@ -63,4 +63,4 @@ namespace Layout { std::vector<WP<ITarget>> m_tiledTargets, m_floatingTargets; }; -}
\ No newline at end of file +} |
