layout: rethonk layouts from the ground up (#12890)
Rewrites layouts to be much smaller, and deal with much less annoying BS. Improves the overall architecture, unifies handling of pseudotiling, and various other improvements.
This commit is contained in:
parent
51f8849e54
commit
723870337f
82 changed files with 8431 additions and 5527 deletions
26
src/layout/algorithm/TiledAlgorithm.hpp
Normal file
26
src/layout/algorithm/TiledAlgorithm.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include "../../helpers/math/Math.hpp"
|
||||
#include "../../helpers/memory/Memory.hpp"
|
||||
|
||||
#include "ModeAlgorithm.hpp"
|
||||
|
||||
namespace Layout {
|
||||
|
||||
class ITarget;
|
||||
class CAlgorithm;
|
||||
|
||||
class ITiledAlgorithm : public IModeAlgorithm {
|
||||
public:
|
||||
virtual ~ITiledAlgorithm() = default;
|
||||
|
||||
virtual SP<ITarget> getNextCandidate(SP<ITarget> old) = 0;
|
||||
|
||||
protected:
|
||||
ITiledAlgorithm() = default;
|
||||
|
||||
WP<CAlgorithm> m_parent;
|
||||
|
||||
friend class Layout::CAlgorithm;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue