Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
Instances
Generic Window # | |
Eq Window # | |
Serialise Window # | |
type Rep Window # | |
Defined in Butler.Window type Rep Window = D1 ('MetaData "Window" "Butler.Window" "butler-0.0.1.0-inplace" 'False) (C1 ('MetaCons "Window" 'PrefixI 'True) (S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int, Int)) :*: (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int, Int)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
data WindowsState #
Instances
Generic WindowsState # | |
Defined in Butler.Window type Rep WindowsState :: Type -> Type # from :: WindowsState -> Rep WindowsState x # to :: Rep WindowsState x -> WindowsState # | |
Serialise WindowsState # | |
Defined in Butler.Window encode :: WindowsState -> Encoding # decode :: Decoder s WindowsState # encodeList :: [WindowsState] -> Encoding # decodeList :: Decoder s [WindowsState] # | |
type Rep WindowsState # | |
Defined in Butler.Window type Rep WindowsState = D1 ('MetaData "WindowsState" "Butler.Window" "butler-0.0.1.0-inplace" 'False) (C1 ('MetaCons "WindowsState" 'PrefixI 'True) (S1 ('MetaSel ('Just "windows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (IntMap Window)) :*: (S1 ('MetaSel ('Just "maxID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WinID) :*: S1 ('MetaSel ('Just "focus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WinID))))) |
type Windows = MemoryVar WindowsState #
data WindowManager #
getWindowIDs :: Windows -> STM [WinID] #
newWindows :: WinID -> WindowsState #
addWindowApp :: WindowManager -> WinID -> Process -> STM () #
delWindowApp :: WindowManager -> WinID -> STM () #
deleteWindow :: Windows -> WinID -> STM () #
windowScript :: WinID -> Text #
renderWindow :: (WinID, Window) -> Text #