Copyright | (c) 2007 Andrea Rossato 2023 Ilya Portnov |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | portnov84@rambler.ru |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module defines window decoration geometry based on tabs. The tabs can follow horizontally and be placed above or below windows; in such case, tabs can occupy full width of the window or be aligned to left or right. Or tabs can go vertically near left or right side of the window.
Synopsis
- textTabbed :: Shrinker shrinker => shrinker -> ThemeEx StandardWidget -> l Window -> ModifiedLayout (DecorationEx TextDecoration StandardWidget TabbedGeometry shrinker) l Window
- data TabbedGeometry a
- = HorizontalTabs { }
- | VerticalTabs { }
- data HorizontalTabPlacement
- data VerticalTabPlacement
- data HorizontalTabWidth
- data HorizontalTabsAlignment
- data SingleTabMode
Documentation
:: Shrinker shrinker | |
=> shrinker | Strings shrinker, e.g. |
-> ThemeEx StandardWidget | Decoration theme |
-> l Window | Layout to be decorated |
-> ModifiedLayout (DecorationEx TextDecoration StandardWidget TabbedGeometry shrinker) l Window |
Add tabbed decorations (with default settings) with text-based widgets to a layout.
data TabbedGeometry a Source #
HorizontalTabs | |
| |
VerticalTabs | |
|
Instances
data HorizontalTabPlacement Source #
Placement of tabs when they go horizontally: should they be placed above or below the window.
Instances
data VerticalTabPlacement Source #
Placement of tabs when they go vertically: should they appear at left or at right side of the window.
Instances
Read VerticalTabPlacement Source # | |
Show VerticalTabPlacement Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry showsPrec :: Int -> VerticalTabPlacement -> ShowS # show :: VerticalTabPlacement -> String # showList :: [VerticalTabPlacement] -> ShowS # | |
Eq VerticalTabPlacement Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry (==) :: VerticalTabPlacement -> VerticalTabPlacement -> Bool # (/=) :: VerticalTabPlacement -> VerticalTabPlacement -> Bool # |
data HorizontalTabWidth Source #
Width of tabs when they go horizontally.
AutoWidth | Define the width automatically by evenly dividing windows' width |
FixedWidth !Dimension | Use fixed width of the tab |
Instances
Read HorizontalTabWidth Source # | |
Show HorizontalTabWidth Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry showsPrec :: Int -> HorizontalTabWidth -> ShowS # show :: HorizontalTabWidth -> String # showList :: [HorizontalTabWidth] -> ShowS # | |
Eq HorizontalTabWidth Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry (==) :: HorizontalTabWidth -> HorizontalTabWidth -> Bool # (/=) :: HorizontalTabWidth -> HorizontalTabWidth -> Bool # |
data HorizontalTabsAlignment Source #
Alignment of tabs when they go horizontally.
Instances
data SingleTabMode Source #
What to do if there is only one tab.
Instances
Read SingleTabMode Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry readsPrec :: Int -> ReadS SingleTabMode # readList :: ReadS [SingleTabMode] # | |
Show SingleTabMode Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry showsPrec :: Int -> SingleTabMode -> ShowS # show :: SingleTabMode -> String # showList :: [SingleTabMode] -> ShowS # | |
Eq SingleTabMode Source # | |
Defined in XMonad.Layout.DecorationEx.TabbedGeometry (==) :: SingleTabMode -> SingleTabMode -> Bool # (/=) :: SingleTabMode -> SingleTabMode -> Bool # |