summaryrefslogtreecommitdiff
path: root/src/layout/algorithm/Algorithm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/algorithm/Algorithm.hpp')
-rw-r--r--src/layout/algorithm/Algorithm.hpp44
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
+}