Copyright | (c) Ivan A. Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan A. Malison |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
data WorkspaceState Source #
Instances
Eq WorkspaceState Source # | |
Defined in System.Taffybar.Widget.Workspaces (==) :: WorkspaceState -> WorkspaceState -> Bool # (/=) :: WorkspaceState -> WorkspaceState -> Bool # | |
Show WorkspaceState Source # | |
Defined in System.Taffybar.Widget.Workspaces showsPrec :: Int -> WorkspaceState -> ShowS # show :: WorkspaceState -> String # showList :: [WorkspaceState] -> ShowS # |
getCSSClass :: Show s => s -> String Source #
cssWorkspaceStates :: [String] Source #
data WindowData Source #
WindowData | |
|
Instances
Eq WindowData Source # | |
Defined in System.Taffybar.Widget.Workspaces (==) :: WindowData -> WindowData -> Bool # (/=) :: WindowData -> WindowData -> Bool # | |
Show WindowData Source # | |
Defined in System.Taffybar.Widget.Workspaces showsPrec :: Int -> WindowData -> ShowS # show :: WindowData -> String # showList :: [WindowData] -> ShowS # |
data WorkspacesContext Source #
type WorkspacesIO a = ReaderT WorkspacesContext IO a Source #
liftContext :: TaffyIO a -> WorkspacesIO a Source #
liftX11Def :: a -> X11Property a -> WorkspacesIO a Source #
setWorkspaceWidgetStatusClass :: WidgetClass widget => Workspace -> widget -> IO () Source #
class WorkspaceWidgetController wc where Source #
getWidget :: wc -> Widget Source #
updateWidget :: wc -> WidgetUpdate -> WorkspacesIO wc Source #
updateWidgetX11 :: wc -> WidgetUpdate -> WorkspacesIO wc Source #
Instances
WorkspaceWidgetController a => WWC a |
Instances
WorkspaceWidgetController WWC Source # | |
Defined in System.Taffybar.Widget.Workspaces getWidget :: WWC -> Widget Source # updateWidget :: WWC -> WidgetUpdate -> WorkspacesIO WWC Source # updateWidgetX11 :: WWC -> WidgetUpdate -> WorkspacesIO WWC Source # |
type ControllerConstructor = Workspace -> WorkspacesIO WWC Source #
type WindowIconPixbufGetter = Int32 -> WindowData -> TaffyIO (Maybe Pixbuf) Source #
data WorkspacesConfig Source #
WorkspacesConfig | |
|
updateVar :: MVar a -> (a -> WorkspacesIO a) -> WorkspacesIO a Source #
getWorkspaceToWindows :: [X11Window] -> X11Property (MultiMap WorkspaceIdx X11Window) Source #
getWindowData :: [X11Window] -> [X11Window] -> X11Window -> X11Property WindowData Source #
buildWorkspaceData :: Map WorkspaceIdx Workspace -> WorkspacesIO (Map WorkspaceIdx Workspace) Source #
addWidget :: WWC -> WorkspacesIO () Source #
workspacesNew :: WorkspacesConfig -> TaffyIO Widget Source #
doWidgetUpdate :: (WorkspaceIdx -> WWC -> WorkspacesIO WWC) -> WorkspacesIO () Source #
rateLimitFn :: forall req resp. WorkspacesContext -> (req -> IO resp) -> ResultsCombiner req resp -> IO (req -> IO resp) Source #
onWorkspaceUpdate :: WorkspacesContext -> IO (Event -> IO ()) Source #
onIconsChanged :: WorkspacesContext -> IO (Set X11Window -> IO ()) Source #
data WorkspaceContentsController Source #
WorkspaceContentsController | |
|
Instances
WorkspaceWidgetController WorkspaceContentsController Source # | |
Defined in System.Taffybar.Widget.Workspaces |
newtype LabelController Source #
LabelController | |
|
Instances
data IconWidget Source #
IconWidget | |
|
getPixbufForIconWidget :: Bool -> MVar (Maybe WindowData) -> Int32 -> WorkspacesIO (Maybe Pixbuf) Source #
buildIconWidget :: Bool -> Workspace -> WorkspacesIO IconWidget Source #
data IconController Source #
IconController | |
|
Instances
updateWindowIconsById :: IconController -> [X11Window] -> WorkspacesIO () Source #
updateMinSize :: Widget -> Int -> IO () Source #
constantScaleWindowIconPixbufGetter :: Int32 -> WindowIconPixbufGetter -> WindowIconPixbufGetter Source #
addCustomIconsToDefaultWithFallbackByPath :: (WindowData -> Maybe FilePath) -> FilePath -> WindowIconPixbufGetter Source #
addCustomIconsAndFallback :: (WindowData -> Maybe FilePath) -> (Int32 -> TaffyIO (Maybe Pixbuf)) -> WindowIconPixbufGetter -> WindowIconPixbufGetter Source #
sortWindowsByPosition :: [WindowData] -> WorkspacesIO [WindowData] Source #
updateImages :: IconController -> Workspace -> WorkspacesIO [IconWidget] Source #
updateIconWidget :: IconController -> IconWidget -> Maybe WindowData -> WorkspacesIO () Source #
data WorkspaceButtonController Source #
WorkspaceButtonController | |
|
Instances
WorkspaceWidgetController WorkspaceButtonController Source # | |
Defined in System.Taffybar.Widget.Workspaces |
switch :: MonadIO m => WorkspacesContext -> WorkspaceIdx -> m Bool Source #
data WorkspaceUnderlineController Source #
WorkspaceUnderlineController | |
|
Instances
WorkspaceWidgetController WorkspaceUnderlineController Source # | |
Defined in System.Taffybar.Widget.Workspaces |
updateUnderline :: WorkspaceUnderlineController -> WidgetUpdate -> WorkspacesIO WorkspaceUnderlineController Source #
data WorkspaceBorderController Source #
WorkspaceBorderController | |
|
Instances
WorkspaceWidgetController WorkspaceBorderController Source # | |
Defined in System.Taffybar.Widget.Workspaces |