xmonad-contrib
Copyright(c) 2007 Andrea Rossato 2023 Ilya Portnov
LicenseBSD-style (see xmonad/LICENSE)
Maintainerportnov84@rambler.ru
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

XMonad.Layout.DecorationEx.TabbedGeometry

Description

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

Documentation

textTabbed Source #

Arguments

:: Shrinker shrinker 
=> shrinker

Strings shrinker, e.g. shrinkText

-> 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 #

Constructors

HorizontalTabs 

Fields

VerticalTabs 

Fields

Instances

Instances details
DecorationGeometry TabbedGeometry Window Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

Methods

describeGeometry :: TabbedGeometry Window -> String Source #

shrinkWindow :: TabbedGeometry Window -> Rectangle -> Rectangle -> Rectangle Source #

pureDecoration :: TabbedGeometry Window -> Rectangle -> Stack Window -> [(Window, Rectangle)] -> (Window, Rectangle) -> Maybe Rectangle Source #

decorateWindow :: TabbedGeometry Window -> Rectangle -> Stack Window -> [(Window, Rectangle)] -> (Window, Rectangle) -> X (Maybe Rectangle) Source #

Default (TabbedGeometry a) Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

Methods

def :: TabbedGeometry a #

Read (TabbedGeometry a) Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

Methods

readsPrec :: Int -> ReadS (TabbedGeometry a)

readList :: ReadS [TabbedGeometry a]

readPrec :: ReadPrec (TabbedGeometry a)

readListPrec :: ReadPrec [TabbedGeometry a]

Show (TabbedGeometry a) Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

Methods

showsPrec :: Int -> TabbedGeometry a -> ShowS

show :: TabbedGeometry a -> String

showList :: [TabbedGeometry a] -> ShowS

data HorizontalTabPlacement Source #

Placement of tabs when they go horizontally: should they be placed above or below the window.

Constructors

Top 
Bottom 

data VerticalTabPlacement Source #

Placement of tabs when they go vertically: should they appear at left or at right side of the window.

Constructors

TabsAtLeft 
TabsAtRight 

data HorizontalTabWidth Source #

Width of tabs when they go horizontally.

Constructors

AutoWidth

Define the width automatically by evenly dividing windows' width

FixedWidth !Dimension

Use fixed width of the tab

data SingleTabMode Source #

What to do if there is only one tab.

Constructors

ShowTab 
HideTab 

Instances

Instances details
Read SingleTabMode Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

Methods

readsPrec :: Int -> ReadS SingleTabMode

readList :: ReadS [SingleTabMode]

readPrec :: ReadPrec SingleTabMode

readListPrec :: ReadPrec [SingleTabMode]

Show SingleTabMode Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

Methods

showsPrec :: Int -> SingleTabMode -> ShowS

show :: SingleTabMode -> String

showList :: [SingleTabMode] -> ShowS

Eq SingleTabMode Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry