diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-02-28 12:37:51 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-02-28 12:40:50 -0700 |
commit | e7300f03dcf0af7d968977000a10e8a8befdb60a (patch) | |
tree | 8f853663851a27b8914e429eda45b0c1fb97dd0b /src/Wetterhorn/Layout/Full.hs | |
parent | b444f874bc12cb8710068200500f14fd1e5f6776 (diff) | |
download | wetterhorn-main.tar.gz wetterhorn-main.tar.bz2 wetterhorn-main.zip |
This adds new layout configuration, preparing for actually using the
layouts. This also restructures the code and tries to keep code
interfacing with the foreign structures together and rename them to more
sensible names.
Diffstat (limited to 'src/Wetterhorn/Layout/Full.hs')
-rw-r--r-- | src/Wetterhorn/Layout/Full.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Wetterhorn/Layout/Full.hs b/src/Wetterhorn/Layout/Full.hs new file mode 100644 index 0000000..8296c7b --- /dev/null +++ b/src/Wetterhorn/Layout/Full.hs @@ -0,0 +1,18 @@ +module Wetterhorn.Layout.Full where + +import Data.Data (Typeable) +import Data.Default +import Wetterhorn.Constraints +import Wetterhorn.Core.W + +data Full = Full + deriving (Read, Show, Typeable) + +instance Default Full where + def = Full + +instance LayoutClass Full where + type C Full = Unconstrained + + pureLayout (a : _) _ = [(a, RationalRect 1 1 1 1)] + pureLayout _ _ = [] |