Safe Haskell | None |
---|---|
Language | Haskell98 |
This module exposes everything, but there is very little documentation here. See the Fudget Library Reference Manual instead.
Synopsis
- branchF :: F (Path, a) b -> F (Path, a) b -> F (Path, a) b
- branchFSP :: FSP (Path, a) b -> FSP (Path, a) b -> FSP (Path, a) b
- compF :: F a b -> F c d -> F (Either a c) (Either b d)
- parF :: F c ho -> F c ho -> F c ho
- postProcessHigh :: SP a ho -> F hi a -> F hi ho
- postProcessLow :: SP TCommand TCommand -> F hi ho -> F hi ho
- preProcessHigh :: F c ho -> SP hi c -> F hi ho
- preProcessLow :: F hi ho -> SP TEvent TEvent -> F hi ho
- preMapHigh :: F c ho -> (hi -> c) -> F hi ho
- postMapHigh :: (a -> ho) -> F hi a -> F hi ho
- preMapLow :: F hi ho -> (TEvent -> TEvent) -> F hi ho
- postMapLow :: (TCommand -> TCommand) -> F hi ho -> F hi ho
- postProcessHighK :: SP a ho -> K hi a -> K hi ho
- postProcessLowK :: SP FRequest FRequest -> K hi ho -> K hi ho
- preProcessHighK :: K c ho -> SP hi c -> K hi ho
- preProcessLowK :: K hi ho -> SP FResponse FResponse -> K hi ho
- preMapHighK :: K c ho -> (hi -> c) -> K hi ho
- postMapHighK :: (a -> ho) -> K hi a -> K hi ho
- preMapLowK :: K hi ho -> (FResponse -> FResponse) -> K hi ho
- postMapLowK :: (FRequest -> FRequest) -> K hi ho -> K hi ho
- postProcessHigh' :: SP a b -> Fa c d e a -> Fa c d e b
- postProcessLow' :: SP a b -> Fa c a d e -> Fa c b d e
- preProcessHigh' :: Fa a b c d -> SP e c -> Fa a b e d
- preProcessLow' :: Fa a b c d -> SP e a -> Fa e b c d
- preMapHigh' :: Fa a b c d -> (e -> c) -> Fa a b e d
- preMapLow' :: Fa a b c d -> (e -> a) -> Fa e b c d
- postMapHigh' :: (a -> b) -> Fa c d e a -> Fa c d e b
- postMapLow' :: (a -> b) -> Fa c a d e -> Fa c b d e
- prepostMapHigh' :: (a -> b) -> (c -> d) -> Fa e f b c -> Fa e f a d
- prepostMapHigh :: (hi -> b) -> (c -> ho) -> F b c -> F hi ho
- prepostMapHighK :: (hi -> b) -> (c -> ho) -> K b c -> K hi ho
- prepostMapLow' :: (a -> b) -> (c -> d) -> Fa b c e f -> Fa a d e f
- prepostMapLow :: (TEvent -> TEvent) -> (TCommand -> TCommand) -> F hi ho -> F hi ho
- prepostMapLowK :: (FResponse -> FResponse) -> (FRequest -> FRequest) -> K hi ho -> K hi ho
- dynF :: F a b -> F (Either (F a b) a) b
- type DynFMsg a b = DynMsg a (F a b)
- dynListF :: F (Int, DynFMsg a b) (Int, b)
- listF :: Eq a => [(a, F b c)] -> F (a, b) (a, c)
- untaggedListF :: [F a b] -> F a b
- loopLow :: SP TCommand (FCommand a) -> SP (FEvent a) TEvent -> F b c -> F b c
- loopThroughLowSP :: SP (Either c e) (Either c e) -> SP (Message e a) (Message c b) -> SP (Message e a) (Message c b)
- loopThroughLowF :: SP (Either TCommand TEvent) (Either TCommand TEvent) -> F i o -> F i o
- loopF :: F a a -> F a a
- loopThroughRightF :: F (Either a b) (Either c d) -> F c a -> F b d
- loopCompThroughRightF :: F (Either (Either a b) c) (Either (Either c d) a) -> F b d
- loopCompThroughLeftF :: F (Either a (Either b c)) (Either b (Either a d)) -> F c d
- loopRightF :: F (Either a b) (Either c b) -> F a c
- loopLeftF :: F (Either a b) (Either a c) -> F b c
- loopOnlyF :: F a a -> F a b
- loopCompF :: F (Either (Either r2l inl) (Either l2r inr)) (Either (Either l2r outl) (Either r2l outr)) -> F (Either inl inr) (Either outl outr)
- loopCompSP :: SP (Either (Either a1 b1) (Either a2 b2)) (Either (Either a2 a3) (Either a1 b3)) -> SP (Either b1 b2) (Either a3 b3)
- loopThroughBothF :: F (Either r2l inl) (Either l2r outl) -> F (Either l2r inr) (Either r2l outr) -> F (Either inl inr) (Either outl outr)
- loopThroughBothSP :: SP (Either a1 b1) (Either a2 a3) -> SP (Either a2 b2) (Either a1 b3) -> SP (Either b1 b2) (Either a3 b3)
- nullK :: K hi ho
- nullF :: F hi ho
- putK :: KCommand ho -> K hi ho -> K hi ho
- putF :: ho -> F hi ho -> F hi ho
- putsF :: [b] -> F a b -> F a b
- putsK :: [KCommand b] -> K a b -> K a b
- putMessageF :: FCommand ho -> F hi ho -> F hi ho
- putMessageFu :: Message FRequest ho -> F hi ho -> F hi ho
- putMessagesF :: [FCommand ho] -> F hi ho -> F hi ho
- putMessagesFu :: [KCommand b] -> F a b -> F a b
- appendStartK :: [KCommand ho] -> K hi ho -> K hi ho
- appendStartMessageF :: [FCommand ho] -> F hi ho -> F hi ho
- appendStartF :: [ho] -> F hi ho -> F hi ho
- getK :: Cont (K hi ho) (KEvent hi)
- getMessageF :: Cont (F hi ho) (FEvent hi)
- getMessageFu :: Cont (F a b) (KEvent a)
- getF :: Cont (F a ho) a
- startupK :: [KEvent hi] -> K hi ho -> K hi ho
- startupMessageF :: [FEvent hi] -> F hi ho -> F hi ho
- startupF :: [hi] -> F hi ho -> F hi ho
- delayF :: F hi ho -> F hi ho
- type Cont c a = (a -> c) -> c
- data K hi ho
- data F hi ho
- class StreamProcIO sp where
- class FudgetIO f where
- prodF :: F a b -> F c d -> F (a, c) (Either b d)
- compTurnRight :: (Path, b1) -> Message (Path, b1) b2
- compTurnLeft :: (Path, b1) -> Message (Path, b1) b2
- compPath :: (Path, b1) -> p -> (Either (Message (Path, b1) b2) (Message (Path, b1) b3) -> p) -> p
- stubF :: F a b -> F c d
- bypassF :: F a a -> F a a
- throughF :: F c b -> F c (Either b c)
- toBothF :: F b (Either b b)
- idF :: F b b
- concatMapF :: (a -> [b]) -> F a b
- mapF :: (a -> b) -> F a b
- mapstateF :: (t -> a -> (t, [b])) -> t -> F a b
- absF :: SP a b -> F a b
- idLeftF :: F c d -> F (Either b c) (Either b d)
- idRightF :: F a b -> F (Either a c) (Either b c)
- serCompLeftToRightF :: F (Either a b) (Either b c) -> F a c
- serCompRightToLeftF :: F (Either a b) (Either c a) -> F b c
- serCompF :: F a1 b -> F a2 a1 -> F a2 b
- newtype Mk k r = Mk {}
- type Mkc k = Mk k ()
- type Ms k s r = Mk (s -> k) r
- type Msc k s = Ms k s ()
- loadMs :: Ms k s s
- storeMs :: s -> Msc k s
- modMs :: (s -> s) -> Msc k s
- fieldMs :: (s -> f) -> Ms k s f
- nopMs :: Msc k s
- toMkc :: (k -> k) -> Mkc k
- toMs :: Cont k r -> Ms k s r
- bmk :: ((a1 -> c1) -> c2) -> (a1 -> a2 -> c1) -> a2 -> c2
- toMsc :: (k -> k) -> Msc k r
- type Ks i o s ans = Ms (K i o) s ans
- putHighsMs :: (Foldable t, StreamProcIO sp) => t o -> Msc (sp i o) r
- putHighMs :: StreamProcIO sp => o -> Msc (sp i o) r
- putLowsMs :: (Foldable t, FudgetIO f) => t FRequest -> Msc (f hi ho) r
- putLowMs :: FudgetIO f => FRequest -> Msc (f hi ho) r
- getKs :: Ms (K hi ho) s (KEvent hi)
- nullKs :: Msc k s
- storeKs :: s -> Msc k s
- loadKs :: Ms k s s
- unitKs :: Monad m => a -> m a
- bindKs :: Monad m => m a -> (a -> m b) -> m b
- thenKs :: Monad m => m a -> m b -> m b
- mapKs :: Functor f => (a -> b) -> f a -> f b
- stateMonadK :: p -> Mk (p -> t1) t2 -> (t2 -> t1) -> t1
- stateK :: b1 -> Mk (b1 -> a) b2 -> a -> a
- data Tree a
- treeF :: Tree (a, F b c) -> F (Path, b) (a, c)
- treeF' :: Tree (a, F b c) -> FSP (Path, b) (a, c)
- leafF :: a1 -> F b1 b2 -> Fa TEvent TCommand ([a2], b1) (a1, b2)
- type InF a b = F a (InputMsg b)
- inputPairLF :: Orientation -> InF a1 b1 -> InF a2 b2 -> F (a1, a2) (InputMsg (b1, b2))
- inputListLF :: Eq a => Placer -> [(a, InF b c)] -> F [(a, b)] (InputMsg [(a, c)])
- inputPairF :: InF a1 b1 -> InF a2 b2 -> InF (a1, a2) (b1, b2)
- inputListF :: Eq a => [(a, InF b c)] -> InF [(a, b)] [(a, c)]
- inputThroughF :: InF a a -> InF a a
- contDynF :: F a b -> Cont (F a d) b
- contDynFSP :: FSP a b -> Cont (FSP a d) b
- bubbleF :: F a b -> F a b
- bubblePopupF :: F b2 d2 -> F (PopupMsg b2) d2
- bubbleRootPopupF :: F b2 d2 -> F (PopupMsg b2) d2
- invisibleGroupF :: Sizing -> [FRequest] -> [WindowAttributes] -> F b ho -> F b ho
- simpleGroupF :: [WindowAttributes] -> F b ho -> F b ho
- unmappedGroupF :: Sizing -> [FRequest] -> K a b -> F c d -> F (Either a c) (Either b d)
- groupF :: [FRequest] -> K a b -> F c d -> F (Either a c) (Either b d)
- groupF' :: Sizing -> [FRequest] -> K a b -> F c d -> F (Either a c) (Either b d)
- sgroupF :: Sizing -> [FRequest] -> Maybe Rect -> K a b -> F c d -> F (Either a c) (Either b d)
- swindowF :: [FRequest] -> Maybe Rect -> K a ho -> F a ho
- windowF :: [FRequest] -> K a b -> F a b
- sF :: Bool -> Maybe Point -> [FRequest] -> K a b -> F c d -> F (Either a c) (Either b d)
- containerGroupF :: Rect -> Rect -> Int -> Button -> [Modifiers] -> F c b -> F (Either (Rect, Rect) c) (Either Rect b)
- hPotF :: F PotRequest PotState
- hPotF' :: Bool -> Maybe Point -> F PotRequest PotState
- vPotF :: F PotRequest PotState
- vPotF' :: Bool -> Maybe Point -> F PotRequest PotState
- data PotRequest
- type PotState = (Int, Int, Int)
- popupShellF :: String -> Maybe Point -> F a b -> F a (a, b)
- popupShellF' :: Customiser ShellF -> String -> Maybe Point -> F a b -> F a (a, b)
- popupGroupF :: (Size -> Point, [WindowAttributes], K b1 d1) -> F b2 d2 -> F (PopupMsg b2) d2
- rootPopupF :: (Size -> Point, [WindowAttributes], K b1 d1) -> F b2 d2 -> F (PopupMsg b2) d2
- posPopupShellF :: [Char] -> [WindowAttributes] -> F c a -> F (c, Maybe Point) (c, a)
- scrollShellF :: [Char] -> (Point, Point) -> F c d -> F c d
- scrollF :: F b d -> F b d
- oldScrollF :: Bool -> (Point, Point) -> F b d -> F b d
- vScrollF :: F b d -> F b d
- oldVscrollF :: Bool -> (Point, Point) -> F b d -> F b d
- hScrollF :: F b d -> F b d
- oldHscrollF :: Bool -> (Point, Point) -> F b d -> F b d
- grabScrollKeys :: Bool
- data SelCmd a
- data SelEvt a
- data ESelCmd a
- data ESelEvt a
- eselectionF :: F (ESelCmd String) (ESelEvt String)
- selectionF :: F (SelCmd String) (SelEvt String)
- data ShellF
- shellF :: [Char] -> F c d -> F c d
- shellF' :: Customiser ShellF -> [Char] -> F c d -> F c d
- shellKF :: K a b -> F c d -> F (Either a c) (Either b d)
- shellKF' :: Customiser ShellF -> K a b -> F c d -> F (Either a c) (Either b d)
- setDeleteWindowAction :: Maybe DeleteWindowAction -> Customiser ShellF
- getDeleteWindowActionMaybe' :: (ShellF -> ShellF) -> Maybe (Maybe DeleteWindowAction)
- data DeleteWindowAction
- setDeleteQuit :: Bool -> Customiser ShellF
- class HasClickToType xxx where
- setClickToType :: Bool -> Customiser xxx
- getClickToType :: xxx -> Bool
- getClickToTypeMaybe :: xxx -> Maybe Bool
- setInitPos :: Maybe Point -> Customiser ShellF
- setFocusMgr :: Bool -> Customiser ShellF
- class HasVisible xxx where
- setVisible :: Bool -> Customiser xxx
- getVisible :: xxx -> Bool
- getVisibleMaybe :: xxx -> Maybe Bool
- unmappedShellF :: Foldable t => t FRequest -> K a b -> F c d -> F (Either a c) (Either b d)
- unmappedShellF' :: Foldable t => (ShellF -> ShellF) -> t FRequest -> K a b -> F c d -> F (Either a c) (Either b d)
- unmappedSimpleShellF :: String -> F i o -> F i o
- unmappedSimpleShellF' :: Customiser ShellF -> String -> F i o -> F i o
- mapWindowK :: K Bool ho
- simpleShellF :: [Char] -> [WindowAttributes] -> F c d -> F c d
- rootWindowF :: K b c -> F b c
- rootGroupF :: K a b -> F c d -> F (Either a c) (Either b d)
- maptrace :: Eq b => String -> [b] -> [b]
- ctrace :: Show a1 => [Char] -> a1 -> a2 -> a2
- showCommandF :: String -> F a b -> F a b
- spyF :: (Show b, Show a2) => F a2 b -> F a2 b
- teeF :: (b -> [Char]) -> [Char] -> F b b
- tryAllocColor :: FudgetIO f => ColormapId -> RGB -> (Maybe Color -> f b ho) -> f b ho
- tryAllocColorF :: ColormapId -> RGB -> Cont (F b c) (Maybe Color)
- allocColor :: FudgetIO f => ColormapId -> RGB -> Cont (f b ho) Color
- allocColorF :: ColormapId -> RGB -> Cont (F b c) Color
- allocColorPixel :: FudgetIO f => ColormapId -> RGB -> Cont (f b ho) Pixel
- allocColorPixelF :: ColormapId -> RGB -> Cont (F b c) Pixel
- tryAllocNamedColor :: FudgetIO f => ColormapId -> ColorName -> (Maybe Color -> f b ho) -> f b ho
- tryAllocNamedColorF :: ColormapId -> ColorName -> Cont (F b c) (Maybe Color)
- allocNamedColor :: FudgetIO f => ColormapId -> ColorName -> Cont (f b ho) Color
- allocNamedColorF :: ColormapId -> ColorName -> Cont (F b c) Color
- allocNamedColorPixel :: FudgetIO f => ColormapId -> ColorName -> Cont (f b ho) Pixel
- allocNamedColorPixelF :: ColormapId -> ColorName -> Cont (F b c) Pixel
- allocNamedColorDef :: FudgetIO f => ColormapId -> ColorName -> [Char] -> Cont (f b ho) Color
- allocNamedColorDefPixel :: FudgetIO f => ColormapId -> ColorName -> [Char] -> (Pixel -> f b ho) -> f b ho
- queryColor :: FudgetIO f => ColormapId -> Pixel -> (Color -> f b ho) -> f b ho
- queryColorF :: ColormapId -> Pixel -> Cont (F b c) Color
- createFontCursor :: Int -> Cont (K b c) CursorId
- setFontCursor :: Int -> K a b -> K a b
- defineCursor :: CursorId -> K i o -> K i o
- undefineCusror :: K i o -> K i o
- data CharStruct = CharStruct Int
- type FontStruct = FontStructF (Array Char CharStruct)
- type FontStructList = FontStructF [CharStruct]
- data FontStructF per_char = FontStruct FontId FontDirection Char Bool Char [FontProp] CharStruct (Maybe per_char) Int
- data FontDirection
- data FontProp = FontProp Atom Int
- update_font_id :: FontStructF per_char -> FontId -> FontStructF per_char
- font_range :: FontStructF per_char -> (Char, Char)
- split_string :: FontStruct -> String -> Int -> (String, String, Int)
- string_len :: FontStruct -> String -> Int
- string_rect :: FontStruct -> String -> Rect
- string_box_size :: FontStruct -> String -> Size
- string_bounds :: FontStruct -> String -> Rect
- next_pos :: FontStruct -> String -> Int
- poslist :: FontStruct -> String -> [Int]
- linespace :: FontStructF per_char -> Int
- fsl2fs :: FontStructF [e] -> FontStructF (Array Char e)
- loadQueryFont :: FudgetIO f => [Char] -> (Maybe (FontStructF (Array Char CharStruct)) -> f b ho) -> f b ho
- queryFont :: FudgetIO f => FontId -> (FontStructF (Array Char CharStruct) -> f b ho) -> f b ho
- loadFont :: FudgetIO f => [Char] -> (FontId -> f b ho) -> f b ho
- loadQueryFontF :: [Char] -> Cont (F b c) (Maybe (FontStructF (Array Char CharStruct)))
- queryFontF :: FontId -> Cont (F b c) (FontStructF (Array Char CharStruct))
- loadFontF :: [Char] -> Cont (F b c) FontId
- safeLoadQueryFont :: FudgetIO f => FontName -> (FontStructF (Array Char CharStruct) -> f b ho) -> f b ho
- safeLoadQueryFontF :: FontName -> (FontStructF (Array Char CharStruct) -> F b c) -> F b c
- listFonts :: FudgetIO f => [Char] -> Int -> ([FontName] -> f b ho) -> f b ho
- listFontsF :: [Char] -> Int -> Cont (F b c) [FontName]
- listFontsWithInfo :: FudgetIO f => [Char] -> Int -> ([(FontName, FontStructF (Array Char CharStruct))] -> f b ho) -> f b ho
- tryLoadFont :: FudgetIO f => [Char] -> (Maybe FontId -> f b ho) -> f b ho
- pmCreateGC :: FudgetIO f => PixmapId -> GCId -> [GCAttributes Pixel FontId] -> (GCId -> f b ho) -> f b ho
- wCreateGC :: FudgetIO f => GCId -> [GCAttributes Pixel FontId] -> (GCId -> f b ho) -> f b ho
- createGC :: FudgetIO f => Drawable -> GCId -> [GCAttributes Pixel FontId] -> (GCId -> f b ho) -> f b ho
- createGCF :: Drawable -> GCId -> GCAttributeList -> (GCId -> F a b) -> F a b
- wCreateGCF :: GCId -> GCAttributeList -> (GCId -> F a b) -> F a b
- pmCreateGCF :: PixmapId -> GCId -> GCAttributeList -> (GCId -> F a b) -> F a b
- convGCattrsK :: FudgetIO f => [GCAttributes ColorName [Char]] -> ([GCAttributes Pixel FontId] -> f b ho) -> f b ho
- class FontGen a where
- tryConvFontK :: FudgetIO f => a -> Cont (f i o) (Maybe FontData)
- convFontListK :: FudgetIO f => [a] -> Cont (f i o) (Maybe FontData)
- class ColorGen a where
- tryConvColorK :: FudgetIO f => a -> Cont (f i o) (Maybe Pixel)
- convColorListK :: FudgetIO f => [a] -> Cont (f i o) (Maybe Pixel)
- data FontSpec = forall a.(Show a, FontGen a) => FontSpeci a
- data ColorSpec = forall a.(Show a, ColorGen a) => ColorSpec a
- data FontData
- fdFontId :: FontData -> FontId
- fontdata2struct :: FontData -> (FontStruct -> p) -> p
- colorSpec :: (Show a, ColorGen a) => a -> ColorSpec
- fontSpec :: (Show a, FontGen a) => a -> FontSpec
- convColorK :: (ColorGen a, FudgetIO f, Show a) => a -> (Pixel -> f i o) -> f i o
- convFontK :: (FontGen a, FudgetIO f, Show a) => a -> (FontData -> f i o) -> f i o
- convList :: (t -> (Maybe a -> b) -> b) -> [t] -> (Maybe a -> b) -> b
- getFontData :: FudgetIO f => [Char] -> Cont (f i o) (Maybe FontData)
- tryConvColorRGBK :: FudgetIO f => RGB -> (Maybe Pixel -> f b ho) -> f b ho
- convGCSpecK :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => FontData -> [GCAttributes a1 a2] -> ([GCAttributes Pixel FontId] -> FontData -> f i o) -> f i o
- gcBgA :: c -> [GCAttributes c FontSpec]
- gcFgA :: c -> [GCAttributes c FontSpec]
- gcFontA :: f -> [GCAttributes ColorSpec f]
- usefontstructs :: [Char]
- type Cont c a = (a -> c) -> c
- data GCtx = GC GCId FontData
- gctx2gc :: GCtx -> GCId
- rootGCtx :: GCtx
- data GCSpec
- createGCtx :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => Drawable -> GCtx -> [GCAttributes a1 a2] -> (GCtx -> f i o) -> f i o
- wCreateGCtx :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => GCtx -> [GCAttributes a1 a2] -> (GCtx -> f i o) -> f i o
- pmCreateGCtx :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => PixmapId -> GCtx -> [GCAttributes a1 a2] -> (GCtx -> f i o) -> f i o
- class Graphic a where
- measureGraphicK :: FudgetIO k => a -> GCtx -> Cont (k i o) MeasuredGraphics
- measureGraphicListK :: FudgetIO k => [a] -> GCtx -> Cont (k i o) MeasuredGraphics
- measureText :: (FudgetIO f, Show a) => a -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho
- data MeasuredGraphics
- emptyMG :: Size -> MeasuredGraphics
- emptyMG' :: LayoutRequest -> MeasuredGraphics
- data GCtx
- type Cont c a = (a -> c) -> c
- data FixedDrawing = FixD Size [DrawCommand]
- data FixedColorDrawing = FixCD Size [(GCId, [DrawCommand])]
- newtype ImageString = ImageString String
- data FlexibleDrawing = FlexD Size Bool Bool (Rect -> [DrawCommand])
- filler :: Bool -> Bool -> Int -> FlexibleDrawing
- hFiller :: Int -> FlexibleDrawing
- vFiller :: Int -> FlexibleDrawing
- flex' :: Size -> (Rect -> [DrawCommand]) -> FlexibleDrawing
- flex :: (Rect -> [DrawCommand]) -> FlexibleDrawing
- blank' :: Size -> FlexibleDrawing
- blank :: FlexibleDrawing
- frame' :: Size -> FlexibleDrawing
- frame :: FlexibleDrawing
- ellipse :: FlexibleDrawing
- ellipse' :: Size -> FlexibleDrawing
- arc :: Int -> Int -> FlexibleDrawing
- arc' :: Size -> Int -> Int -> FlexibleDrawing
- filledEllipse :: FlexibleDrawing
- filledEllipse' :: Size -> FlexibleDrawing
- filledarc :: Int -> Int -> FlexibleDrawing
- filledarc' :: Size -> Int -> Int -> FlexibleDrawing
- drawarc :: Int -> Int -> Rect -> [DrawCommand]
- fillarc :: Int -> Int -> Rect -> [DrawCommand]
- rpar :: FlexibleDrawing
- lpar :: FlexibleDrawing
- doubleleft :: Rect -> Rect
- doubleright :: Rect -> Rect
- lbrack :: FlexibleDrawing
- rbrack :: FlexibleDrawing
- bracks :: (FlexibleDrawing, FlexibleDrawing)
- corners :: Rect -> (Point, Point, Point, Point)
- lbrace :: FlexibleDrawing
- rbrace :: FlexibleDrawing
- braces :: (FlexibleDrawing, FlexibleDrawing)
- bFlex2 :: (Rect -> [DrawCommand]) -> FlexibleDrawing
- bFlex :: (Rect -> [DrawCommand]) -> FlexibleDrawing
- bFlex' :: Size -> (Rect -> [DrawCommand]) -> FlexibleDrawing
- rAngleBracket :: FlexibleDrawing
- lAngleBracket :: FlexibleDrawing
- abPoints :: Rect -> [Point]
- abPoints' :: Rect -> [Point]
- triangleUp :: FlexibleDrawing
- filledTriangleUp :: FlexibleDrawing
- triangleDown :: FlexibleDrawing
- filledTriangleDown :: FlexibleDrawing
- size :: Point
- drawpoly :: [Point] -> [DrawCommand]
- fillpoly :: [Point] -> [DrawCommand]
- shrink :: Rect -> Rect
- trianglePoints' :: Rect -> [Point]
- trianglePoints :: Rect -> [Point]
- vMirror :: (Rect -> [Point]) -> Rect -> [Point]
- hMirror :: (Rect -> [Point]) -> Rect -> [Point]
- padFD :: Int -> FlexibleDrawing -> FlexibleDrawing
- data BitmapFile = BitmapFile String
- bitmapFromData :: FudgetIO f => BitmapData -> (BitmapReturn -> f b ho) -> f b ho
- readBitmapFile :: FudgetIO f => [Char] -> (BitmapReturn -> f b ho) -> f b ho
- createPixmap :: FudgetIO f => Point -> Int -> (PixmapId -> f b ho) -> f b ho
- data PixmapImage = PixmapImage Size PixmapId
- class PixmapGen a where
- convToPixmapK :: FudgetIO c => a -> Cont (c i o) PixmapImage
- measureImageK :: (PixmapGen a, FudgetIO c) => a -> GCtx -> (MeasuredGraphics -> c i o) -> c i o
- data Drawing lbl leaf
- labelD :: lbl -> Drawing lbl leaf -> Drawing lbl leaf
- placedD :: Placer -> Drawing lbl leaf -> Drawing lbl leaf
- atomicD :: leaf -> Drawing lbl leaf
- type DPath = [Int]
- up :: DPath -> DPath
- data GCSpec
- boxVisibleD :: Int -> [Drawing lbl leaf] -> Drawing lbl leaf
- boxD :: [Drawing lbl leaf] -> Drawing lbl leaf
- stackD :: [Drawing lbl leaf] -> Drawing lbl leaf
- vertD :: Drawing lbl leaf -> Drawing lbl leaf
- vertD' :: Distance -> Drawing lbl leaf -> Drawing lbl leaf
- horizD :: Drawing lbl leaf -> Drawing lbl leaf
- horizD' :: Distance -> Drawing lbl leaf -> Drawing lbl leaf
- vboxD :: [Drawing lbl leaf] -> Drawing lbl leaf
- hboxD :: [Drawing lbl leaf] -> Drawing lbl leaf
- vboxD' :: Distance -> [Drawing lbl leaf] -> Drawing lbl leaf
- hboxD' :: Distance -> [Drawing lbl leaf] -> Drawing lbl leaf
- vertlD :: Drawing lbl leaf -> Drawing lbl leaf
- vertlD' :: Distance -> Drawing lbl leaf -> Drawing lbl leaf
- vboxlD :: [Drawing lbl leaf] -> Drawing lbl leaf
- vboxlD' :: Distance -> [Drawing lbl leaf] -> Drawing lbl leaf
- horizcD :: Drawing lbl leaf -> Drawing lbl leaf
- horizcD' :: Distance -> Drawing lbl leaf -> Drawing lbl leaf
- hboxcD :: [Drawing lbl leaf] -> Drawing lbl leaf
- hboxcD' :: Distance -> [Drawing lbl leaf] -> Drawing lbl leaf
- tableD :: Int -> [Drawing lbl leaf] -> Drawing lbl leaf
- tableD' :: Distance -> Int -> [Drawing lbl leaf] -> Drawing lbl leaf
- matrixD :: Int -> [Drawing lbl leaf] -> Drawing lbl leaf
- matrixD' :: Distance -> Int -> [Drawing lbl leaf] -> Drawing lbl leaf
- westD :: Drawing lbl leaf -> Drawing lbl leaf
- northwestD :: Drawing lbl leaf -> Drawing lbl leaf
- padD :: Distance -> Drawing lbl leaf -> Drawing lbl leaf
- fontD :: (Show a, FontGen a) => a -> Drawing lbl leaf -> Drawing lbl leaf
- fgD :: (Show a, ColorGen a) => a -> Drawing lbl leaf -> Drawing lbl leaf
- bgD :: (Show a, ColorGen a) => a -> Drawing lbl leaf -> Drawing lbl leaf
- fatD :: Drawing lbl leaf -> Drawing lbl leaf
- attribD :: GCSpec -> Drawing lbl leaf -> Drawing lbl leaf
- softAttribD :: [GCAttributes ColorSpec FontSpec] -> Drawing lbl leaf -> Drawing lbl leaf
- hardAttribD :: GCtx -> Drawing lbl leaf -> Drawing lbl leaf
- spacedD :: Spacer -> Drawing lbl leaf -> Drawing lbl leaf
- data Gfx = forall a.Graphic a => G a
- g :: Graphic a => a -> Drawing lbl Gfx
- filledRectD :: Size -> Drawing lbl Gfx
- rectD :: Size -> Drawing lbl Gfx
- blankD :: Size -> Drawing lbl Gfx
- holeD :: Drawing lbl Gfx
- drawingPart :: Drawing lbl leaf -> DPath -> Drawing lbl leaf
- maybeDrawingPart :: Drawing lbl leaf -> DPath -> Maybe (Drawing lbl leaf)
- drawingAnnotPart :: Drawing b leaf -> DPath -> [Int]
- drawingAnnotPart' :: (t -> Bool) -> Drawing t leaf -> DPath -> [Int]
- isVisibleDrawingPart :: Drawing lbl leaf -> DPath -> Bool
- visibleAncestor :: Drawing lbl leaf -> [Int] -> [Int]
- replacePart :: Drawing lbl leaf -> DPath -> Drawing lbl leaf -> Drawing lbl leaf
- updatePart :: Drawing lbl leaf -> DPath -> (Drawing lbl leaf -> Drawing lbl leaf) -> Drawing lbl leaf
- mapLabelDrawing :: (t -> lbl) -> Drawing t leaf -> Drawing lbl leaf
- mapLeafDrawing :: (t -> leaf) -> Drawing lbl t -> Drawing lbl leaf
- annotChildren :: Drawing b d -> [(DPath, Drawing b d)]
- annotChildren' :: (a -> Bool) -> Drawing a d -> [(DPath, Drawing a d)]
- drawingAnnots :: Drawing a leaf -> [(DPath, a)]
- extractParts :: Drawing lbl leaf -> (Drawing lbl leaf -> Maybe a) -> [(DPath, a)]
- deletePart :: Drawing lbl leaf -> [Int] -> Drawing lbl leaf
- groupParts :: Int -> Int -> Drawing lbl leaf -> Drawing lbl leaf
- ungroupParts :: Int -> Drawing lbl leaf -> Drawing lbl leaf
- graphic2PixmapImage :: (Graphic a, FudgetIO k) => a -> GCtx -> (PixmapImage -> k i o) -> k i o
- data PixmapImage = PixmapImage Size PixmapId
- getWindowRootPoint :: Cont (K a b) Point
- getWindowId :: Cont (K a b) Window
- type DPath = [Int]
- up :: DPath -> DPath
- data MeasuredGraphics
- compileMG :: (Size -> Size) -> MeasuredGraphics -> (CompiledGraphics, LayoutRequest)
- emptyMG :: Size -> MeasuredGraphics
- emptyMG' :: LayoutRequest -> MeasuredGraphics
- measureString :: FudgetIO f => [Char] -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho
- measureImageString :: FudgetIO f => [Char] -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho
- measurePackedString :: FudgetIO f => PackedString -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho
- data CompiledGraphics
- = CGraphics Rect Cursor [(GCId, [DrawCommand])] [CompiledGraphics]
- | CGMark CompiledGraphics
- type Cursor = Bool
- cgLeaf :: Rect -> (Rect -> [(GCId, [DrawCommand])]) -> CompiledGraphics
- cgMark :: CompiledGraphics -> CompiledGraphics
- cgCompose :: Rect -> [CompiledGraphics] -> CompiledGraphics
- cgrect :: CompiledGraphics -> Rect
- cgsize :: CompiledGraphics -> Size
- addcursor :: CompiledGraphics -> CompiledGraphics
- removecursor :: CompiledGraphics -> CompiledGraphics
- hascursor :: CompiledGraphics -> Cursor
- cgpart :: CompiledGraphics -> [Int] -> CompiledGraphics
- cgreplace :: CompiledGraphics -> [Int] -> CompiledGraphics -> CompiledGraphics
- cgupdate :: CompiledGraphics -> [Int] -> (CompiledGraphics -> CompiledGraphics) -> CompiledGraphics
- cgcursors :: CompiledGraphics -> [[Int]]
- cgGroup :: Int -> Int -> CompiledGraphics -> CompiledGraphics
- cgUngroup :: Int -> CompiledGraphics -> CompiledGraphics
- allcacheF :: F i o -> F i o
- shapeGroupMgr :: F a b -> F a b
- doubleClickF :: Time -> F a b -> F a b
- data ButtonF lbl
- buttonF :: Graphic lbl => lbl -> F Click Click
- buttonF' :: Graphic lbl => Customiser (ButtonF lbl) -> lbl -> F Click Click
- buttonF'' :: Graphic lbl => Customiser (ButtonF lbl) -> lbl -> PF (ButtonF lbl) Click Click
- setLabel :: lbl -> Customiser (ButtonF lbl)
- data RadioGroupF
- radioGroupF :: (Graphic lbl, Eq alt) => [(alt, lbl)] -> alt -> F alt alt
- radioGroupF' :: (Graphic lbl, Eq alt) => Customiser RadioGroupF -> [(alt, lbl)] -> alt -> F alt alt
- setPlacer :: Placer -> Customiser RadioGroupF
- class HasLabelInside xxx where
- setLabelInside :: Bool -> Customiser xxx
- getLabelInside :: xxx -> Bool
- getLabelInsideMaybe :: xxx -> Maybe Bool
- data ToggleButtonF
- toggleButtonF :: Graphic lbl => lbl -> F Bool Bool
- toggleButtonF' :: Graphic lbl => Customiser ToggleButtonF -> lbl -> F Bool Bool
- border3dF :: Bool -> Int -> F a b -> F (Either Bool a) b
- buttonBorderF :: Int -> F a b -> F (Either Bool a) b
- oldButtonF :: (Graphic e, FontGen a1, Show a1, Show a2, ColorGen a2) => Double -> Int -> a1 -> ColorSpec -> a2 -> [(ModState, KeySym)] -> e -> F e Click
- buttonGroupF :: [(ModState, KeySym)] -> F (Either BMevents b) c -> F b c
- menuButtonGroupF :: F (Either BMevents b) c -> F b c
- data BMevents
- pushButtonF :: [(ModState, KeySym)] -> F b1 b2 -> F b1 (Either b2 Click)
- pushButtonF' :: Int -> [(ModState, KeySym)] -> F b1 b2 -> F b1 (Either b2 Click)
- data Click = Click
- quitButtonF :: F Click b
- quitIdF :: (ho -> Bool) -> F ho ho
- quitF :: F ans ho
- radioF :: (Eq a, Graphic a1, Show a2, FontGen a2) => Placer -> Bool -> a2 -> [(a, a1)] -> a -> F a a
- oldRadioGroupF :: (Eq d, Graphic a1, Show a2, FontGen a2) => Placer -> Bool -> a2 -> [d] -> d -> (d -> a1) -> F d d
- toggleF :: Bool -> [(ModState, KeySym)] -> F c b -> F (Either Bool c) (Either Bool b)
- oldToggleButtonF :: (Graphic a1, Show a2, FontGen a2) => a2 -> [(ModState, KeySym)] -> a1 -> F Bool Bool
- oldToggleButtonF' :: (Graphic a1, Show a2, FontGen a2) => Bool -> a2 -> [(ModState, KeySym)] -> a1 -> F Bool Bool
- toggleGroupF :: [(ModState, KeySym)] -> F (Either (Either Bool Bool) a) b -> F (Either Bool a) (Either Bool b)
- data GraphicsF gfx
- setCursorSolid :: Bool -> Customiser (GraphicsF gfx)
- setGfxEventMask :: [GfxEventMask] -> Customiser (GraphicsF gfx)
- setAdjustSize :: Bool -> Customiser (GraphicsF gfx)
- setCursor :: Int -> Customiser (GraphicsF gfx)
- setDoubleBuffer :: Bool -> Customiser (GraphicsF gfx)
- graphicsF :: Graphic gfx => F (GfxFCmd gfx) GfxFEvent
- graphicsF' :: Graphic gfx => Customiser (GraphicsF gfx) -> F (GfxFCmd gfx) GfxFEvent
- graphicsGroupF :: Graphic gfx => F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o)
- graphicsGroupF' :: Graphic gfx => Customiser (GraphicsF gfx) -> F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o)
- graphicsDispGroupF :: Graphic gfx => F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o)
- graphicsDispGroupF' :: Graphic gfx => (GraphicsF gfx -> GraphicsF gfx) -> F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o)
- graphicsLabelF :: Graphic a => a -> F e d
- graphicsLabelF' :: Graphic a => (GraphicsF a -> GraphicsF a) -> a -> F e d
- graphicsDispF :: Graphic a => F (GfxFCmd a) GfxFEvent
- graphicsDispF' :: Graphic gfx => Customiser (GraphicsF gfx) -> F (GfxFCmd gfx) GfxFEvent
- data GfxEventMask
- data GfxChange gfx
- = GfxReplace (Bool, Maybe gfx)
- | GfxGroup Int Int
- | GfxUngroup Int
- data GfxCommand path gfx
- = ChangeGfx [(path, GfxChange gfx)]
- | ChangeGfxBg ColorSpec
- | ChangeGfxBgPixmap PixmapId Bool
- | forall bg.Graphic bg => ChangeGfxBgGfx bg
- | ChangeGfxCursor CursorId
- | ChangeGfxFontCursor Int
- | ShowGfx path (Maybe Alignment, Maybe Alignment)
- | BellGfx Int
- | GetGfxPlaces [path]
- data GfxEvent path
- = GfxButtonEvent { }
- | GfxMotionEvent { }
- | GfxKeyEvent { }
- | GfxFocusEvent {
- gfxHasFocus :: Bool
- | GfxPlaces [Rect]
- | GfxResized Size
- type GfxFCmd a = GfxCommand DPath a
- type GfxFEvent = GfxEvent DPath
- replaceGfx :: path -> gfx -> GfxCommand path gfx
- replaceAllGfx :: gfx -> GfxCommand [a] gfx
- showGfx :: path -> GfxCommand path gfx
- highlightGfx :: path -> Bool -> GfxCommand path gfx
- hyperGraphicsF :: (Eq d, Graphic leaf) => Drawing d leaf -> F (Either (Drawing d leaf) (d, Drawing d leaf)) d
- hyperGraphicsF' :: (Eq d, Graphic leaf) => (GraphicsF (Drawing d leaf) -> GraphicsF (Drawing d leaf)) -> Drawing d leaf -> F (Either (Drawing d leaf) (d, Drawing d leaf)) d
- menuButtonF :: Graphic lbl => FontName -> lbl -> F lbl Click
- menuLabelF :: Graphic lbl => FontName -> lbl -> F (Either Bool lbl) (GfxEvent DPath)
- simpleMenuF :: (Eq b, Graphic c, Graphic a) => FontName -> a -> [b] -> (b -> c) -> F a b
- menuAltsF :: (Eq d, Graphic b) => [Char] -> [d] -> (d -> b) -> F PopupMenu d
- menuF :: (Graphic mlbl, Graphic albl) => mlbl -> [(alt, albl)] -> F alt alt
- oldMenuF :: (Graphic c, Eq b, Graphic a) => FontName -> a -> [(b, [(ModState, KeySym)])] -> (b -> c) -> F a b
- buttonMenuF :: Graphic lbl => LayoutDir -> FontName -> lbl -> [(a, [(ModState, KeySym)])] -> F (Either MenuState b) a -> F (Either MenuState (Either lbl b)) (Either MenuState a)
- buttonMenuF' :: Graphic lbl => Bool -> LayoutDir -> FontName -> lbl -> [(a, [(ModState, KeySym)])] -> F (Either MenuState b) a -> F (Either MenuState (Either lbl b)) (Either MenuState a)
- grabberF :: [(a1, [(ModState, KeySym)])] -> F (Either a2 a1) (Either MenuState d) -> F a1 d
- data MenuState
- menuDown :: MenuState
- data EqSnd a b = EqSnd a b
- fstEqSnd :: EqSnd a b -> a
- sndEqSnd :: EqSnd a b -> b
- toEqSnd :: [(a, b)] -> [EqSnd a b]
- data PopupMenu
- menuPopupF :: F b d -> F (Either PopupMenu b) d
- menuPopupF' :: Bool -> F b d -> F (Either PopupMenu b) d
- inputPopupOptF :: String -> InF a b -> Maybe b -> F (Maybe String, Maybe a) ((Maybe String, Maybe a), Maybe b)
- inputPopupF :: String -> InF a c -> Maybe c -> F (Maybe String, Maybe a) ((Maybe String, Maybe a), c)
- passwdPopupOptF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), Maybe String)
- passwdPopupF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), String)
- stringPopupOptF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), Maybe String)
- stringPopupF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), String)
- confirmPopupF :: Graphic msg => F msg (msg, ConfirmMsg)
- data ConfirmMsg
- oldConfirmPopupF :: F String (String, ConfirmMsg)
- oldMessagePopupF :: F String (String, Click)
- messagePopupF :: Graphic msg => F msg (msg, Click)
- popupMenuF :: (Eq b1, Graphic b1) => [(a, b1)] -> F c b2 -> F (Either [(a, b1)] c) (Either a b2)
- oldPopupMenuF :: (Eq b1, Graphic b2, Foldable t) => ColorName -> Bool -> [Char] -> Button -> [Modifiers] -> t (ModState, KeySym) -> [(b1, b3)] -> (b1 -> b2) -> F c d -> F (Either [(b1, b4)] c) (Either b1 d)
- oldPopupMenuF' :: forall t b1 b2 b3 c d a b4 b5. (Eq b1, Graphic b2, Foldable t) => ColorName -> Bool -> [Char] -> Button -> [Modifiers] -> t (ModState, KeySym) -> [(b1, b3)] -> (b1 -> b2) -> F c d -> F (Either (Either a b4) (Either (Either [(b1, b5)] PopupMenu) c)) (Either (Either (Either a PopupMenu) b4) (Either b1 d))
- oldFilePickF :: F String (InputMsg String)
- smallPickListF :: (d -> String) -> F [d] d
- labRightOfF :: Graphic g => g -> F c d -> F c d
- labLeftOfF :: Graphic g => g -> F c d -> F c d
- labBelowF :: Graphic g => g -> F c d -> F c d
- labAboveF :: Graphic g => g -> F c d -> F c d
- tieLabelF :: Graphic g => Orientation -> Double -> g -> F c d -> F c d
- setSpacer :: Spacer -> Customiser (DisplayF a)
- data DisplayF a
- displayF :: Graphic g => F g void
- displayF' :: Graphic a => Customiser (DisplayF a) -> F a b
- intDispF :: F Int b
- intDispF' :: Customiser (DisplayF Int) -> F Int b
- labelF :: Graphic g => g -> F a b
- labelF' :: Graphic g => Customiser (DisplayF g) -> g -> F a b
- stringF :: F String (InputMsg String)
- stringF' :: Customiser StringF -> F String (InputMsg String)
- passwdF :: F String (InputMsg String)
- passwdF' :: (StringF -> StringF) -> F String (InputMsg String)
- passwdF'' :: (StringF -> StringF) -> PF StringF String (InputMsg String)
- intF :: F Int (InputMsg Int)
- intF' :: Customiser StringF -> F Int (InputMsg Int)
- intF'' :: Customiser StringF -> PF StringF Int (InputMsg Int)
- stringInputF :: F String String
- intInputF :: F Int Int
- passwdInputF :: F String String
- stringInputF' :: Customiser StringF -> F String String
- intInputF' :: Customiser StringF -> F Int Int
- passwdInputF' :: (StringF -> StringF) -> F String String
- moreF :: F [String] (InputMsg (Int, String))
- moreF' :: Customiser TextF -> F [String] (InputMsg (Int, String))
- pickListF :: (a -> String) -> F (PickListRequest a) (InputMsg (Int, a))
- pickListF' :: Customiser TextF -> (a -> String) -> F (PickListRequest a) (InputMsg (Int, a))
- type PickListRequest a = ListRequest a
- moreFileShellF :: F String (InputMsg (Int, String))
- moreShellF :: String -> F [String] (InputMsg (Int, String))
- moreShellF' :: Customiser TextF -> String -> F [String] (InputMsg (Int, String))
- moreFileF :: F String (InputMsg (Int, String))
- stringF'' :: Customiser StringF -> PF StringF String (InputMsg String)
- data StringF
- getAllowedChar :: StringF -> Char -> Bool
- setAllowedChar :: (Char -> Bool) -> Customiser StringF
- getShowString :: StringF -> String -> String
- setShowString :: (String -> String) -> Customiser StringF
- setInitStringSize :: String -> Customiser StringF
- getCursorPos :: StringF -> Int
- setCursorPos :: Int -> Customiser StringF
- getInitString :: StringF -> String
- setInitString :: String -> Customiser StringF
- generalStringF :: Int -> [Char] -> Sizing -> ColorSpec -> ColorSpec -> FontSpec -> (Char -> Bool) -> (String -> String) -> Int -> [Char] -> F (Either (StringF -> StringF) [Char]) (InputMsg [Char])
- oldIntF :: Int -> InF Int Int
- oldPasswdF :: String -> InF String String
- oldStringF :: String -> InF String String
- bdStringF :: Int -> Sizing -> FontSpec -> [Char] -> F [Char] (InputMsg [Char])
- oldGeneralStringF :: Int -> Sizing -> FontSpec -> (Char -> Bool) -> (String -> String) -> [Char] -> F [Char] (InputMsg [Char])
- textF :: F TextRequest (InputMsg (Int, String))
- textF' :: Customiser TextF -> F TextRequest (InputMsg (Int, String))
- textF'' :: Customiser TextF -> PF TextF TextRequest (InputMsg (Int, String))
- data TextF
- type TextRequest = ListRequest String
- terminalF :: FontName -> Int -> Int -> F String a
- cmdTerminalF :: FontName -> Int -> Int -> F TerminalCmd a
- data TerminalCmd
- onOffDispF :: Bool -> F Bool nothing
- offColor :: [Char]
- onColor :: [Char]
- gcWarningF :: F a b
- bellF :: F ho ho
- data EditStop
- editF :: FontSpec -> F EditCmd EditEvt
- data EditEvt
- data EditCmd
- oldEditorF :: FontSpec -> F EditCmd EditEvt
- selectall :: [EditCmd]
- loadEditor :: String -> [EditCmd]
- setEditorCursorPos :: (Int, Int) -> [EditCmd]
- data EDirection
- newline :: Char
- type EditStopFn = String -> String -> EditStopChoice
- data EditStopChoice
- type IsSelect = Bool
- data EditorF
- inputEditorF :: F String (InputMsg String)
- inputEditorF' :: (EditorF -> EditorF) -> F String (InputMsg String)
- editorF :: F EditCmd EditEvt
- editorF' :: (EditorF -> EditorF) -> F EditCmd EditEvt
- (-==-) :: SP a1 b -> SP a2 a1 -> SP a2 b
- (-+-) :: SP a1 a2 -> SP a3 b -> SP (Either a1 a3) (Either a2 b)
- (-*-) :: SP a b -> SP a b -> SP a b
- (>+<) :: F a b -> F c d -> F (Either a c) (Either b d)
- (>*<) :: F c ho -> F c ho -> F c ho
- (>==<) :: F a1 b -> F a2 a1 -> F a2 b
- (>^^=<) :: SP a b -> F e a -> F e b
- (>=^^<) :: F c d -> SP e c -> F e d
- (>^=<) :: (a -> b) -> F e a -> F e b
- (>=^<) :: F c d -> (e -> c) -> F e d
- (>..=<) :: SP TCommand TCommand -> F hi ho -> F hi ho
- (>=..<) :: F hi ho -> SP TEvent TEvent -> F hi ho
- (>.=<) :: (TCommand -> TCommand) -> F hi ho -> F hi ho
- (>=.<) :: F hi ho -> (TEvent -> TEvent) -> F hi ho
- (>#==<) :: (F a1 f, Orientation) -> F e a1 -> F e f
- (>#+<) :: (F a b, Orientation) -> F c d -> F (Either a c) (Either b d)
- (>==#<) :: F a1 b -> (Distance, Orientation, F a a1) -> F a b
- (>+#<) :: F a b -> (Distance, Orientation, F c d) -> F (Either a c) (Either b d)
- changeBackPixel :: (Show a, ColorGen a) => a -> K i o -> K i o
- changeGetBackPixel :: (Show a, ColorGen a) => a -> (Pixel -> K i o) -> K i o
- getWindowPropertyK :: Int -> Atom -> Bool -> Atom -> Cont (K b c) (Atom, Int, Int, Int, String)
- getGeometryK :: Cont (K b c) (Rect, Int, Int)
- changeBg :: ColorName -> K a b -> K a b
- darkGreyBgK :: K b ho -> K b ho
- lightGreyBgK :: K b ho -> K b ho
- greyBgK :: K b ho -> K b ho
- knobBgK :: K b ho -> K b ho
- changeBackPixmap :: (ColorGen a1, ColorGen a2, Show a1, Show a2) => a1 -> a2 -> Point -> [DrawCommand] -> K i o -> K i o
- internAtomK :: String -> Bool -> Cont (K b c) Atom
- internAtomF :: String -> Bool -> Cont (F b c) Atom
- internAtom :: FudgetIO f => String -> Bool -> (Atom -> f b ho) -> f b ho
- atomNameK :: Atom -> Cont (K b c) (Maybe String)
- atomNameF :: Atom -> Cont (F b c) (Maybe String)
- atomName :: FudgetIO f => Atom -> (Maybe String -> f b ho) -> f b ho
- parK :: K a b -> K a b -> K a b
- compK :: K a b -> K c d -> K (Either a c) (Either b d)
- queryPointerK :: Cont (K b c) (Bool, Point, Point, ModState)
- quitK :: (K (Either String Bool) a -> K (Either String Bool) a) -> K hi ho
- wmK :: Maybe (K (Either String Bool) c -> K (Either String Bool) c) -> K (Either String Bool) c
- exitK :: p -> K b ho
- unmapWindowK :: K i o -> K i o
- reportK :: K hi () -> K hi ()
- wmDeleteWindowK :: (Atom -> K b c) -> K b c
- dynShapeK :: [GCAttributes ColorName [Char]] -> (Size -> [DrawCommand]) -> K c d -> K (Either (Size -> [DrawCommand]) c) (Either b d)
- shapeK :: (Size -> [DrawCommand]) -> K a b -> K a b
- type Drawer = DrawCommand -> FRequest
- type Fms' a b c = MapState a (KEvent b) [KCommand c]
- type MapState a b c = a -> b -> (a, c)
- simpleF :: [Char] -> (Drawer -> Drawer -> Fms' a c d) -> Size -> a -> F c d
- simpleWindowF :: (Drawer -> Drawer -> Fms' a1 a2 b) -> Size -> Bool -> Bool -> a1 -> F a2 b
- simpleK :: (Drawer -> Drawer -> Fms' a b c) -> Size -> a -> K b c
- queryTreeK :: Cont (K b c) (Window, Window, [Window])
- queryTreeF :: Cont (F b c) (Window, Window, [Window])
- defaultRootWindowK :: Cont (K b c) Window
- defaultRootWindowF :: Cont (F b c) Window
- defaultVisual :: FudgetIO f => (Visual -> f b ho) -> f b ho
- mapstateK :: (t -> KEvent hi -> (t, [KCommand ho])) -> t -> K hi ho
- autoLayoutF :: F a b -> F a b
- autoLayoutF' :: Bool -> Sizing -> F a b -> F a b
- nowait :: Bool
- idP :: Placer
- revP :: Placer -> Placer
- mapP :: (Placer1 -> Placer1) -> Placer -> Placer
- flipP :: Placer -> Placer
- permuteP :: [Int] -> Placer -> Placer
- type Alignment = Double
- aTop :: Alignment
- aBottom :: Alignment
- aLeft :: Alignment
- aRight :: Alignment
- aCenter :: Alignment
- data Orientation
- data LayoutDir
- xc :: LayoutDir -> Point -> Int
- yc :: LayoutDir -> Point -> Int
- fixh :: LayoutDir -> LayoutRequest -> Bool
- fixv :: LayoutDir -> LayoutRequest -> Bool
- mkp :: LayoutDir -> Int -> Int -> Point
- vswap :: LayoutDir -> (b, b) -> (b, b)
- colinear :: LayoutDir -> p -> p -> p
- orthogonal :: LayoutDir -> p -> p -> p
- serCompLF :: (F a1 f, Orientation) -> F e a1 -> F e f
- compLF :: (F a b, Orientation) -> F c d -> F (Either a c) (Either b d)
- listLF :: Eq a => Placer -> [(a, F b c)] -> F (a, b) (a, c)
- untaggedListLF :: Placer -> [F a b] -> F (Int, a) b
- nullLF :: F hi ho
- holeF :: F hi ho
- holeF' :: Size -> F hi ho
- lF :: Int -> LayoutDirection -> Placer -> F a b -> F a b
- data LayoutDirection
- orientP :: Orientation -> Placer
- data LayoutRequest = Layout {}
- plainLayout :: Size -> Bool -> Bool -> LayoutRequest
- refpLayout :: Size -> Bool -> Bool -> [Point] -> LayoutRequest
- data LayoutMessage
- data LayoutResponse
- layoutMakeVisible :: Rect -> LayoutMessage
- newtype Placer = P Placer1
- type Placer1 = [LayoutRequest] -> Placer2
- type Placer2 = (LayoutRequest, Rect -> [Rect])
- unP :: Placer -> Placer1
- newtype Spacer = S Spacer1
- type Spacer1 = LayoutRequest -> Spacer2
- type Spacer2 = (LayoutRequest, Rect -> Rect)
- unS :: Spacer -> Spacer1
- type LayoutHint = String
- mapLayoutSize :: (Size -> Size) -> LayoutRequest -> LayoutRequest
- mapAdjLayoutSize :: (Size -> Size) -> (Int -> Int) -> (Int -> Int) -> LayoutRequest -> LayoutRequest
- mapLayoutRefs :: (Point -> Point) -> LayoutRequest -> LayoutRequest
- flipReq :: LayoutRequest -> LayoutRequest
- flipWanted :: (Point, Point, c) -> (Point, Point, c)
- flipRect :: Rect -> Rect
- flipPoint :: Point -> Point
- linearP :: LayoutDir -> Distance -> Placer
- verticalP :: Placer
- horizontalP :: Placer
- horizontalP' :: Distance -> Placer
- verticalP' :: Distance -> Placer
- matrixP :: Int -> Placer
- matrixP' :: Int -> LayoutDir -> Distance -> Placer
- marginHVAlignLs :: Distance -> Alignment -> Alignment -> Layout -> Layout
- hvAlignLs :: Alignment -> Alignment -> Layout -> Layout
- marginLs :: Distance -> Layout -> Layout
- sepLs :: Size -> Layout -> Layout
- hBoxLs' :: Distance -> [Layout] -> Layout
- vBoxLs' :: Distance -> [Layout] -> Layout
- placeLs :: Placer -> [Layout] -> Layout
- spaceLs :: Spacer -> Layout -> Layout
- revLs :: Layout -> Layout
- permLs :: [Int] -> Layout -> Layout
- leafLs :: Layout
- layoutF :: Layout -> F a b -> F a b
- data Layout
- tableP :: Int -> Placer
- tableP' :: Int -> LayoutDir -> Distance -> Placer
- tryLayoutK :: LayoutRequest -> Cont (K b c) Size
- type LName = String
- placeNL :: Placer -> [NameLayout] -> NameLayout
- spaceNL :: Spacer -> NameLayout -> NameLayout
- modNL :: (Placer -> Placer) -> NameLayout -> NameLayout
- marginNL :: Distance -> NameLayout -> NameLayout
- sepNL :: Size -> NameLayout -> NameLayout
- hvAlignNL :: Alignment -> Alignment -> NameLayout -> NameLayout
- marginHVAlignNL :: Distance -> Alignment -> Alignment -> NameLayout -> NameLayout
- nullNL :: NameLayout
- hBoxNL :: [NameLayout] -> NameLayout
- hBoxNL' :: Distance -> [NameLayout] -> NameLayout
- vBoxNL :: [NameLayout] -> NameLayout
- vBoxNL' :: Distance -> [NameLayout] -> NameLayout
- leafNL :: LName -> NameLayout
- data NameLayout
- nameF :: LName -> F a b -> F a b
- listNF :: (Eq a, Show a) => [(a, F b c)] -> F (a, b) (a, c)
- nameLayoutF :: NameLayout -> F a b -> F a b
- userLayoutF :: F a b -> F (Either (Path, Rect) a) (Either (Path, LayoutMessage) b)
- autoP :: Placer
- autoP' :: Size -> Placer
- dynListLF :: Placer -> F (Int, DynFMsg a b) (Int, b)
- placerF :: Placer -> F a b -> F a b
- spacerF :: Spacer -> F a b -> F a b
- spacer1F :: Spacer -> F a b -> F a b
- hBoxF :: F a b -> F a b
- vBoxF :: F a b -> F a b
- revHBoxF :: F a b -> F a b
- revVBoxF :: F a b -> F a b
- matrixF :: Int -> F a b -> F a b
- tableF :: Int -> F a b -> F a b
- marginHVAlignF :: Distance -> Alignment -> Alignment -> F a b -> F a b
- alignF :: Size -> Size -> Alignment -> Alignment -> F a b -> F a b
- layoutModifierF :: (LayoutRequest -> LayoutRequest) -> F a b -> F a b
- noStretchF :: Bool -> Bool -> F a b -> F a b
- sepF :: Size -> F a b -> F a b
- marginF :: Distance -> F a b -> F a b
- type Distance = Int
- type Distance = Int
- hMarginS :: Distance -> Distance -> Spacer
- vMarginS :: Distance -> Distance -> Spacer
- hvMarginS :: Size -> Size -> Spacer
- center :: Point -> Rect -> Rect
- center' :: Point -> Size -> Rect -> Rect
- sepS :: Size -> Spacer
- marginS :: Distance -> Spacer
- leftS :: Spacer
- hCenterS :: Spacer
- rightS :: Spacer
- vAlignS :: Alignment -> Spacer
- topS :: Spacer
- vCenterS :: Spacer
- bottomS :: Spacer
- hvAlignS :: Alignment -> Alignment -> Spacer
- centerS :: Spacer
- hAlignS :: Alignment -> Spacer
- marginHVAlignS :: Distance -> Alignment -> Alignment -> Spacer
- spacerP :: Spacer -> Placer -> Placer
- flipS :: Spacer -> Spacer
- mapS :: (Spacer1 -> Spacer1) -> Spacer -> Spacer
- idS :: Spacer
- compS :: Spacer -> Spacer -> Spacer
- sizeS :: Size -> Spacer
- maxSizeS :: Size -> Spacer
- minSizeS :: Size -> Spacer
- resizeS :: (Size -> Size) -> Spacer
- noStretchS :: Bool -> Bool -> Spacer
- mapLayout :: (Size -> Bool -> Bool -> (Int -> Size) -> (Int -> Size) -> [Point] -> Maybe (Point, Size, Alignment) -> t) -> LayoutRequest -> t
- layoutModifierS :: (LayoutRequest -> LayoutRequest) -> Spacer
- overlayP :: Placer
- verticalLeftP :: Placer
- verticalLeftP' :: Distance -> Placer
- horizontalCenterP :: Placer
- horizontalCenterP' :: Distance -> Placer
- dynSpacerF :: F c ho -> F (Either Spacer c) ho
- dynPlacerF :: F c ho -> F (Either Placer c) ho
- data Sizing
- newSize :: Sizing -> Point -> Point -> Point
- ifSizeP :: (Size -> Size -> Bool) -> Placer -> Placer -> Placer
- ifSizeS :: (Size -> Size -> Bool) -> Spacer -> Spacer -> Spacer
- stretchCaseS :: ((Bool, Bool) -> Spacer) -> Spacer
- alignFixedS :: Alignment -> Alignment -> Spacer
- alignFixedS' :: Alignment -> Alignment -> Spacer
- alignP :: Placer
- alignP' :: Distance -> Placer
- horizontalAlignP :: Placer
- horizontalAlignP' :: Distance -> Placer
- refMiddleS :: Spacer
- refMiddleS' :: LayoutRequest -> (LayoutRequest, a -> a)
- refEdgesS :: Spacer
- middleRefs :: Point -> (Point, Point)
- noRefsS :: Spacer
- moveRefsS :: Point -> Spacer
- spacersP :: Placer -> [Spacer] -> Placer
- overlayAlignP :: Placer
- paragraphP :: Placer
- paragraphP' :: Size -> Placer
- paragraphP'' :: (Int -> Placer) -> Size -> Placer
- atLeastOne :: ([a], [a]) -> ([a], [a])
- type Cont c a = (a -> c) -> c
- conts :: (a -> Cont c b) -> [a] -> Cont c [b]
- tryM :: Cont c (Maybe a) -> c -> Cont c a
- cmdContF :: FRequest -> (FResponse -> Maybe a) -> Cont (F b c) a
- cmdContK :: FRequest -> (FResponse -> Maybe a) -> Cont (K b c) a
- cmdContK' :: KCommand ho -> (KEvent hi -> Maybe a) -> Cont (K hi ho) a
- waitForSP :: (a -> Maybe t) -> (t -> SP a b) -> SP a b
- waitForK :: (KEvent hi -> Maybe a) -> Cont (K hi ho) a
- waitForF :: (a -> Maybe b) -> Cont (F a c) b
- waitForFu :: (KEvent hi -> Maybe ans) -> Cont (F hi ho) ans
- cmdContSP :: a -> (b -> Maybe c) -> Cont (SP b a) c
- tryGet :: Cont c (Maybe a) -> Cont c a -> Cont c a
- getLeftSP :: (t -> SP (Either t b1) b2) -> SP (Either t b1) b2
- getRightSP :: (t -> SP (Either a1 t) b) -> SP (Either a1 t) b
- fContWrap :: Cont (FSP hi ho) a -> Cont (F hi ho) a
- kContWrap :: Cont (KSP hi ho) a -> Cont (K hi ho) a
- dropSP :: (t1 -> Maybe t2) -> (t2 -> SP t1 b) -> SP t1 b
- contMap :: StreamProcIO sp => (i -> (o -> sp i o) -> sp i o) -> sp i o
- openDisplay :: DisplayName -> Cont (F b c) Display
- spIO :: SP (Path, Response) (Path, Request) -> IO ()
- tagEventsSP :: F i o -> SP (Path, Response) (Path, Request)
- adjustBorderWidth :: Int -> Point -> Point
- border_width :: Int
- getBWidth :: [WindowChanges] -> Maybe Int
- kernelF :: K a b -> F a b
- toKernel :: [b1] -> [Message (Path, b1) b2]
- kernelTag :: Path
- autumnize :: [a] -> [a]
- windowKF :: (Rect -> FRequest) -> Bool -> Bool -> [FRequest] -> Maybe Rect -> K a b -> F c d -> F (Either a c) (Either b d)
- xrequest :: FudgetIO f => XRequest -> (XResponse -> Maybe ans) -> (ans -> f b ho) -> f b ho
- xrequestF :: XRequest -> (XResponse -> Maybe a) -> Cont (F b c) a
- xrequestK :: XRequest -> (XResponse -> Maybe a) -> Cont (K b c) a
- type Cont c a = (a -> c) -> c
- xcommand :: FudgetIO f => XCommand -> f hi ho -> f hi ho
- xcommandK :: XCommand -> K i o -> K i o
- xcommandF :: XCommand -> F i o -> F i o
- xcommands :: FudgetIO f => [XCommand] -> f hi ho -> f hi ho
- xcommandsK :: [XCommand] -> K i o -> K i o
- xcommandsF :: [XCommand] -> F i o -> F i o
- select :: FudgetIO f => [Descriptor] -> f hi ho -> f hi ho
- sIOsucc :: FudgetIO f => SocketRequest -> f b ho -> f b ho
- sIOstr :: FudgetIO f => SocketRequest -> (String -> f b ho) -> f b ho
- sIOerr :: FudgetIO f => SocketRequest -> (IOError -> f b ho) -> (SocketResponse -> f b ho) -> f b ho
- sIO :: FudgetIO f => SocketRequest -> (SocketResponse -> f b ho) -> f b ho
- type Cont c a = (a -> c) -> c
- data Fudlogue
- fudlogue :: F a b -> IO ()
- fudlogue' :: Customiser Fudlogue -> F a b -> IO ()
- class HasCache xxx where
- setCache :: Bool -> Customiser xxx
- getCache :: xxx -> Bool
- getCacheMaybe :: xxx -> Maybe Bool
- class FudgetIO f where
- putMsgs :: (Foldable t, FudgetIO f) => t (KCommand ho) -> f hi ho -> f hi ho
- putHigh :: FudgetIO f => ho -> f hi ho -> f hi ho
- putLow :: FudgetIO f => FRequest -> f hi ho -> f hi ho
- putLows :: (Foldable t, FudgetIO f) => t FRequest -> f hi ho -> f hi ho
- getHigh :: FudgetIO f => (ans -> f ans ho) -> f ans ho
- getLow :: FudgetIO f => (FResponse -> f b ho) -> f b ho
- cmdContMsg :: FudgetIO f => KCommand ho -> (KEvent hi -> Maybe ans) -> (ans -> f hi ho) -> f hi ho
- cmdContLow :: FudgetIO f => FRequest -> (FResponse -> Maybe ans) -> (ans -> f b ho) -> f b ho
- data Direction
- move :: Move a => Point -> a -> a
- moveDrawCommands :: [DrawCommand] -> Point -> [DrawCommand]
- moveDrawCommand :: DrawCommand -> Point -> DrawCommand
- newtype K hi ho = K (KSP hi ho)
- newtype F hi ho = F (FSP hi ho)
- type KSP hi ho = SP (KEvent hi) (KCommand ho)
- type FSP hi ho = SP (FEvent hi) (FCommand ho)
- type Fudget a b = F a b
- type KCommand a = Message FRequest a
- type FCommand a = Message TCommand a
- type KEvent a = Message FResponse a
- type FEvent a = Message TEvent a
- type Fa a b c d = SP (Message a c) (Message b d)
- type TCommand = (Path, FRequest)
- type TEvent = (Path, FResponse)
- kk :: KSP hi ho -> K hi ho
- ff :: FSP hi ho -> F hi ho
- unK :: K hi ho -> KSP hi ho
- unF :: F hi ho -> FSP hi ho
- data SP a b
- data FRequest
- data FResponse
- data Message a b
- type Path = [Direction]
- data Direction
- data Message a b
- isHigh :: Message a b -> Bool
- isLow :: Message a b -> Bool
- stripHigh :: Message a1 a2 -> Maybe a2
- stripLow :: Message a b -> Maybe a
- mapMessage :: (t1 -> a) -> (t2 -> b) -> Message t1 t2 -> Message a b
- message :: (t1 -> p) -> (t2 -> p) -> Message t1 t2 -> p
- aLow :: (t -> a) -> Message t b -> Message a b
- aHigh :: (t -> b) -> Message a t -> Message a b
- pushMsg :: Functor f => Message (f a) (f b) -> f (Message a b)
- showPath :: Path -> String
- subPath :: Path -> Path -> Bool
- absPath :: Path -> Path -> Path
- path :: Path -> (Direction, Path)
- turn :: Direction -> Path -> Path
- here :: Path
- type Path = [Direction]
- data PopupMsg a
- data Click = Click
- data ConfirmMsg
- toConfirm :: Either a b -> ConfirmMsg
- fromConfirm :: ConfirmMsg -> Either Click Click
- data InputMsg a
- = InputChange a
- | InputDone KeySym a
- inputMsg :: a -> InputMsg a
- inputChange :: a -> InputMsg a
- inputButtonKey :: KeySym
- inputLeaveKey :: KeySym
- stripInputMsg :: InputMsg p -> p
- tstInp :: (t -> p) -> InputMsg t -> p
- mapInp :: (t -> a) -> InputMsg t -> InputMsg a
- inputDone :: InputMsg a -> Maybe a
- inputLeaveDone :: InputMsg a -> Maybe a
- data ListRequest a
- = ReplaceItems Int Int [a]
- | HighlightItems [Int]
- | PickItem Int
- listEnd :: Int
- replaceAll :: [a] -> ListRequest a
- replaceAllFrom :: Int -> [a] -> ListRequest a
- deleteItems :: Int -> Int -> ListRequest a
- insertItems :: Int -> [a] -> ListRequest a
- appendItems :: [a] -> ListRequest a
- changeItems :: Int -> [a] -> ListRequest a
- replaceItems :: Int -> Int -> [a] -> ListRequest a
- highlightItems :: [Int] -> ListRequest a
- pickItem :: Int -> ListRequest a
- applyListRequest :: ListRequest a -> [a] -> [a]
- intersectRects :: [Rect] -> Rect -> [Rect]
- overlaps :: Rect -> Rect -> Bool
- boundingRect :: Rect -> Rect -> Rect
- diffRect :: Rect -> Rect -> [Rect]
- data FResponse
- data FRequest
- layoutRequestCmd :: LayoutRequest -> FRequest
- data XCommand
- data XEvent
- data XRequest
- data XResponse
- data SocketRequest
- data SocketResponse
- data LayoutMessage
- data LayoutResponse
- type DisplayName = String
- data BitmapData = BitmapData Size (Maybe Point) [Int]
- type Command = XCommand
- data XRequest
- = OpenDisplay DisplayName
- | CreateSimpleWindow Path Rect
- | CreateRootWindow Rect String
- | CreateGC Drawable GCId GCAttributeList
- | LoadFont FontName
- | CreateFontCursor Int
- | GrabPointer Bool [EventMask]
- | LMLQueryFont FontId
- | AllocNamedColor ColormapId ColorName
- | AllocColor ColormapId RGB
- | CreatePixmap Size Depth
- | ReadBitmapFile FilePath
- | CreateBitmapFromData BitmapData
- | RmGetStringDatabase String
- | RmGetResource RmDatabase String String
- | TranslateCoordinates
- | InternAtom String Bool
- | GetAtomName Atom
- | GetWindowProperty Int Atom Bool Atom
- | QueryPointer
- | QueryFont FontId
- | LoadQueryFont FontName
- | QueryColor ColormapId Pixel
- | QueryTree
- | DefaultRootWindow
- | GetGeometry
- | DefaultVisual
- | Sync Bool
- | QueryTextExtents16 FontId String
- | ListFonts FontName Int
- | ListFontsWithInfo FontName Int
- | GetResource RmSpec
- | DbeQueryExtension
- | DbeAllocateBackBufferName SwapAction
- | DbeSwapBuffers SwapAction
- | CreateMyWindow Rect
- data XCommand
- = CloseDisplay Display
- | DestroyWindow
- | MapRaised
- | LowerWindow
- | UnmapWindow
- | Draw Drawable GCId DrawCommand
- | DrawMany Drawable [(GCId, [DrawCommand])]
- | ClearArea Rect Bool
- | ClearWindow
- | ChangeGC GCId GCAttributeList
- | FreeGC GCId
- | ChangeWindowAttributes [WindowAttributes]
- | ConfigureWindow [WindowChanges]
- | StoreName String
- | SetNormalHints Point
- | SetWMHints Bool
- | UngrabPointer
- | GrabButton Bool Button ModState [EventMask]
- | UngrabButton Button ModState
- | Flush
- | FreePixmap PixmapId
- | ShapeCombineMask ShapeKind Point PixmapId ShapeOperation
- | ShapeCombineRectangles ShapeKind Point [Rect] ShapeOperation Ordering'
- | ShapeCombineShape ShapeKind Point PixmapId ShapeKind ShapeOperation
- | RmDestroyDatabase RmDatabase
- | RmCombineDatabase RmDatabase RmDatabase Bool
- | RmPutLineResource RmDatabase String
- | SetWMProtocols [Atom]
- | SendEvent Window Bool [EventMask] XEvent
- | SetSelectionOwner Bool Atom
- | ConvertSelection Selection
- | ChangeProperty Window Atom Atom Int PropertyMode String
- | FreeColors ColormapId [Pixel] Pixel
- | ReparentWindow Window
- | WarpPointer Point
- | SetRegion GCId Rect
- | AddToSaveSet
- | RemoveFromSaveSet
- | Bell Int
- | SetGCWarningHack { }
- | GrabEvents Bool
- | UngrabEvents
- | TranslateEvent (XEvent -> Maybe XEvent) [EventMask]
- | ReparentToMe Path Window
- | GetWindowId
- | SelectWindow Window
- | MeButtonMachine
- moveWindow :: Point -> XCommand
- resizeWindow :: Point -> XCommand
- moveResizeWindow :: Rect -> XCommand
- clearWindowExpose :: XCommand
- data DrawCommand
- data Drawable
- data BitmapReturn
- data XResponse
- = DisplayOpened Display
- | WindowCreated Window
- | GCCreated GCId
- | CursorCreated CursorId
- | PointerGrabbed GrabPointerResult
- | FontLoaded FontId
- | LMLFontQueried FontStruct
- | ColorAllocated (Maybe Color)
- | PixmapCreated PixmapId
- | BitmapRead BitmapReturn
- | RmDatabaseCreated RmDatabase
- | GotResource (Maybe (String, RmValue))
- | CoordinatesTranslated Point
- | GotAtom Atom
- | GotAtomName (Maybe String)
- | GotEvent (Window, XEvent)
- | GotWindowProperty Atom Int Int Int String
- | PointerQueried Bool Point Point ModState
- | FontQueried (Maybe FontStructList)
- | ColorQueried Color
- | TreeQueried Window Window [Window]
- | GotDefaultRootWindow Window
- | GotGeometry Rect Int Int
- | GotVisual Visual
- | Synced
- | TextExtents16Queried Int Int CharStruct
- | GotFontList [FontName]
- | GotFontListWithInfo [(FontName, FontStructList)]
- | DbeExtensionQueried Int Int Int
- | DbeBuffersSwapped Int
- | DbeBackBufferNameAllocated DbeBackBufferId
- type Event = XEvent
- data XEvent
- = FocusIn { }
- | FocusOut { }
- | KeymapNotify
- | GraphicsExpose {
- rect :: Rect
- count :: Int
- major_code, minor_code :: Int
- | KeyEvent { }
- | ButtonEvent { }
- | MotionNotify { }
- | EnterNotify { }
- | LeaveNotify { }
- | Expose { }
- | NoExpose
- | VisibilityNotify Visibility
- | CreateNotify Window
- | DestroyNotify Window
- | UnmapNotify Window
- | MapNotify Window
- | MapRequest Window
- | ReparentNotify
- | ConfigureNotify Rect Int
- | ConfigureRequest
- | GravityNotify
- | ResizeRequest Point
- | CirculateNotify
- | CirculateRequest
- | PropertyNotify
- | SelectionClear Atom
- | SelectionRequest Time Window Selection
- | SelectionNotify Time Selection
- | ColormapNotify
- | ClientMessage Atom ClientData
- | MappingNotify
- | YourWindowId Window
- | MenuPopupMode Bool
- data ClientData
- data Visibility
- data Mode
- data Detail
- data Pressed
- = Pressed
- | Released
- | MultiClick Int
- newtype KeyCode = KeyCode Int
- type FontStructList = FontStructF [CharStruct]
- type FontStruct = FontStructF (Array Char CharStruct)
- data DLValue
- newtype DLHandle = DL DL
- data AEvent
- data Descriptor
- type AsyncInput = (Descriptor, AEvent)
- newtype Timer = Ti Int
- newtype LSocket = LSo Int
- newtype Socket = So Int
- type Peer = Host
- type Host = String
- type Port = Int
- data SocketResponse
- data SocketRequest
- = OpenLSocket Port
- | OpenSocket Host Port
- | WriteSocket Socket String
- | CloseSocket Socket
- | CloseLSocket LSocket
- | GetStdinSocket
- | CreateTimer Int Int
- | DestroyTimer Timer
- | GetLSocketName LSocket
- | GetSocketName Socket
- | StartProcess String Bool Bool Bool
- | DLOpen String
- | DLClose DLHandle
- | DLSym DLHandle String
- | OpenFileAsSocket String String
- | WriteSocketPS Socket PackedString
- | GetStdoutSocket
- data SwapAction
- data StackMode
- data WindowChanges
- data WindowAttributes
- type GCAttributeList = [GCAttributes Pixel FontId]
- data GCAttributes a b
- data GCFillStyle
- data GCSubwindowMode
- data GCJoinStyle
- data GCCapStyle
- data GCLineStyle
- data GCFunction
- = GXclear
- | GXand
- | GXandReverse
- | GXcopy
- | GXandInverted
- | GXnoop
- | GXxor
- | GXor
- | GXnor
- | GXequiv
- | GXinvert
- | GXorReverse
- | GXCopyInverted
- | GXorInverted
- | GXnand
- | GXset
- data GrabPointerResult
- data BackingStore
- newtype PropertyMode = PropertyMode Int
- data Selection = Selection Atom Atom Atom
- data Color = Color {
- colorPixel :: Pixel
- colorRGB :: RGB
- data RGB = RGB Int Int Int
- type PlaneMask = Pixel
- newtype Pixel = Pixel Word
- type Width = Int
- type KeyLookup = String
- type XDisplay = Display
- newtype Display = Display Int
- noDisplay :: Display
- pixel0 :: Pixel
- pixel1 :: Pixel
- maxRGB :: Int
- grayRGB :: Int -> RGB
- whiteRGB :: RGB
- blackRGB :: RGB
- propModeReplace :: PropertyMode
- propModePrepend :: PropertyMode
- propModeAppend :: PropertyMode
- invertColorGCattrs :: Pixel -> Pixel -> [GCAttributes Pixel b]
- invcol :: Pixel -> Pixel -> Pixel
- data EventMask
- = KeyPressMask
- | KeyReleaseMask
- | ButtonPressMask
- | ButtonReleaseMask
- | EnterWindowMask
- | LeaveWindowMask
- | PointerMotionMask
- | PointerMotionHintMask
- | Button1MotionMask
- | Button2MotionMask
- | Button3MotionMask
- | Button4MotionMask
- | Button5MotionMask
- | ButtonMotionMask
- | KeymapStateMask
- | ExposureMask
- | VisibilityChangeMask
- | StructureNotifyMask
- | ResizeRedirectMask
- | SubstructureNotifyMask
- | SubstructureRedirectMask
- | FocusChangeMask
- | PropertyChangeMask
- | ColormapChangeMask
- | OwnerGrabButtonMask
- clEventMask :: [EventMask]
- data Gravity
- data ShapeKind
- data ShapeOperation
- data Ordering'
- type RmClass = String
- type RmName = String
- type RmQuery = (RmClass, RmName)
- type RmSpec = [RmQuery]
- type RmValue = String
- type RmDatabase = Int
- rmNothing :: Int
- data Modifiers
- clModifiers :: [Modifiers]
- data Button
- type ModState = [Modifiers]
- type KeySym = String
- newtype XID = XID Int
- newtype WindowId = WindowId XID
- type Window = WindowId
- type XWId = WindowId
- rootWindow :: WindowId
- noWindow :: WindowId
- windowNone :: WindowId
- newtype PixmapId = PixmapId XID
- newtype DbeBackBufferId = DbeBackBufferId XID
- newtype FontId = FontId XID
- newtype GCId = GCId Int
- newtype CursorId = CursorId XID
- newtype ColormapId = ColormapId XID
- defaultColormap :: ColormapId
- cursorNone :: CursorId
- newtype Atom = Atom Int
- type ColorName = String
- type FontName = String
- type Time = Int
- currentTime :: Time
- type Depth = Int
- copyFromParent :: Depth
- parentRelative :: PixmapId
- none :: PixmapId
- rootGC :: GCId
- newtype ImageFormat = ImageFormat Int
- xyBitmap :: ImageFormat
- xyPixmap :: ImageFormat
- zPixmap :: ImageFormat
- data DisplayClass
- newtype VisualID = VisualID Int
- data Visual = Visual {}
- data DrawCommand
- = DrawLine Line
- | DrawImageString Point String
- | DrawString Point String
- | DrawRectangle Rect
- | FillRectangle Rect
- | FillPolygon Shape CoordMode [Point]
- | DrawArc Rect Int Int
- | FillArc Rect Int Int
- | CopyArea Drawable Rect Point
- | CopyPlane Drawable Rect Point Int
- | DrawPoint Point
- | CreatePutImage Rect ImageFormat [Pixel]
- | DrawImageStringPS Point PackedString
- | DrawStringPS Point PackedString
- | DrawLines CoordMode [Point]
- | DrawImageString16 Point String
- | DrawString16 Point String
- data Drawable
- data CoordMode
- data Shape
- draw :: Drawable -> GCId -> DrawCommand -> FRequest
- drawMany :: Drawable -> [(GCId, [DrawCommand])] -> FRequest
- wDraw :: GCId -> DrawCommand -> FRequest
- wDrawMany :: [(GCId, [DrawCommand])] -> FRequest
- pmDraw :: PixmapId -> GCId -> DrawCommand -> FRequest
- pmDrawMany :: PixmapId -> [(GCId, [DrawCommand])] -> FRequest
- clearArea :: Rect -> Bool -> FRequest
- clearWindow :: FRequest
- fillCircle :: Point -> Int -> DrawCommand
- drawCircle :: Point -> Int -> DrawCommand
- pmDrawLine :: PixmapId -> GCId -> Line -> FRequest
- pmDrawLines :: PixmapId -> GCId -> CoordMode -> [Point] -> FRequest
- pmDrawImageString :: PixmapId -> GCId -> Point -> String -> FRequest
- pmDrawString :: PixmapId -> GCId -> Point -> String -> FRequest
- pmDrawImageString16 :: PixmapId -> GCId -> Point -> String -> FRequest
- pmDrawString16 :: PixmapId -> GCId -> Point -> String -> FRequest
- pmDrawImageStringPS :: PixmapId -> GCId -> Point -> PackedString -> FRequest
- pmDrawStringPS :: PixmapId -> GCId -> Point -> PackedString -> FRequest
- pmDrawRectangle :: PixmapId -> GCId -> Rect -> FRequest
- pmFillRectangle :: PixmapId -> GCId -> Rect -> FRequest
- pmFillPolygon :: PixmapId -> GCId -> Shape -> CoordMode -> [Point] -> FRequest
- pmDrawArc :: PixmapId -> GCId -> Rect -> Int -> Int -> FRequest
- pmFillArc :: PixmapId -> GCId -> Rect -> Int -> Int -> FRequest
- pmCopyArea :: PixmapId -> GCId -> Drawable -> Rect -> Point -> FRequest
- pmCopyPlane :: PixmapId -> GCId -> Drawable -> Rect -> Point -> Int -> FRequest
- pmDrawPoint :: PixmapId -> GCId -> Point -> FRequest
- pmCreatePutImage :: PixmapId -> GCId -> Rect -> ImageFormat -> [Pixel] -> FRequest
- wDrawLine :: GCId -> Line -> FRequest
- wDrawLines :: GCId -> CoordMode -> [Point] -> FRequest
- wDrawImageString :: GCId -> Point -> String -> FRequest
- wDrawString :: GCId -> Point -> String -> FRequest
- wDrawImageString16 :: GCId -> Point -> String -> FRequest
- wDrawString16 :: GCId -> Point -> String -> FRequest
- wDrawImageStringPS :: GCId -> Point -> PackedString -> FRequest
- wDrawStringPS :: GCId -> Point -> PackedString -> FRequest
- wDrawRectangle :: GCId -> Rect -> FRequest
- wFillRectangle :: GCId -> Rect -> FRequest
- wFillPolygon :: GCId -> Shape -> CoordMode -> [Point] -> FRequest
- wDrawArc :: GCId -> Rect -> Int -> Int -> FRequest
- wFillArc :: GCId -> Rect -> Int -> Int -> FRequest
- wDrawCircle :: GCId -> Point -> Int -> FRequest
- wFillCircle :: GCId -> Point -> Int -> FRequest
- wCopyArea :: GCId -> Drawable -> Rect -> Point -> FRequest
- wCopyPlane :: GCId -> Drawable -> Rect -> Point -> Int -> FRequest
- wDrawPoint :: GCId -> Point -> FRequest
- wCreatePutImage :: GCId -> Rect -> ImageFormat -> [Pixel] -> FRequest
- look3d :: Bool
- new3d :: Bool
- edgeWidth :: Int
- defaultSep :: Num a => a
- paperColor :: ColorName
- fgColor :: ColorName
- bgColor :: ColorName
- inputFg :: ColorName
- inputBg :: ColorName
- shadowColor :: ColorName
- shineColor :: ColorName
- defaultPosition :: Maybe Point
- defaultSize :: Maybe Point
- defaultFont :: FontName
- menuFont :: FontName
- buttonFont :: FontName
- labelFont :: FontName
- metaKey :: Modifiers
- options :: [([Char], [Char])]
- progName :: String
- resourceName :: String
- args :: [[Char]]
- argKey :: [Char] -> [Char] -> [Char]
- argReadKey :: (Read p, Show p) => [Char] -> p -> p
- argFlag :: [Char] -> Bool -> Bool
- argKeyList :: [Char] -> [[Char]] -> [[Char]]
- data AFilePath
- rootPath :: AFilePath
- aFilePath :: FilePath -> AFilePath
- filePath :: AFilePath -> FilePath
- compactPath :: AFilePath -> AFilePath
- isAbsolute :: AFilePath -> Bool
- joinPaths :: AFilePath -> AFilePath -> AFilePath
- pathRelativeTo :: AFilePath -> AFilePath -> AFilePath
- extendPath :: AFilePath -> String -> AFilePath
- pathTail :: AFilePath -> String
- pathHead :: AFilePath -> AFilePath
- pathLength :: AFilePath -> Int
- class Move a where
- fmove :: (Functor f, Move b) => Point -> f b -> f b
- data Point = Point {}
- type Size = Point
- data Line = Line Point Point
- data Rect = Rect {}
- origin :: Point
- pP :: Int -> Int -> Point
- lL :: Int -> Int -> Int -> Int -> Line
- rR :: Int -> Int -> Int -> Int -> Rect
- diag :: Int -> Point
- padd :: Point -> Point -> Point
- psub :: Point -> Point -> Point
- rsub :: Rect -> Rect -> Point
- posrect :: Rect -> Point -> Rect
- moverect :: Rect -> Point -> Rect
- sizerect :: Rect -> Size -> Rect
- growrect :: Rect -> Point -> Rect
- moveline :: Line -> Point -> Line
- rect2line :: Rect -> Line
- line2rect :: Line -> Rect
- (=.>) :: Point -> Point -> Bool
- inRect :: Point -> Rect -> Bool
- scale :: (RealFrac a1, Integral b, Integral a2) => a1 -> a2 -> b
- scalePoint :: RealFrac a => a -> Point -> Point
- rectMiddle :: Rect -> Point
- freedom :: Rect -> Rect -> Point
- pmin :: Point -> Point -> Point
- pmax :: Point -> Point -> Point
- pMin :: [Point] -> Point
- pMax :: [Point] -> Point
- plim :: Point -> Point -> Point -> Point
- confine :: Rect -> Rect -> Rect
- rmax :: Rect -> Rect -> Rect
- mapLow :: (t -> [a]) -> SP (Message t b) (Message a b)
- mapHigh :: (t -> [b]) -> SP (Message a t) (Message a b)
- mapstateLow :: (t1 -> t2 -> (t1, [a])) -> t1 -> SP (Message t2 b) (Message a b)
- mapstateHigh :: (t1 -> t2 -> (t1, [b])) -> t1 -> SP (Message a t2) (Message a b)
- type Cont c a = (a -> c) -> c
- plookup :: Foldable t => (a -> Bool) -> t (a, b) -> Maybe b
- stripLeft :: Either a b -> Maybe a
- stripRight :: Either a1 a2 -> Maybe a2
- stripEither :: Either p p -> p
- filterLeft :: [Either b1 b2] -> [b1]
- filterRight :: [Either a b] -> [b]
- isLeft :: Either a b -> Bool
- isRight :: Either a b -> Bool
- mapEither :: (t1 -> a) -> (t2 -> b) -> Either t1 t2 -> Either a b
- swapEither :: Either b a -> Either a b
- splitEitherList :: [Either a1 a2] -> ([a1], [a2])
- fromLeft :: Either a b -> a
- fromRight :: Either a b -> b
- expandTabs :: Int -> [Char] -> [Char]
- rmBS :: [Char] -> [Char]
- wrapLine :: Int -> [a] -> [[a]]
- aboth :: (t -> b) -> (t, t) -> (b, b)
- mapPair :: (t1 -> a, t2 -> b) -> (t1, t2) -> (a, b)
- pairwith :: (t -> b) -> t -> (t, b)
- swap :: (b, a) -> (a, b)
- pair :: a -> b -> (a, b)
- setFst :: (a1, b) -> a2 -> (a2, b)
- setSnd :: (a, b1) -> b2 -> (a, b2)
- oo :: (t1 -> t2) -> (t3 -> t4 -> t1) -> t3 -> t4 -> t2
- anth :: Int -> (a -> a) -> [a] -> [a]
- number :: Int -> [a] -> [(Int, a)]
- loop :: (t -> t) -> t
- ifC :: (a -> a) -> Bool -> a -> a
- thenC :: Bool -> (a -> a) -> a -> a
- gmap :: Foldable t1 => (t2 -> [a] -> [a]) -> (t3 -> t2) -> t1 t3 -> [a]
- unionmap :: (Foldable t1, Eq a) => (t2 -> [a]) -> t1 t2 -> [a]
- remove :: Eq t => t -> [t] -> [t]
- replace :: Eq a => (a, b) -> [(a, b)] -> [(a, b)]
- unconcat :: [Int] -> [a] -> [[a]]
- lunconcat :: [[a1]] -> [a2] -> [[a2]]
- lhead :: [a1] -> [a2] -> [a2]
- ltail :: [a1] -> [a2] -> [a2]
- lsplit :: [a1] -> [a2] -> ([a2], [a2])
- part :: (a -> Bool) -> [a] -> ([a], [a])
- issubset :: (Foldable t1, Foldable t2, Eq a) => t1 a -> t2 a -> Bool
- mapList :: (a -> b) -> [a] -> [b]
- segments :: (a -> Bool) -> [a] -> [[a]]
- version :: [Char]
- version_0_18_3_2 :: [Char]
- prepostMapSP :: (t1 -> a) -> (t2 -> b) -> SP a t2 -> SP t1 b
- postMapSP :: (t -> b) -> SP a t -> SP a b
- preMapSP :: SP a b -> (t -> a) -> SP t b
- idRightSP :: SP a1 a2 -> SP (Either a1 b) (Either a2 b)
- idLeftSP :: SP a1 b -> SP (Either a2 a1) (Either a2 b)
- idHighSP :: SP a1 a2 -> SP (Message a1 b) (Message a2 b)
- idLowSP :: SP a1 b -> SP (Message a2 a1) (Message a2 b)
- compMsgSP :: SP a1 a2 -> SP a3 b -> SP (Message a1 a3) (Message a2 b)
- compSP :: SP a1 a2 -> SP a3 b -> SP (Either a1 a3) (Either a2 b)
- compEitherSP :: SP a1 a2 -> SP a3 b -> SP (Either a1 a3) (Either a2 b)
- serCompSP :: SP a1 b -> SP a2 a1 -> SP a2 b
- data DynMsg a b
- = DynCreate b
- | DynDestroy
- | DynMsg a
- type DynSPMsg a b = DynMsg a (SP a b)
- dynforkmerge :: Eq a => SP (a, DynSPMsg b c) (a, c)
- loopLeftSP :: SP (Either a1 a2) (Either a1 b) -> SP a2 b
- loopSP :: SP a a -> SP a a
- loopOnlySP :: SP a a -> SP a b
- loopThroughRightSP :: SP (Either a1 a2) (Either a3 b) -> SP a3 a1 -> SP a2 b
- seqSP :: SP a b -> SP a b -> SP a b
- parSP :: SP a b -> SP a b -> SP a b
- data SP a b
- type SPm i o ans = Mk (SP i o) ans
- putsSPm :: [o] -> SPm i o ()
- putSPm :: o -> SPm i o ()
- getSPm :: SPm i o i
- nullSPm :: SPm i o ()
- monadSP :: SPm i o () -> SP i o
- toSPm :: SP i o -> SPm i o ()
- type SPms i o s ans = Ms (SP i o) s ans
- putsSPms :: [o] -> SPms i o s ()
- putSPms :: o -> SPms i o s ()
- getSPms :: SPms i o s i
- nullSPms :: SPms i o s ()
- loadSPms :: SPms i o s s
- storeSPms :: s -> SPms i o s ()
- stateMonadSP :: s -> SPms i o s ans -> (ans -> SP i o) -> SP i o
- interpSP :: (t1 -> t2 -> t2) -> ((a -> t2) -> t2) -> t2 -> SP a t1 -> t2
- nullSP :: SP a b
- putsSP :: [b] -> SP a b -> SP a b
- putSP :: b -> SP a b -> SP a b
- appendStartSP :: [b] -> SP a b -> SP a b
- stepSP :: [b] -> Cont (SP a b) a
- getSP :: Cont (SP a b) a
- walkSP :: SP a1 a2 -> a1 -> ([a2], SP a1 a2)
- pullSP :: SP a1 a2 -> ([a2], SP a1 a2)
- runSP :: SP a1 a2 -> [a1] -> [a2]
- feedSP :: a -> [a] -> SP a b -> SP a b
- startupSP :: [a] -> SP a b -> SP a b
- delaySP :: SP a b -> SP a b
- mapSP :: (t -> b) -> SP t b
- idSP :: SP b b
- concatMapSP :: (t -> [b]) -> SP t b
- concmapSP :: (t -> [b]) -> SP t b
- concatMapAccumlSP :: (t -> a -> (t, [b])) -> t -> SP a b
- mapstateSP :: (t -> a -> (t, [b])) -> t -> SP a b
- mapAccumlSP :: (t -> a -> (t, b)) -> t -> SP a b
- concatSP :: SP [b] b
- concSP :: SP [b] b
- zipSP :: [a] -> SP b (a, b)
- filterSP :: (b -> Bool) -> SP b b
- splitAtElemSP :: (a -> Bool) -> Cont (SP a b) [a]
- chopSP :: ((b -> SP a b) -> SP a b) -> SP a b
- type Cont c a = (a -> c) -> c
- mapFilterSP :: (t -> Maybe b) -> SP t b
- filterLeftSP :: SP (Either b1 b2) b1
- filterRightSP :: SP (Either a1 b) b
- filterJustSP :: SP (Maybe b) b
- splitSP :: SP (a, b) (Either a b)
- toBothSP :: SP b (Either b b)
- idempotSP :: Eq a => SP a a
- class StreamProcIO sp where
- puts :: (Foldable t, StreamProcIO sp) => t o -> sp i o -> sp i o
- inputPairSP :: SP (Either (InputMsg a) (InputMsg b)) (InputMsg (a, b))
- inputListSP :: Eq a => [a] -> SP (a, InputMsg b) (InputMsg [(a, b)])
- stripInputSP :: SP (InputMsg b) b
- inputDoneSP :: SP (InputMsg b) b
- inputLeaveDoneSP :: SP (InputMsg b) b
- hIOSucc :: FudgetIO f => Request -> f b ho -> f b ho
- hIOerr :: FudgetIO f => Request -> (IOError -> f b ho) -> (Response -> f b ho) -> f b ho
- haskellIO :: FudgetIO f => Request -> (Response -> f b ho) -> f b ho
- hIO :: FudgetIO f => Request -> (Response -> f b ho) -> f b ho
- haskellIOF :: Request -> (Response -> F a b) -> F a b
- hIOerrF :: Request -> (IOError -> F a b) -> (Response -> F a b) -> F a b
- hIOF :: Request -> (Response -> F a b) -> F a b
- hIOSuccF :: Request -> F a b -> F a b
- linesSP :: SP Char [Char]
- inputLinesSP :: SP [Char] [Char]
- echoK :: FudgetIO f => [Char] -> f b ho -> f b ho
- echoStderrK :: FudgetIO f => [Char] -> f b ho -> f b ho
- appendChanK :: FudgetIO f => String -> String -> f b ho -> f b ho
- appendStdoutK :: FudgetIO f => String -> f b ho -> f b ho
- appendStderrK :: FudgetIO f => String -> f b ho -> f b ho
- outputF :: String -> F String a
- stdioF :: F String String
- stderrF :: F String a
- stdoutF :: F String a
- stdinF :: F b String
- ioF :: K a b -> F a b
- transmitterF' :: Socket -> F [Char] ()
- receiverF' :: Socket -> F hi String
- openSocketF :: FudgetIO f => Host -> Port -> (Socket -> f b ho) -> f b ho
- openSocketErrF :: FudgetIO f => Host -> Port -> (IOError -> f b ho) -> (Socket -> f b ho) -> f b ho
- openLSocketF :: FudgetIO f => Port -> (LSocket -> f b ho) -> f b ho
- openLSocketErrF :: FudgetIO f => Port -> (IOError -> f b ho) -> (LSocket -> f b ho) -> f b ho
- openFileAsSocketF :: FudgetIO f => String -> String -> (Socket -> f b ho) -> f b ho
- openFileAsSocketErrF :: FudgetIO f => String -> String -> (IOError -> f b ho) -> (Socket -> f b ho) -> f b ho
- transmitterF :: Socket -> F [Char] b
- receiverF :: Socket -> F e String
- transceiverF :: Socket -> F [Char] String
- asyncTransceiverF :: Socket -> F [Char] String
- asyncTransmitterF :: Socket -> F [Char] b
- asyncTransmitterF' :: Socket -> F [Char] ()
- closerF :: Socket -> F ans ho
- timerF :: F (Maybe (Int, Int)) Tick
- data Tick = Tick
- readFileF :: F String (String, Either IOError String)
- readBinaryFileF :: F String (String, Either IOError String)
- readXdgFileF :: XdgDirectory -> F String (String, Either IOError String)
- readDirF :: F String (String, Either IOError [String])
- writeFileF :: F (String, String) (String, Either IOError ())
- writeXdgFileF :: XdgDirectory -> F (String, String) (String, Either IOError ())
- writeFileF' :: (a -> t -> Request) -> F (a, t) (a, Either IOError ())
- appStorageF :: (Read a, Show a) => String -> a -> F a a
- readM :: Read a => String -> Maybe a
- subProcessF :: String -> F [Char] (Either String String)
- unsafeGetDLValue :: DLValue -> a
- getTime :: FudgetIO f => (ClockTime -> f b ho) -> f b ho
- getLocalTime :: FudgetIO f => (CalendarTime -> f b ho) -> f b ho
- getCurrentTime :: FudgetIO f => (UTCTime -> f b ho) -> f b ho
- getZonedTime :: FudgetIO f => (ZonedTime -> f b ho) -> f b ho
- getModificationTime :: FudgetIO f => FilePath -> (IOError -> f b ho) -> (ClockTime -> f b ho) -> f b ho
- class HasSizing xxx where
- setSizing :: Sizing -> Customiser xxx
- getSizing :: xxx -> Sizing
- getSizingMaybe :: xxx -> Maybe Sizing
- class HasInitText xxx where
- setInitText :: [String] -> Customiser xxx
- getInitText :: xxx -> [String]
- getInitTextMaybe :: xxx -> Maybe [String]
- class HasStretchable xxx where
- setStretchable :: (Bool, Bool) -> Customiser xxx
- getStretchable :: xxx -> (Bool, Bool)
- getStretchableMaybe :: xxx -> Maybe (Bool, Bool)
- class HasInitDisp xxx where
- setInitDisp :: a -> Customiser (xxx a)
- getInitDispMaybe :: xxx a -> Maybe a
- getInitDisp :: xxx a -> a
- class HasInitSize xxx where
- setInitSize :: a -> Customiser (xxx a)
- getInitSizeMaybe :: xxx a -> Maybe a
- getInitSize :: xxx a -> a
- class HasAlign xxx where
- setAlign :: Alignment -> Customiser xxx
- getAlign :: xxx -> Alignment
- getAlignMaybe :: xxx -> Maybe Alignment
- class HasMargin xxx where
- setMargin :: Int -> Customiser xxx
- getMargin :: xxx -> Int
- getMarginMaybe :: xxx -> Maybe Int
- class HasFgColorSpec xxx where
- setFgColorSpec :: ColorSpec -> Customiser xxx
- getFgColorSpec :: xxx -> ColorSpec
- getFgColorSpecMaybe :: xxx -> Maybe ColorSpec
- class HasBgColorSpec xxx where
- setBgColorSpec :: ColorSpec -> Customiser xxx
- getBgColorSpec :: xxx -> ColorSpec
- getBgColorSpecMaybe :: xxx -> Maybe ColorSpec
- class HasBorderWidth xxx where
- setBorderWidth :: Int -> Customiser xxx
- getBorderWidth :: xxx -> Int
- getBorderWidthMaybe :: xxx -> Maybe Int
- class HasWinAttr xxx where
- setWinAttr :: [WindowAttributes] -> Customiser xxx
- getWinAttr :: xxx -> [WindowAttributes]
- getWinAttrMaybe :: xxx -> Maybe [WindowAttributes]
- class HasKeys xxx where
- class HasFontSpec xxx where
- setFontSpec :: FontSpec -> Customiser xxx
- getFontSpec :: xxx -> FontSpec
- getFontSpecMaybe :: xxx -> Maybe FontSpec
- type PK p a b = K (Either (Customiser p) a) b
- type PF p a b = F (Either (Customiser p) a) b
- type Customiser a = a -> a
- cust :: (a -> a) -> Customiser a
- getpar :: (t -> Maybe c) -> [t] -> c
- getparMaybe :: (t -> Maybe a) -> [t] -> Maybe a
- noPF :: PF p a b -> F a b
- standard :: Customiser a
- setFont :: (HasFontSpec xxx, Show a, FontGen a) => a -> Customiser xxx
- setBgColor :: (HasBgColorSpec xxx, Show a, ColorGen a) => a -> Customiser xxx
- setFgColor :: (HasFgColorSpec xxx, Show a, ColorGen a) => a -> Customiser xxx
- type Alignment = Double
- fromMaybe :: a -> Maybe a -> a
Combinators
preMapHigh :: F c ho -> (hi -> c) -> F hi ho Source #
postMapHigh :: (a -> ho) -> F hi a -> F hi ho Source #
preMapHighK :: K c ho -> (hi -> c) -> K hi ho Source #
postMapHighK :: (a -> ho) -> K hi a -> K hi ho Source #
preMapHigh' :: Fa a b c d -> (e -> c) -> Fa a b e d Source #
preMapLow' :: Fa a b c d -> (e -> a) -> Fa e b c d Source #
postMapHigh' :: (a -> b) -> Fa c d e a -> Fa c d e b Source #
postMapLow' :: (a -> b) -> Fa c a d e -> Fa c b d e Source #
prepostMapHigh' :: (a -> b) -> (c -> d) -> Fa e f b c -> Fa e f a d Source #
prepostMapHigh :: (hi -> b) -> (c -> ho) -> F b c -> F hi ho Source #
prepostMapHighK :: (hi -> b) -> (c -> ho) -> K b c -> K hi ho Source #
prepostMapLow' :: (a -> b) -> (c -> d) -> Fa b c e f -> Fa a d e f Source #
untaggedListF :: [F a b] -> F a b Source #
loopThroughLowSP :: SP (Either c e) (Either c e) -> SP (Message e a) (Message c b) -> SP (Message e a) (Message c b) Source #
loopCompF :: F (Either (Either r2l inl) (Either l2r inr)) (Either (Either l2r outl) (Either r2l outr)) -> F (Either inl inr) (Either outl outr) Source #
loopCompSP :: SP (Either (Either a1 b1) (Either a2 b2)) (Either (Either a2 a3) (Either a1 b3)) -> SP (Either b1 b2) (Either a3 b3) Source #
loopThroughBothF :: F (Either r2l inl) (Either l2r outl) -> F (Either l2r inr) (Either r2l outr) -> F (Either inl inr) (Either outl outr) Source #
loopThroughBothSP :: SP (Either a1 b1) (Either a2 a3) -> SP (Either a2 b2) (Either a1 b3) -> SP (Either b1 b2) (Either a3 b3) Source #
appendStartF :: [ho] -> F hi ho -> F hi ho Source #
Instances
Instances
class StreamProcIO sp where Source #
Instances
compPath :: (Path, b1) -> p -> (Either (Message (Path, b1) b2) (Message (Path, b1) b3) -> p) -> p Source #
concatMapF :: (a -> [b]) -> F a b Source #
The continuation monad
type Ms k s r = Mk (s -> k) r Source #
Continuation monad with state (just an instance of the continuation monad)
putHighsMs :: (Foldable t, StreamProcIO sp) => t o -> Msc (sp i o) r Source #
putHighMs :: StreamProcIO sp => o -> Msc (sp i o) r Source #
stateMonadK :: p -> Mk (p -> t1) t2 -> (t2 -> t1) -> t1 Source #
inputPairLF :: Orientation -> InF a1 b1 -> InF a2 b2 -> F (a1, a2) (InputMsg (b1, b2)) Source #
inputThroughF :: InF a a -> InF a a Source #
Containers
invisibleGroupF :: Sizing -> [FRequest] -> [WindowAttributes] -> F b ho -> F b ho Source #
simpleGroupF :: [WindowAttributes] -> F b ho -> F b ho Source #
sgroupF :: Sizing -> [FRequest] -> Maybe Rect -> K a b -> F c d -> F (Either a c) (Either b d) Source #
containerGroupF :: Rect -> Rect -> Int -> Button -> [Modifiers] -> F c b -> F (Either (Rect, Rect) c) (Either Rect b) Source #
data PotRequest Source #
popupShellF' :: Customiser ShellF -> String -> Maybe Point -> F a b -> F a (a, b) Source #
popupGroupF :: (Size -> Point, [WindowAttributes], K b1 d1) -> F b2 d2 -> F (PopupMsg b2) d2 Source #
rootPopupF :: (Size -> Point, [WindowAttributes], K b1 d1) -> F b2 d2 -> F (PopupMsg b2) d2 Source #
posPopupShellF :: [Char] -> [WindowAttributes] -> F c a -> F (c, Maybe Point) (c, a) Source #
Instances
HasSizing ShellF Source # | |
HasMargin ShellF Source # | |
HasWinAttr ShellF Source # | |
Defined in DShellF setWinAttr :: [WindowAttributes] -> Customiser ShellF Source # getWinAttr :: ShellF -> [WindowAttributes] Source # getWinAttrMaybe :: ShellF -> Maybe [WindowAttributes] Source # | |
HasVisible ShellF Source # | |
Defined in DShellF setVisible :: Bool -> Customiser ShellF Source # getVisible :: ShellF -> Bool Source # | |
HasClickToType ShellF Source # | |
Defined in DShellF setClickToType :: Bool -> Customiser ShellF Source # getClickToType :: ShellF -> Bool Source # |
getDeleteWindowActionMaybe' :: (ShellF -> ShellF) -> Maybe (Maybe DeleteWindowAction) Source #
data DeleteWindowAction Source #
Instances
Eq DeleteWindowAction Source # | |
Defined in DShellF (==) :: DeleteWindowAction -> DeleteWindowAction -> Bool # (/=) :: DeleteWindowAction -> DeleteWindowAction -> Bool # | |
Show DeleteWindowAction Source # | |
Defined in DShellF showsPrec :: Int -> DeleteWindowAction -> ShowS # show :: DeleteWindowAction -> String # showList :: [DeleteWindowAction] -> ShowS # |
setDeleteQuit :: Bool -> Customiser ShellF Source #
class HasClickToType xxx where Source #
setClickToType :: Bool -> Customiser xxx Source #
getClickToType :: xxx -> Bool Source #
getClickToTypeMaybe :: xxx -> Maybe Bool Source #
Instances
HasClickToType ShellF Source # | |
Defined in DShellF setClickToType :: Bool -> Customiser ShellF Source # getClickToType :: ShellF -> Bool Source # |
setInitPos :: Maybe Point -> Customiser ShellF Source #
setFocusMgr :: Bool -> Customiser ShellF Source #
class HasVisible xxx where Source #
setVisible :: Bool -> Customiser xxx Source #
getVisible :: xxx -> Bool Source #
getVisibleMaybe :: xxx -> Maybe Bool Source #
Instances
HasVisible ShellF Source # | |
Defined in DShellF setVisible :: Bool -> Customiser ShellF Source # getVisible :: ShellF -> Bool Source # |
unmappedShellF :: Foldable t => t FRequest -> K a b -> F c d -> F (Either a c) (Either b d) Source #
unmappedShellF' :: Foldable t => (ShellF -> ShellF) -> t FRequest -> K a b -> F c d -> F (Either a c) (Either b d) Source #
unmappedSimpleShellF' :: Customiser ShellF -> String -> F i o -> F i o Source #
mapWindowK :: K Bool ho Source #
simpleShellF :: [Char] -> [WindowAttributes] -> F c d -> F c d Source #
rootWindowF :: K b c -> F b c Source #
Debug
Drawing
Colors
tryAllocColor :: FudgetIO f => ColormapId -> RGB -> (Maybe Color -> f b ho) -> f b ho Source #
tryAllocColorF :: ColormapId -> RGB -> Cont (F b c) (Maybe Color) Source #
allocColor :: FudgetIO f => ColormapId -> RGB -> Cont (f b ho) Color Source #
allocColorF :: ColormapId -> RGB -> Cont (F b c) Color Source #
allocColorPixel :: FudgetIO f => ColormapId -> RGB -> Cont (f b ho) Pixel Source #
allocColorPixelF :: ColormapId -> RGB -> Cont (F b c) Pixel Source #
tryAllocNamedColor :: FudgetIO f => ColormapId -> ColorName -> (Maybe Color -> f b ho) -> f b ho Source #
tryAllocNamedColorF :: ColormapId -> ColorName -> Cont (F b c) (Maybe Color) Source #
allocNamedColor :: FudgetIO f => ColormapId -> ColorName -> Cont (f b ho) Color Source #
allocNamedColorF :: ColormapId -> ColorName -> Cont (F b c) Color Source #
allocNamedColorPixel :: FudgetIO f => ColormapId -> ColorName -> Cont (f b ho) Pixel Source #
allocNamedColorPixelF :: ColormapId -> ColorName -> Cont (F b c) Pixel Source #
allocNamedColorDef :: FudgetIO f => ColormapId -> ColorName -> [Char] -> Cont (f b ho) Color Source #
allocNamedColorDefPixel :: FudgetIO f => ColormapId -> ColorName -> [Char] -> (Pixel -> f b ho) -> f b ho Source #
queryColor :: FudgetIO f => ColormapId -> Pixel -> (Color -> f b ho) -> f b ho Source #
queryColorF :: ColormapId -> Pixel -> Cont (F b c) Color Source #
Cursors
undefineCusror :: K i o -> K i o Source #
Fonts
data CharStruct Source #
Instances
type FontStruct = FontStructF (Array Char CharStruct) Source #
type FontStructList = FontStructF [CharStruct] Source #
data FontStructF per_char Source #
FontStruct FontId FontDirection Char Bool Char [FontProp] CharStruct (Maybe per_char) Int |
Instances
data FontDirection Source #
Instances
update_font_id :: FontStructF per_char -> FontId -> FontStructF per_char Source #
font_range :: FontStructF per_char -> (Char, Char) Source #
split_string :: FontStruct -> String -> Int -> (String, String, Int) Source #
string_len :: FontStruct -> String -> Int Source #
string_rect :: FontStruct -> String -> Rect Source #
string_box_size :: FontStruct -> String -> Size Source #
string_bounds :: FontStruct -> String -> Rect Source #
linespace :: FontStructF per_char -> Int Source #
fsl2fs :: FontStructF [e] -> FontStructF (Array Char e) Source #
loadQueryFont :: FudgetIO f => [Char] -> (Maybe (FontStructF (Array Char CharStruct)) -> f b ho) -> f b ho Source #
queryFont :: FudgetIO f => FontId -> (FontStructF (Array Char CharStruct) -> f b ho) -> f b ho Source #
loadQueryFontF :: [Char] -> Cont (F b c) (Maybe (FontStructF (Array Char CharStruct))) Source #
queryFontF :: FontId -> Cont (F b c) (FontStructF (Array Char CharStruct)) Source #
safeLoadQueryFont :: FudgetIO f => FontName -> (FontStructF (Array Char CharStruct) -> f b ho) -> f b ho Source #
safeLoadQueryFontF :: FontName -> (FontStructF (Array Char CharStruct) -> F b c) -> F b c Source #
listFontsWithInfo :: FudgetIO f => [Char] -> Int -> ([(FontName, FontStructF (Array Char CharStruct))] -> f b ho) -> f b ho Source #
Graphics Contexts
pmCreateGC :: FudgetIO f => PixmapId -> GCId -> [GCAttributes Pixel FontId] -> (GCId -> f b ho) -> f b ho Source #
wCreateGC :: FudgetIO f => GCId -> [GCAttributes Pixel FontId] -> (GCId -> f b ho) -> f b ho Source #
createGC :: FudgetIO f => Drawable -> GCId -> [GCAttributes Pixel FontId] -> (GCId -> f b ho) -> f b ho Source #
wCreateGCF :: GCId -> GCAttributeList -> (GCId -> F a b) -> F a b Source #
pmCreateGCF :: PixmapId -> GCId -> GCAttributeList -> (GCId -> F a b) -> F a b Source #
convGCattrsK :: FudgetIO f => [GCAttributes ColorName [Char]] -> ([GCAttributes Pixel FontId] -> f b ho) -> f b ho Source #
class FontGen a where Source #
tryConvFontK :: FudgetIO f => a -> Cont (f i o) (Maybe FontData) Source #
convFontListK :: FudgetIO f => [a] -> Cont (f i o) (Maybe FontData) Source #
Instances
class ColorGen a where Source #
tryConvColorK :: FudgetIO f => a -> Cont (f i o) (Maybe Pixel) Source #
convColorListK :: FudgetIO f => [a] -> Cont (f i o) (Maybe Pixel) Source #
fontdata2struct :: FontData -> (FontStruct -> p) -> p Source #
convGCSpecK :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => FontData -> [GCAttributes a1 a2] -> ([GCAttributes Pixel FontId] -> FontData -> f i o) -> f i o Source #
gcBgA :: c -> [GCAttributes c FontSpec] Source #
gcFgA :: c -> [GCAttributes c FontSpec] Source #
gcFontA :: f -> [GCAttributes ColorSpec f] Source #
usefontstructs :: [Char] Source #
createGCtx :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => Drawable -> GCtx -> [GCAttributes a1 a2] -> (GCtx -> f i o) -> f i o Source #
wCreateGCtx :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => GCtx -> [GCAttributes a1 a2] -> (GCtx -> f i o) -> f i o Source #
pmCreateGCtx :: (ColorGen a1, FudgetIO f, FontGen a2, Show a1, Show a2) => PixmapId -> GCtx -> [GCAttributes a1 a2] -> (GCtx -> f i o) -> f i o Source #
class Graphic
class Graphic a where Source #
measureGraphicK :: FudgetIO k => a -> GCtx -> Cont (k i o) MeasuredGraphics Source #
measureGraphicListK :: FudgetIO k => [a] -> GCtx -> Cont (k i o) MeasuredGraphics Source #
Instances
measureText :: (FudgetIO f, Show a) => a -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho Source #
data MeasuredGraphics Source #
Instances
Graphic MeasuredGraphics Source # | |
Defined in Graphic measureGraphicK :: FudgetIO k => MeasuredGraphics -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [MeasuredGraphics] -> GCtx -> Cont (k i o) MeasuredGraphics Source # | |
PixmapGen MeasuredGraphics Source # | |
Defined in Graphic2Pixmap convToPixmapK :: FudgetIO c => MeasuredGraphics -> Cont (c i o) PixmapImage Source # |
emptyMG :: Size -> MeasuredGraphics Source #
Atomic Drawings
data FixedDrawing Source #
Instances
Show FixedDrawing Source # | |
Defined in FixedDrawing showsPrec :: Int -> FixedDrawing -> ShowS # show :: FixedDrawing -> String # showList :: [FixedDrawing] -> ShowS # | |
Graphic FixedDrawing Source # | |
Defined in FixedDrawing measureGraphicK :: FudgetIO k => FixedDrawing -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [FixedDrawing] -> GCtx -> Cont (k i o) MeasuredGraphics Source # |
data FixedColorDrawing Source #
FixCD Size [(GCId, [DrawCommand])] |
Instances
Show FixedColorDrawing Source # | |
Defined in FixedDrawing showsPrec :: Int -> FixedColorDrawing -> ShowS # show :: FixedColorDrawing -> String # showList :: [FixedColorDrawing] -> ShowS # | |
Graphic FixedColorDrawing Source # | |
Defined in FixedDrawing measureGraphicK :: FudgetIO k => FixedColorDrawing -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [FixedColorDrawing] -> GCtx -> Cont (k i o) MeasuredGraphics Source # | |
PixmapGen FixedColorDrawing Source # | |
Defined in Graphic2Pixmap convToPixmapK :: FudgetIO c => FixedColorDrawing -> Cont (c i o) PixmapImage Source # |
newtype ImageString Source #
Instances
Graphic ImageString Source # | |
Defined in FixedDrawing measureGraphicK :: FudgetIO k => ImageString -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [ImageString] -> GCtx -> Cont (k i o) MeasuredGraphics Source # |
data FlexibleDrawing Source #
Instances
Show FlexibleDrawing Source # | |
Defined in FlexibleDrawing showsPrec :: Int -> FlexibleDrawing -> ShowS # show :: FlexibleDrawing -> String # showList :: [FlexibleDrawing] -> ShowS # | |
Graphic FlexibleDrawing Source # | |
Defined in FlexibleDrawing measureGraphicK :: FudgetIO k => FlexibleDrawing -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [FlexibleDrawing] -> GCtx -> Cont (k i o) MeasuredGraphics Source # |
hFiller :: Int -> FlexibleDrawing Source #
vFiller :: Int -> FlexibleDrawing Source #
flex' :: Size -> (Rect -> [DrawCommand]) -> FlexibleDrawing Source #
flex :: (Rect -> [DrawCommand]) -> FlexibleDrawing Source #
blank' :: Size -> FlexibleDrawing Source #
frame' :: Size -> FlexibleDrawing Source #
ellipse' :: Size -> FlexibleDrawing Source #
filledEllipse' :: Size -> FlexibleDrawing Source #
filledarc' :: Size -> Int -> Int -> FlexibleDrawing Source #
doubleleft :: Rect -> Rect Source #
doubleright :: Rect -> Rect Source #
bFlex2 :: (Rect -> [DrawCommand]) -> FlexibleDrawing Source #
bFlex :: (Rect -> [DrawCommand]) -> FlexibleDrawing Source #
bFlex' :: Size -> (Rect -> [DrawCommand]) -> FlexibleDrawing Source #
drawpoly :: [Point] -> [DrawCommand] Source #
fillpoly :: [Point] -> [DrawCommand] Source #
trianglePoints' :: Rect -> [Point] Source #
trianglePoints :: Rect -> [Point] Source #
padFD :: Int -> FlexibleDrawing -> FlexibleDrawing Source #
data BitmapFile Source #
Instances
Graphic BitmapFile Source # | |
Defined in BitmapDrawing measureGraphicK :: FudgetIO k => BitmapFile -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [BitmapFile] -> GCtx -> Cont (k i o) MeasuredGraphics Source # |
bitmapFromData :: FudgetIO f => BitmapData -> (BitmapReturn -> f b ho) -> f b ho Source #
readBitmapFile :: FudgetIO f => [Char] -> (BitmapReturn -> f b ho) -> f b ho Source #
data PixmapImage Source #
Instances
Graphic PixmapImage Source # | |
Defined in PixmapGen measureGraphicK :: FudgetIO k => PixmapImage -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [PixmapImage] -> GCtx -> Cont (k i o) MeasuredGraphics Source # | |
PixmapGen PixmapImage Source # | |
Defined in PixmapGen convToPixmapK :: FudgetIO c => PixmapImage -> Cont (c i o) PixmapImage Source # |
class PixmapGen a where Source #
convToPixmapK :: FudgetIO c => a -> Cont (c i o) PixmapImage Source #
Instances
PixmapGen MeasuredGraphics Source # | |
Defined in Graphic2Pixmap convToPixmapK :: FudgetIO c => MeasuredGraphics -> Cont (c i o) PixmapImage Source # | |
PixmapGen PixmapImage Source # | |
Defined in PixmapGen convToPixmapK :: FudgetIO c => PixmapImage -> Cont (c i o) PixmapImage Source # | |
PixmapGen FixedColorDrawing Source # | |
Defined in Graphic2Pixmap convToPixmapK :: FudgetIO c => FixedColorDrawing -> Cont (c i o) PixmapImage Source # |
measureImageK :: (PixmapGen a, FudgetIO c) => a -> GCtx -> (MeasuredGraphics -> c i o) -> c i o Source #
Composed drawings
data Drawing lbl leaf Source #
AtomicD leaf | |
LabelD lbl (Drawing lbl leaf) | |
AttribD GCSpec (Drawing lbl leaf) | |
SpacedD Spacer (Drawing lbl leaf) | |
PlacedD Placer (Drawing lbl leaf) | |
ComposedD Int [Drawing lbl leaf] | Int=how many visible components |
CreateHardAttribD GCtx [GCAttributes ColorSpec FontSpec] (GCtx -> Drawing lbl leaf) |
Instances
Functor (Drawing lbl) Source # | |
(Show leaf, Show lbl) => Show (Drawing lbl leaf) Source # | |
Graphic leaf => Graphic (Drawing annot leaf) Source # | |
Defined in Drawing measureGraphicK :: FudgetIO k => Drawing annot leaf -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [Drawing annot leaf] -> GCtx -> Cont (k i o) MeasuredGraphics Source # |
northwestD :: Drawing lbl leaf -> Drawing lbl leaf Source #
softAttribD :: [GCAttributes ColorSpec FontSpec] -> Drawing lbl leaf -> Drawing lbl leaf Source #
Instances
Show Gfx Source # | |
Graphic Gfx Source # | |
Defined in DrawingUtils measureGraphicK :: FudgetIO k => Gfx -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [Gfx] -> GCtx -> Cont (k i o) MeasuredGraphics Source # |
updatePart :: Drawing lbl leaf -> DPath -> (Drawing lbl leaf -> Drawing lbl leaf) -> Drawing lbl leaf Source #
mapLabelDrawing :: (t -> lbl) -> Drawing t leaf -> Drawing lbl leaf Source #
mapLeafDrawing :: (t -> leaf) -> Drawing lbl t -> Drawing lbl leaf Source #
drawingAnnots :: Drawing a leaf -> [(DPath, a)] Source #
graphic2PixmapImage :: (Graphic a, FudgetIO k) => a -> GCtx -> (PixmapImage -> k i o) -> k i o Source #
data PixmapImage Source #
Instances
Graphic PixmapImage Source # | |
Defined in PixmapGen measureGraphicK :: FudgetIO k => PixmapImage -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [PixmapImage] -> GCtx -> Cont (k i o) MeasuredGraphics Source # | |
PixmapGen PixmapImage Source # | |
Defined in PixmapGen convToPixmapK :: FudgetIO c => PixmapImage -> Cont (c i o) PixmapImage Source # |
Misc
data MeasuredGraphics Source #
LeafM LayoutRequest (Rect -> [(GCId, [DrawCommand])]) | |
SpacedM Spacer MeasuredGraphics | |
PlacedM Placer MeasuredGraphics | |
MarkM GCtx MeasuredGraphics | |
ComposedM [MeasuredGraphics] |
Instances
Graphic MeasuredGraphics Source # | |
Defined in Graphic measureGraphicK :: FudgetIO k => MeasuredGraphics -> GCtx -> Cont (k i o) MeasuredGraphics Source # measureGraphicListK :: FudgetIO k => [MeasuredGraphics] -> GCtx -> Cont (k i o) MeasuredGraphics Source # | |
PixmapGen MeasuredGraphics Source # | |
Defined in Graphic2Pixmap convToPixmapK :: FudgetIO c => MeasuredGraphics -> Cont (c i o) PixmapImage Source # |
compileMG :: (Size -> Size) -> MeasuredGraphics -> (CompiledGraphics, LayoutRequest) Source #
emptyMG :: Size -> MeasuredGraphics Source #
measureString :: FudgetIO f => [Char] -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho Source #
measureImageString :: FudgetIO f => [Char] -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho Source #
measurePackedString :: FudgetIO f => PackedString -> GCtx -> (MeasuredGraphics -> f b ho) -> f b ho Source #
data CompiledGraphics Source #
Instances
Show CompiledGraphics Source # | |
Defined in CompiledGraphics showsPrec :: Int -> CompiledGraphics -> ShowS # show :: CompiledGraphics -> String # showList :: [CompiledGraphics] -> ShowS # |
cgLeaf :: Rect -> (Rect -> [(GCId, [DrawCommand])]) -> CompiledGraphics Source #
cgCompose :: Rect -> [CompiledGraphics] -> CompiledGraphics Source #
cgrect :: CompiledGraphics -> Rect Source #
cgsize :: CompiledGraphics -> Size Source #
hascursor :: CompiledGraphics -> Cursor Source #
cgpart :: CompiledGraphics -> [Int] -> CompiledGraphics Source #
cgreplace :: CompiledGraphics -> [Int] -> CompiledGraphics -> CompiledGraphics Source #
cgupdate :: CompiledGraphics -> [Int] -> (CompiledGraphics -> CompiledGraphics) -> CompiledGraphics Source #
cgcursors :: CompiledGraphics -> [[Int]] Source #
cgGroup :: Int -> Int -> CompiledGraphics -> CompiledGraphics Source #
cgUngroup :: Int -> CompiledGraphics -> CompiledGraphics Source #
Filters
shapeGroupMgr :: F a b -> F a b Source #
GUI elements
Buttons
Instances
HasAlign (ButtonF a) Source # | |
HasMargin (ButtonF a) Source # | |
HasFgColorSpec (ButtonF a) Source # | |
Defined in DButtonF setFgColorSpec :: ColorSpec -> Customiser (ButtonF a) Source # getFgColorSpec :: ButtonF a -> ColorSpec Source # getFgColorSpecMaybe :: ButtonF a -> Maybe ColorSpec Source # | |
HasBgColorSpec (ButtonF a) Source # | |
Defined in DButtonF setBgColorSpec :: ColorSpec -> Customiser (ButtonF a) Source # getBgColorSpec :: ButtonF a -> ColorSpec Source # getBgColorSpecMaybe :: ButtonF a -> Maybe ColorSpec Source # | |
HasKeys (ButtonF a) Source # | |
HasFontSpec (ButtonF a) Source # | |
Defined in DButtonF setFontSpec :: FontSpec -> Customiser (ButtonF a) Source # getFontSpec :: ButtonF a -> FontSpec Source # |
buttonF'' :: Graphic lbl => Customiser (ButtonF lbl) -> lbl -> PF (ButtonF lbl) Click Click Source #
setLabel :: lbl -> Customiser (ButtonF lbl) Source #
data RadioGroupF Source #
Instances
HasFontSpec RadioGroupF Source # | |
Defined in DRadioF | |
HasLabelInside RadioGroupF Source # | |
Defined in DRadioF setLabelInside :: Bool -> Customiser RadioGroupF Source # getLabelInside :: RadioGroupF -> Bool Source # |
radioGroupF' :: (Graphic lbl, Eq alt) => Customiser RadioGroupF -> [(alt, lbl)] -> alt -> F alt alt Source #
setPlacer :: Placer -> Customiser RadioGroupF Source #
class HasLabelInside xxx where Source #
setLabelInside :: Bool -> Customiser xxx Source #
getLabelInside :: xxx -> Bool Source #
getLabelInsideMaybe :: xxx -> Maybe Bool Source #
Instances
HasLabelInside ToggleButtonF Source # | |
Defined in DToggleButtonF | |
HasLabelInside RadioGroupF Source # | |
Defined in DRadioF setLabelInside :: Bool -> Customiser RadioGroupF Source # getLabelInside :: RadioGroupF -> Bool Source # |
data ToggleButtonF Source #
Instances
HasKeys ToggleButtonF Source # | |
Defined in DToggleButtonF setKeys :: [(ModState, KeySym)] -> Customiser ToggleButtonF Source # getKeys :: ToggleButtonF -> [(ModState, KeySym)] Source # getKeysMaybe :: ToggleButtonF -> Maybe [(ModState, KeySym)] Source # | |
HasFontSpec ToggleButtonF Source # | |
Defined in DToggleButtonF | |
HasLabelInside ToggleButtonF Source # | |
Defined in DToggleButtonF |
toggleButtonF' :: Graphic lbl => Customiser ToggleButtonF -> lbl -> F Bool Bool Source #
oldButtonF :: (Graphic e, FontGen a1, Show a1, Show a2, ColorGen a2) => Double -> Int -> a1 -> ColorSpec -> a2 -> [(ModState, KeySym)] -> e -> F e Click Source #
quitButtonF :: F Click b Source #
radioF :: (Eq a, Graphic a1, Show a2, FontGen a2) => Placer -> Bool -> a2 -> [(a, a1)] -> a -> F a a Source #
oldRadioGroupF :: (Eq d, Graphic a1, Show a2, FontGen a2) => Placer -> Bool -> a2 -> [d] -> d -> (d -> a1) -> F d d Source #
oldToggleButtonF :: (Graphic a1, Show a2, FontGen a2) => a2 -> [(ModState, KeySym)] -> a1 -> F Bool Bool Source #
oldToggleButtonF' :: (Graphic a1, Show a2, FontGen a2) => Bool -> a2 -> [(ModState, KeySym)] -> a1 -> F Bool Bool Source #
toggleGroupF :: [(ModState, KeySym)] -> F (Either (Either Bool Bool) a) b -> F (Either Bool a) (Either Bool b) Source #
Graphics
Instances
setCursorSolid :: Bool -> Customiser (GraphicsF gfx) Source #
setGfxEventMask :: [GfxEventMask] -> Customiser (GraphicsF gfx) Source #
setAdjustSize :: Bool -> Customiser (GraphicsF gfx) Source #
setDoubleBuffer :: Bool -> Customiser (GraphicsF gfx) Source #
graphicsF' :: Graphic gfx => Customiser (GraphicsF gfx) -> F (GfxFCmd gfx) GfxFEvent Source #
graphicsGroupF' :: Graphic gfx => Customiser (GraphicsF gfx) -> F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o) Source #
graphicsDispGroupF :: Graphic gfx => F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o) Source #
graphicsDispGroupF' :: Graphic gfx => (GraphicsF gfx -> GraphicsF gfx) -> F i o -> F (Either (GfxFCmd gfx) i) (Either GfxFEvent o) Source #
graphicsLabelF :: Graphic a => a -> F e d Source #
graphicsDispF' :: Graphic gfx => Customiser (GraphicsF gfx) -> F (GfxFCmd gfx) GfxFEvent Source #
GfxReplace (Bool, Maybe gfx) | |
GfxGroup Int Int | |
GfxUngroup Int |
data GfxCommand path gfx Source #
ChangeGfx [(path, GfxChange gfx)] | |
ChangeGfxBg ColorSpec | |
ChangeGfxBgPixmap PixmapId Bool | |
forall bg.Graphic bg => ChangeGfxBgGfx bg | |
ChangeGfxCursor CursorId | |
ChangeGfxFontCursor Int | |
ShowGfx path (Maybe Alignment, Maybe Alignment) | |
BellGfx Int | |
GetGfxPlaces [path] |
Instances
Functor (GfxCommand path) Source # | |
Defined in GraphicsF fmap :: (a -> b) -> GfxCommand path a -> GfxCommand path b # (<$) :: a -> GfxCommand path b -> GfxCommand path a # |
GfxButtonEvent | |
GfxMotionEvent | |
GfxKeyEvent | |
GfxFocusEvent | |
| |
GfxPlaces [Rect] | |
GfxResized Size |
type GfxFCmd a = GfxCommand DPath a Source #
replaceGfx :: path -> gfx -> GfxCommand path gfx Source #
replaceAllGfx :: gfx -> GfxCommand [a] gfx Source #
showGfx :: path -> GfxCommand path gfx Source #
highlightGfx :: path -> Bool -> GfxCommand path gfx Source #
hyperGraphicsF :: (Eq d, Graphic leaf) => Drawing d leaf -> F (Either (Drawing d leaf) (d, Drawing d leaf)) d Source #
hyperGraphicsF' :: (Eq d, Graphic leaf) => (GraphicsF (Drawing d leaf) -> GraphicsF (Drawing d leaf)) -> Drawing d leaf -> F (Either (Drawing d leaf) (d, Drawing d leaf)) d Source #
Menus
oldMenuF :: (Graphic c, Eq b, Graphic a) => FontName -> a -> [(b, [(ModState, KeySym)])] -> (b -> c) -> F a b Source #
buttonMenuF :: Graphic lbl => LayoutDir -> FontName -> lbl -> [(a, [(ModState, KeySym)])] -> F (Either MenuState b) a -> F (Either MenuState (Either lbl b)) (Either MenuState a) Source #
buttonMenuF' :: Graphic lbl => Bool -> LayoutDir -> FontName -> lbl -> [(a, [(ModState, KeySym)])] -> F (Either MenuState b) a -> F (Either MenuState (Either lbl b)) (Either MenuState a) Source #
grabberF :: [(a1, [(ModState, KeySym)])] -> F (Either a2 a1) (Either MenuState d) -> F a1 d Source #
EqSnd a b |
Popups
inputPopupOptF :: String -> InF a b -> Maybe b -> F (Maybe String, Maybe a) ((Maybe String, Maybe a), Maybe b) Source #
inputPopupF :: String -> InF a c -> Maybe c -> F (Maybe String, Maybe a) ((Maybe String, Maybe a), c) Source #
passwdPopupOptF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), Maybe String) Source #
passwdPopupF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), String) Source #
stringPopupOptF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), Maybe String) Source #
stringPopupF :: String -> F (Maybe String, Maybe String) ((Maybe String, Maybe String), String) Source #
confirmPopupF :: Graphic msg => F msg (msg, ConfirmMsg) Source #
data ConfirmMsg Source #
Output from dialog popups with OK and Cancel buttons
Instances
Eq ConfirmMsg Source # | |
Defined in InputMsg (==) :: ConfirmMsg -> ConfirmMsg -> Bool # (/=) :: ConfirmMsg -> ConfirmMsg -> Bool # | |
Ord ConfirmMsg Source # | |
Defined in InputMsg compare :: ConfirmMsg -> ConfirmMsg -> Ordering # (<) :: ConfirmMsg -> ConfirmMsg -> Bool # (<=) :: ConfirmMsg -> ConfirmMsg -> Bool # (>) :: ConfirmMsg -> ConfirmMsg -> Bool # (>=) :: ConfirmMsg -> ConfirmMsg -> Bool # max :: ConfirmMsg -> ConfirmMsg -> ConfirmMsg # min :: ConfirmMsg -> ConfirmMsg -> ConfirmMsg # | |
Show ConfirmMsg Source # | |
Defined in InputMsg showsPrec :: Int -> ConfirmMsg -> ShowS # show :: ConfirmMsg -> String # showList :: [ConfirmMsg] -> ShowS # |
oldConfirmPopupF :: F String (String, ConfirmMsg) Source #
popupMenuF :: (Eq b1, Graphic b1) => [(a, b1)] -> F c b2 -> F (Either [(a, b1)] c) (Either a b2) Source #
oldPopupMenuF :: (Eq b1, Graphic b2, Foldable t) => ColorName -> Bool -> [Char] -> Button -> [Modifiers] -> t (ModState, KeySym) -> [(b1, b3)] -> (b1 -> b2) -> F c d -> F (Either [(b1, b4)] c) (Either b1 d) Source #
oldPopupMenuF' :: forall t b1 b2 b3 c d a b4 b5. (Eq b1, Graphic b2, Foldable t) => ColorName -> Bool -> [Char] -> Button -> [Modifiers] -> t (ModState, KeySym) -> [(b1, b3)] -> (b1 -> b2) -> F c d -> F (Either (Either a b4) (Either (Either [(b1, b5)] PopupMenu) c)) (Either (Either (Either a PopupMenu) b4) (Either b1 d)) Source #
smallPickListF :: (d -> String) -> F [d] d Source #
Text elements
Instances
stringInputF' :: Customiser StringF -> F String String Source #
intInputF' :: Customiser StringF -> F Int Int Source #
pickListF' :: Customiser TextF -> (a -> String) -> F (PickListRequest a) (InputMsg (Int, a)) Source #
type PickListRequest a = ListRequest a Source #
Instances
HasSizing StringF Source # | |
HasFgColorSpec StringF Source # | |
Defined in StringF | |
HasBgColorSpec StringF Source # | |
Defined in StringF | |
HasBorderWidth StringF Source # | |
Defined in StringF setBorderWidth :: Int -> Customiser StringF Source # getBorderWidth :: StringF -> Int Source # | |
HasFontSpec StringF Source # | |
Defined in StringF setFontSpec :: FontSpec -> Customiser StringF Source # getFontSpec :: StringF -> FontSpec Source # |
setAllowedChar :: (Char -> Bool) -> Customiser StringF Source #
setShowString :: (String -> String) -> Customiser StringF Source #
getCursorPos :: StringF -> Int Source #
setCursorPos :: Int -> Customiser StringF Source #
getInitString :: StringF -> String Source #
setInitString :: String -> Customiser StringF Source #
generalStringF :: Int -> [Char] -> Sizing -> ColorSpec -> ColorSpec -> FontSpec -> (Char -> Bool) -> (String -> String) -> Int -> [Char] -> F (Either (StringF -> StringF) [Char]) (InputMsg [Char]) Source #
oldGeneralStringF :: Int -> Sizing -> FontSpec -> (Char -> Bool) -> (String -> String) -> [Char] -> F [Char] (InputMsg [Char]) Source #
textF' :: Customiser TextF -> F TextRequest (InputMsg (Int, String)) Source #
Instances
HasSizing TextF Source # | |
HasInitText TextF Source # | |
Defined in TextF setInitText :: [String] -> Customiser TextF Source # getInitText :: TextF -> [String] Source # | |
HasStretchable TextF Source # | |
HasAlign TextF Source # | |
HasMargin TextF Source # | |
HasFgColorSpec TextF Source # | |
Defined in TextF setFgColorSpec :: ColorSpec -> Customiser TextF Source # getFgColorSpec :: TextF -> ColorSpec Source # | |
HasBgColorSpec TextF Source # | |
Defined in TextF setBgColorSpec :: ColorSpec -> Customiser TextF Source # getBgColorSpec :: TextF -> ColorSpec Source # | |
HasBorderWidth TextF Source # | |
Defined in TextF setBorderWidth :: Int -> Customiser TextF Source # getBorderWidth :: TextF -> Int Source # | |
HasFontSpec TextF Source # | |
Defined in TextF setFontSpec :: FontSpec -> Customiser TextF Source # getFontSpec :: TextF -> FontSpec Source # |
type TextRequest = ListRequest String Source #
cmdTerminalF :: FontName -> Int -> Int -> F TerminalCmd a Source #
Special indicators
gcWarningF :: F a b Source #
Editors
loadEditor :: String -> [EditCmd] Source #
data EDirection Source #
Instances
Eq EDirection Source # | |
Defined in Edtypes (==) :: EDirection -> EDirection -> Bool # (/=) :: EDirection -> EDirection -> Bool # | |
Ord EDirection Source # | |
Defined in Edtypes compare :: EDirection -> EDirection -> Ordering # (<) :: EDirection -> EDirection -> Bool # (<=) :: EDirection -> EDirection -> Bool # (>) :: EDirection -> EDirection -> Bool # (>=) :: EDirection -> EDirection -> Bool # max :: EDirection -> EDirection -> EDirection # min :: EDirection -> EDirection -> EDirection # |
type EditStopFn = String -> String -> EditStopChoice Source #
Instances
HasFontSpec EditorF Source # | |
Defined in InputEditorF setFontSpec :: FontSpec -> Customiser EditorF Source # getFontSpec :: EditorF -> FontSpec Source # |
InfixOps
Kernel utilities
getWindowPropertyK :: Int -> Atom -> Bool -> Atom -> Cont (K b c) (Atom, Int, Int, Int, String) Source #
darkGreyBgK :: K b ho -> K b ho Source #
lightGreyBgK :: K b ho -> K b ho Source #
changeBackPixmap :: (ColorGen a1, ColorGen a2, Show a1, Show a2) => a1 -> a2 -> Point -> [DrawCommand] -> K i o -> K i o Source #
wmK :: Maybe (K (Either String Bool) c -> K (Either String Bool) c) -> K (Either String Bool) c Source #
unmapWindowK :: K i o -> K i o Source #
dynShapeK :: [GCAttributes ColorName [Char]] -> (Size -> [DrawCommand]) -> K c d -> K (Either (Size -> [DrawCommand]) c) (Either b d) Source #
type Drawer = DrawCommand -> FRequest Source #
simpleWindowF :: (Drawer -> Drawer -> Fms' a1 a2 b) -> Size -> Bool -> Bool -> a1 -> F a2 b Source #
defaultVisual :: FudgetIO f => (Visual -> f b ho) -> f b ho Source #
Layout
autoLayoutF :: F a b -> F a b Source #
data Orientation Source #
Instances
Eq Orientation Source # | |
Defined in LayoutDir (==) :: Orientation -> Orientation -> Bool # (/=) :: Orientation -> Orientation -> Bool # | |
Ord Orientation Source # | |
Defined in LayoutDir compare :: Orientation -> Orientation -> Ordering # (<) :: Orientation -> Orientation -> Bool # (<=) :: Orientation -> Orientation -> Bool # (>) :: Orientation -> Orientation -> Bool # (>=) :: Orientation -> Orientation -> Bool # max :: Orientation -> Orientation -> Orientation # min :: Orientation -> Orientation -> Orientation # | |
Show Orientation Source # | |
Defined in LayoutDir showsPrec :: Int -> Orientation -> ShowS # show :: Orientation -> String # showList :: [Orientation] -> ShowS # |
orthogonal :: LayoutDir -> p -> p -> p Source #
data LayoutDirection Source #
Instances
Eq LayoutDirection Source # | |
Defined in LayoutF (==) :: LayoutDirection -> LayoutDirection -> Bool # (/=) :: LayoutDirection -> LayoutDirection -> Bool # | |
Ord LayoutDirection Source # | |
Defined in LayoutF compare :: LayoutDirection -> LayoutDirection -> Ordering # (<) :: LayoutDirection -> LayoutDirection -> Bool # (<=) :: LayoutDirection -> LayoutDirection -> Bool # (>) :: LayoutDirection -> LayoutDirection -> Bool # (>=) :: LayoutDirection -> LayoutDirection -> Bool # max :: LayoutDirection -> LayoutDirection -> LayoutDirection # min :: LayoutDirection -> LayoutDirection -> LayoutDirection # | |
Show LayoutDirection Source # | |
Defined in LayoutF showsPrec :: Int -> LayoutDirection -> ShowS # show :: LayoutDirection -> String # showList :: [LayoutDirection] -> ShowS # |
orientP :: Orientation -> Placer Source #
data LayoutRequest Source #
Instances
Show LayoutRequest Source # | |
Defined in LayoutRequest showsPrec :: Int -> LayoutRequest -> ShowS # show :: LayoutRequest -> String # showList :: [LayoutRequest] -> ShowS # |
plainLayout :: Size -> Bool -> Bool -> LayoutRequest Source #
refpLayout :: Size -> Bool -> Bool -> [Point] -> LayoutRequest Source #
data LayoutMessage Source #
Instances
Show LayoutMessage Source # | |
Defined in LayoutRequest showsPrec :: Int -> LayoutMessage -> ShowS # show :: LayoutMessage -> String # showList :: [LayoutMessage] -> ShowS # |
data LayoutResponse Source #
Instances
Show LayoutResponse Source # | |
Defined in LayoutRequest showsPrec :: Int -> LayoutResponse -> ShowS # show :: LayoutResponse -> String # showList :: [LayoutResponse] -> ShowS # |
type Placer1 = [LayoutRequest] -> Placer2 Source #
type Spacer1 = LayoutRequest -> Spacer2 Source #
type LayoutHint = String Source #
mapLayoutSize :: (Size -> Size) -> LayoutRequest -> LayoutRequest Source #
mapAdjLayoutSize :: (Size -> Size) -> (Int -> Int) -> (Int -> Int) -> LayoutRequest -> LayoutRequest Source #
mapLayoutRefs :: (Point -> Point) -> LayoutRequest -> LayoutRequest Source #
flipReq :: LayoutRequest -> LayoutRequest Source #
horizontalP :: Placer Source #
horizontalP' :: Distance -> Placer Source #
verticalP' :: Distance -> Placer Source #
tryLayoutK :: LayoutRequest -> Cont (K b c) Size Source #
placeNL :: Placer -> [NameLayout] -> NameLayout Source #
spaceNL :: Spacer -> NameLayout -> NameLayout Source #
modNL :: (Placer -> Placer) -> NameLayout -> NameLayout Source #
marginNL :: Distance -> NameLayout -> NameLayout Source #
sepNL :: Size -> NameLayout -> NameLayout Source #
hvAlignNL :: Alignment -> Alignment -> NameLayout -> NameLayout Source #
marginHVAlignNL :: Distance -> Alignment -> Alignment -> NameLayout -> NameLayout Source #
nullNL :: NameLayout Source #
hBoxNL :: [NameLayout] -> NameLayout Source #
hBoxNL' :: Distance -> [NameLayout] -> NameLayout Source #
vBoxNL :: [NameLayout] -> NameLayout Source #
vBoxNL' :: Distance -> [NameLayout] -> NameLayout Source #
leafNL :: LName -> NameLayout Source #
data NameLayout Source #
nameLayoutF :: NameLayout -> F a b -> F a b Source #
layoutModifierF :: (LayoutRequest -> LayoutRequest) -> F a b -> F a b Source #
mapLayout :: (Size -> Bool -> Bool -> (Int -> Size) -> (Int -> Size) -> [Point] -> Maybe (Point, Size, Alignment) -> t) -> LayoutRequest -> t Source #
layoutModifierS :: (LayoutRequest -> LayoutRequest) -> Spacer Source #
verticalLeftP' :: Distance -> Placer Source #
horizontalCenterP' :: Distance -> Placer Source #
horizontalAlignP' :: Distance -> Placer Source #
refMiddleS :: Spacer Source #
refMiddleS' :: LayoutRequest -> (LayoutRequest, a -> a) Source #
paragraphP :: Placer Source #
paragraphP' :: Size -> Placer Source #
atLeastOne :: ([a], [a]) -> ([a], [a]) Source #
Low level
contMap :: StreamProcIO sp => (i -> (o -> sp i o) -> sp i o) -> sp i o Source #
openDisplay :: DisplayName -> Cont (F b c) Display Source #
border_width :: Int Source #
windowKF :: (Rect -> FRequest) -> Bool -> Bool -> [FRequest] -> Maybe Rect -> K a b -> F c d -> F (Either a c) (Either b d) Source #
xrequest :: FudgetIO f => XRequest -> (XResponse -> Maybe ans) -> (ans -> f b ho) -> f b ho Source #
select :: FudgetIO f => [Descriptor] -> f hi ho -> f hi ho Source #
sIOsucc :: FudgetIO f => SocketRequest -> f b ho -> f b ho Source #
sIOerr :: FudgetIO f => SocketRequest -> (IOError -> f b ho) -> (SocketResponse -> f b ho) -> f b ho Source #
sIO :: FudgetIO f => SocketRequest -> (SocketResponse -> f b ho) -> f b ho Source #
cmdContMsg :: FudgetIO f => KCommand ho -> (KEvent hi -> Maybe ans) -> (ans -> f hi ho) -> f hi ho Source #
cmdContLow :: FudgetIO f => FRequest -> (FResponse -> Maybe ans) -> (ans -> f b ho) -> f b ho Source #
Types
moveDrawCommands :: [DrawCommand] -> Point -> [DrawCommand] Source #
moveDrawCommand :: DrawCommand -> Point -> DrawCommand Source #
Instances
Instances
Instances
Functor (Message a) Source # | |
(Eq a, Eq b) => Eq (Message a b) Source # | |
(Ord a, Ord b) => Ord (Message a b) Source # | |
(Show a, Show b) => Show (Message a b) Source # | |
Instances
Functor (Message a) Source # | |
(Eq a, Eq b) => Eq (Message a b) Source # | |
(Ord a, Ord b) => Ord (Message a b) Source # | |
(Show a, Show b) => Show (Message a b) Source # | |
mapMessage :: (t1 -> a) -> (t2 -> b) -> Message t1 t2 -> Message a b Source #
Instances
Eq a => Eq (PopupMsg a) Source # | |
Ord a => Ord (PopupMsg a) Source # | |
data ConfirmMsg Source #
Output from dialog popups with OK and Cancel buttons
Instances
Eq ConfirmMsg Source # | |
Defined in InputMsg (==) :: ConfirmMsg -> ConfirmMsg -> Bool # (/=) :: ConfirmMsg -> ConfirmMsg -> Bool # | |
Ord ConfirmMsg Source # | |
Defined in InputMsg compare :: ConfirmMsg -> ConfirmMsg -> Ordering # (<) :: ConfirmMsg -> ConfirmMsg -> Bool # (<=) :: ConfirmMsg -> ConfirmMsg -> Bool # (>) :: ConfirmMsg -> ConfirmMsg -> Bool # (>=) :: ConfirmMsg -> ConfirmMsg -> Bool # max :: ConfirmMsg -> ConfirmMsg -> ConfirmMsg # min :: ConfirmMsg -> ConfirmMsg -> ConfirmMsg # | |
Show ConfirmMsg Source # | |
Defined in InputMsg showsPrec :: Int -> ConfirmMsg -> ShowS # show :: ConfirmMsg -> String # showList :: [ConfirmMsg] -> ShowS # |
toConfirm :: Either a b -> ConfirmMsg Source #
fromConfirm :: ConfirmMsg -> Either Click Click Source #
Instances
Functor InputMsg Source # | |
Eq a => Eq (InputMsg a) Source # | |
Ord a => Ord (InputMsg a) Source # | |
Show a => Show (InputMsg a) Source # | |
inputChange :: a -> InputMsg a Source #
stripInputMsg :: InputMsg p -> p Source #
inputLeaveDone :: InputMsg a -> Maybe a Source #
data ListRequest a Source #
ReplaceItems Int Int [a] | |
HighlightItems [Int] | |
PickItem Int |
replaceAll :: [a] -> ListRequest a Source #
replaceAllFrom :: Int -> [a] -> ListRequest a Source #
deleteItems :: Int -> Int -> ListRequest a Source #
insertItems :: Int -> [a] -> ListRequest a Source #
appendItems :: [a] -> ListRequest a Source #
changeItems :: Int -> [a] -> ListRequest a Source #
replaceItems :: Int -> Int -> [a] -> ListRequest a Source #
highlightItems :: [Int] -> ListRequest a Source #
pickItem :: Int -> ListRequest a Source #
applyListRequest :: ListRequest a -> [a] -> [a] Source #
X types
Instances
data SocketRequest Source #
Instances
Read SocketRequest Source # | |
Defined in Sockets readsPrec :: Int -> ReadS SocketRequest # readList :: ReadS [SocketRequest] # | |
Show SocketRequest Source # | |
Defined in Sockets showsPrec :: Int -> SocketRequest -> ShowS # show :: SocketRequest -> String # showList :: [SocketRequest] -> ShowS # |
data SocketResponse Source #
Instances
Read SocketResponse Source # | |
Defined in Sockets readsPrec :: Int -> ReadS SocketResponse # readList :: ReadS [SocketResponse] # | |
Show SocketResponse Source # | |
Defined in Sockets showsPrec :: Int -> SocketResponse -> ShowS # show :: SocketResponse -> String # showList :: [SocketResponse] -> ShowS # |
data LayoutMessage Source #
Instances
Show LayoutMessage Source # | |
Defined in LayoutRequest showsPrec :: Int -> LayoutMessage -> ShowS # show :: LayoutMessage -> String # showList :: [LayoutMessage] -> ShowS # |
data LayoutResponse Source #
Instances
Show LayoutResponse Source # | |
Defined in LayoutRequest showsPrec :: Int -> LayoutResponse -> ShowS # show :: LayoutResponse -> String # showList :: [LayoutResponse] -> ShowS # |
type DisplayName = String Source #
data BitmapData Source #
BitmapData Size (Maybe Point) [Int] |
Instances
Eq BitmapData Source # | |
Defined in Command (==) :: BitmapData -> BitmapData -> Bool # (/=) :: BitmapData -> BitmapData -> Bool # | |
Ord BitmapData Source # | |
Defined in Command compare :: BitmapData -> BitmapData -> Ordering # (<) :: BitmapData -> BitmapData -> Bool # (<=) :: BitmapData -> BitmapData -> Bool # (>) :: BitmapData -> BitmapData -> Bool # (>=) :: BitmapData -> BitmapData -> Bool # max :: BitmapData -> BitmapData -> BitmapData # min :: BitmapData -> BitmapData -> BitmapData # | |
Read BitmapData Source # | |
Defined in Command readsPrec :: Int -> ReadS BitmapData # readList :: ReadS [BitmapData] # readPrec :: ReadPrec BitmapData # readListPrec :: ReadPrec [BitmapData] # | |
Show BitmapData Source # | |
Defined in Command showsPrec :: Int -> BitmapData -> ShowS # show :: BitmapData -> String # showList :: [BitmapData] -> ShowS # |
moveWindow :: Point -> XCommand Source #
resizeWindow :: Point -> XCommand Source #
moveResizeWindow :: Rect -> XCommand Source #
data DrawCommand Source #
Instances
Eq DrawCommand Source # | |
Defined in DrawTypes (==) :: DrawCommand -> DrawCommand -> Bool # (/=) :: DrawCommand -> DrawCommand -> Bool # | |
Ord DrawCommand Source # | |
Defined in DrawTypes compare :: DrawCommand -> DrawCommand -> Ordering # (<) :: DrawCommand -> DrawCommand -> Bool # (<=) :: DrawCommand -> DrawCommand -> Bool # (>) :: DrawCommand -> DrawCommand -> Bool # (>=) :: DrawCommand -> DrawCommand -> Bool # max :: DrawCommand -> DrawCommand -> DrawCommand # min :: DrawCommand -> DrawCommand -> DrawCommand # | |
Read DrawCommand Source # | |
Defined in DrawTypes readsPrec :: Int -> ReadS DrawCommand # readList :: ReadS [DrawCommand] # readPrec :: ReadPrec DrawCommand # readListPrec :: ReadPrec [DrawCommand] # | |
Show DrawCommand Source # | |
Defined in DrawTypes showsPrec :: Int -> DrawCommand -> ShowS # show :: DrawCommand -> String # showList :: [DrawCommand] -> ShowS # | |
Move DrawCommand Source # | |
Defined in Drawcmd move :: Point -> DrawCommand -> DrawCommand Source # |
data BitmapReturn Source #
Instances
Eq BitmapReturn Source # | |
Defined in Event (==) :: BitmapReturn -> BitmapReturn -> Bool # (/=) :: BitmapReturn -> BitmapReturn -> Bool # | |
Ord BitmapReturn Source # | |
Defined in Event compare :: BitmapReturn -> BitmapReturn -> Ordering # (<) :: BitmapReturn -> BitmapReturn -> Bool # (<=) :: BitmapReturn -> BitmapReturn -> Bool # (>) :: BitmapReturn -> BitmapReturn -> Bool # (>=) :: BitmapReturn -> BitmapReturn -> Bool # max :: BitmapReturn -> BitmapReturn -> BitmapReturn # min :: BitmapReturn -> BitmapReturn -> BitmapReturn # | |
Read BitmapReturn Source # | |
Defined in Event readsPrec :: Int -> ReadS BitmapReturn # readList :: ReadS [BitmapReturn] # | |
Show BitmapReturn Source # | |
Defined in Event showsPrec :: Int -> BitmapReturn -> ShowS # show :: BitmapReturn -> String # showList :: [BitmapReturn] -> ShowS # |
Instances
data ClientData Source #
Instances
Eq ClientData Source # | |
Defined in Event (==) :: ClientData -> ClientData -> Bool # (/=) :: ClientData -> ClientData -> Bool # | |
Ord ClientData Source # | |
Defined in Event compare :: ClientData -> ClientData -> Ordering # (<) :: ClientData -> ClientData -> Bool # (<=) :: ClientData -> ClientData -> Bool # (>) :: ClientData -> ClientData -> Bool # (>=) :: ClientData -> ClientData -> Bool # max :: ClientData -> ClientData -> ClientData # min :: ClientData -> ClientData -> ClientData # | |
Read ClientData Source # | |
Defined in Event readsPrec :: Int -> ReadS ClientData # readList :: ReadS [ClientData] # readPrec :: ReadPrec ClientData # readListPrec :: ReadPrec [ClientData] # | |
Show ClientData Source # | |
Defined in Event showsPrec :: Int -> ClientData -> ShowS # show :: ClientData -> String # showList :: [ClientData] -> ShowS # |
data Visibility Source #
Instances
NotifyAncestor | |
NotifyVirtual | |
NotifyInferior | |
NotifyNonlinear | |
NotifyNonlinearVirtual | |
NotifyPointer | |
NotifyPointerRoot | |
NotifyDetailNothing |
type FontStructList = FontStructF [CharStruct] Source #
type FontStruct = FontStructF (Array Char CharStruct) Source #
data Descriptor Source #
Instances
Eq Descriptor Source # | |
Defined in Sockets (==) :: Descriptor -> Descriptor -> Bool # (/=) :: Descriptor -> Descriptor -> Bool # | |
Ord Descriptor Source # | |
Defined in Sockets compare :: Descriptor -> Descriptor -> Ordering # (<) :: Descriptor -> Descriptor -> Bool # (<=) :: Descriptor -> Descriptor -> Bool # (>) :: Descriptor -> Descriptor -> Bool # (>=) :: Descriptor -> Descriptor -> Bool # max :: Descriptor -> Descriptor -> Descriptor # min :: Descriptor -> Descriptor -> Descriptor # | |
Read Descriptor Source # | |
Defined in Sockets readsPrec :: Int -> ReadS Descriptor # readList :: ReadS [Descriptor] # readPrec :: ReadPrec Descriptor # readListPrec :: ReadPrec [Descriptor] # | |
Show Descriptor Source # | |
Defined in Sockets showsPrec :: Int -> Descriptor -> ShowS # show :: Descriptor -> String # showList :: [Descriptor] -> ShowS # |
type AsyncInput = (Descriptor, AEvent) Source #
data SocketResponse Source #
LSocket LSocket | |
Socket Socket | |
Timer Timer | |
ProcessSockets (Maybe Socket) (Maybe Socket) (Maybe Socket) | |
DLHandle DLHandle | |
DLVal DLValue | |
Wrote Int |
Instances
Read SocketResponse Source # | |
Defined in Sockets readsPrec :: Int -> ReadS SocketResponse # readList :: ReadS [SocketResponse] # | |
Show SocketResponse Source # | |
Defined in Sockets showsPrec :: Int -> SocketResponse -> ShowS # show :: SocketResponse -> String # showList :: [SocketResponse] -> ShowS # |
data SocketRequest Source #
Instances
Read SocketRequest Source # | |
Defined in Sockets readsPrec :: Int -> ReadS SocketRequest # readList :: ReadS [SocketRequest] # | |
Show SocketRequest Source # | |
Defined in Sockets showsPrec :: Int -> SocketRequest -> ShowS # show :: SocketRequest -> String # showList :: [SocketRequest] -> ShowS # |
data SwapAction Source #
Instances
Instances
Bounded StackMode Source # | |
Enum StackMode Source # | |
Defined in Xtypes succ :: StackMode -> StackMode # pred :: StackMode -> StackMode # fromEnum :: StackMode -> Int # enumFrom :: StackMode -> [StackMode] # enumFromThen :: StackMode -> StackMode -> [StackMode] # enumFromTo :: StackMode -> StackMode -> [StackMode] # enumFromThenTo :: StackMode -> StackMode -> StackMode -> [StackMode] # | |
Eq StackMode Source # | |
Ord StackMode Source # | |
Defined in Xtypes | |
Read StackMode Source # | |
Show StackMode Source # | |
data WindowChanges Source #
Instances
Eq WindowChanges Source # | |
Defined in Xtypes (==) :: WindowChanges -> WindowChanges -> Bool # (/=) :: WindowChanges -> WindowChanges -> Bool # | |
Ord WindowChanges Source # | |
Defined in Xtypes compare :: WindowChanges -> WindowChanges -> Ordering # (<) :: WindowChanges -> WindowChanges -> Bool # (<=) :: WindowChanges -> WindowChanges -> Bool # (>) :: WindowChanges -> WindowChanges -> Bool # (>=) :: WindowChanges -> WindowChanges -> Bool # max :: WindowChanges -> WindowChanges -> WindowChanges # min :: WindowChanges -> WindowChanges -> WindowChanges # | |
Read WindowChanges Source # | |
Defined in Xtypes readsPrec :: Int -> ReadS WindowChanges # readList :: ReadS [WindowChanges] # | |
Show WindowChanges Source # | |
Defined in Xtypes showsPrec :: Int -> WindowChanges -> ShowS # show :: WindowChanges -> String # showList :: [WindowChanges] -> ShowS # |
data WindowAttributes Source #
Instances
Eq WindowAttributes Source # | |
Defined in Xtypes (==) :: WindowAttributes -> WindowAttributes -> Bool # (/=) :: WindowAttributes -> WindowAttributes -> Bool # | |
Ord WindowAttributes Source # | |
Defined in Xtypes compare :: WindowAttributes -> WindowAttributes -> Ordering # (<) :: WindowAttributes -> WindowAttributes -> Bool # (<=) :: WindowAttributes -> WindowAttributes -> Bool # (>) :: WindowAttributes -> WindowAttributes -> Bool # (>=) :: WindowAttributes -> WindowAttributes -> Bool # max :: WindowAttributes -> WindowAttributes -> WindowAttributes # min :: WindowAttributes -> WindowAttributes -> WindowAttributes # | |
Read WindowAttributes Source # | |
Defined in Xtypes | |
Show WindowAttributes Source # | |
Defined in Xtypes showsPrec :: Int -> WindowAttributes -> ShowS # show :: WindowAttributes -> String # showList :: [WindowAttributes] -> ShowS # |
type GCAttributeList = [GCAttributes Pixel FontId] Source #
data GCAttributes a b Source #
Instances
data GCFillStyle Source #
Instances
data GCSubwindowMode Source #
Instances
data GCJoinStyle Source #
Instances
data GCCapStyle Source #
Instances
data GCLineStyle Source #
Instances
data GCFunction Source #
GXclear | |
GXand | |
GXandReverse | |
GXcopy | |
GXandInverted | |
GXnoop | |
GXxor | |
GXor | |
GXnor | |
GXequiv | |
GXinvert | |
GXorReverse | |
GXCopyInverted | |
GXorInverted | |
GXnand | |
GXset |
Instances
data GrabPointerResult Source #
Instances
data BackingStore Source #
Instances
newtype PropertyMode Source #
Instances
Eq PropertyMode Source # | |
Defined in Xtypes (==) :: PropertyMode -> PropertyMode -> Bool # (/=) :: PropertyMode -> PropertyMode -> Bool # | |
Ord PropertyMode Source # | |
Defined in Xtypes compare :: PropertyMode -> PropertyMode -> Ordering # (<) :: PropertyMode -> PropertyMode -> Bool # (<=) :: PropertyMode -> PropertyMode -> Bool # (>) :: PropertyMode -> PropertyMode -> Bool # (>=) :: PropertyMode -> PropertyMode -> Bool # max :: PropertyMode -> PropertyMode -> PropertyMode # min :: PropertyMode -> PropertyMode -> PropertyMode # | |
Read PropertyMode Source # | |
Defined in Xtypes readsPrec :: Int -> ReadS PropertyMode # readList :: ReadS [PropertyMode] # | |
Show PropertyMode Source # | |
Defined in Xtypes showsPrec :: Int -> PropertyMode -> ShowS # show :: PropertyMode -> String # showList :: [PropertyMode] -> ShowS # |
Color | |
|
invertColorGCattrs :: Pixel -> Pixel -> [GCAttributes Pixel b] Source #
Instances
Bounded EventMask Source # | |
Enum EventMask Source # | |
Defined in EventMask succ :: EventMask -> EventMask # pred :: EventMask -> EventMask # fromEnum :: EventMask -> Int # enumFrom :: EventMask -> [EventMask] # enumFromThen :: EventMask -> EventMask -> [EventMask] # enumFromTo :: EventMask -> EventMask -> [EventMask] # enumFromThenTo :: EventMask -> EventMask -> EventMask -> [EventMask] # | |
Eq EventMask Source # | |
Ord EventMask Source # | |
Defined in EventMask | |
Read EventMask Source # | |
Show EventMask Source # | |
clEventMask :: [EventMask] Source #
ForgetGravity | |
NorthWestGravity | |
NorthGravity | |
NorthEastGravity | |
WestGravity | |
CenterGravity | |
EastGravity | |
SouthWestGravity | |
SouthGravity | |
SouthEastGravity | |
StaticGravity |
Instances
Bounded Gravity Source # | |
Enum Gravity Source # | |
Eq Gravity Source # | |
Ord Gravity Source # | |
Read Gravity Source # | |
Show Gravity Source # | |
Instances
Bounded ShapeKind Source # | |
Enum ShapeKind Source # | |
Defined in AuxTypes succ :: ShapeKind -> ShapeKind # pred :: ShapeKind -> ShapeKind # fromEnum :: ShapeKind -> Int # enumFrom :: ShapeKind -> [ShapeKind] # enumFromThen :: ShapeKind -> ShapeKind -> [ShapeKind] # enumFromTo :: ShapeKind -> ShapeKind -> [ShapeKind] # enumFromThenTo :: ShapeKind -> ShapeKind -> ShapeKind -> [ShapeKind] # | |
Eq ShapeKind Source # | |
Ord ShapeKind Source # | |
Defined in AuxTypes | |
Read ShapeKind Source # | |
Show ShapeKind Source # | |
data ShapeOperation Source #
Instances
Instances
Bounded Ordering' Source # | |
Enum Ordering' Source # | |
Defined in AuxTypes succ :: Ordering' -> Ordering' # pred :: Ordering' -> Ordering' # fromEnum :: Ordering' -> Int # enumFrom :: Ordering' -> [Ordering'] # enumFromThen :: Ordering' -> Ordering' -> [Ordering'] # enumFromTo :: Ordering' -> Ordering' -> [Ordering'] # enumFromThenTo :: Ordering' -> Ordering' -> Ordering' -> [Ordering'] # | |
Eq Ordering' Source # | |
Ord Ordering' Source # | |
Defined in AuxTypes | |
Read Ordering' Source # | |
Show Ordering' Source # | |
type RmDatabase = Int Source #
Instances
Bounded Modifiers Source # | |
Enum Modifiers Source # | |
Defined in AuxTypes succ :: Modifiers -> Modifiers # pred :: Modifiers -> Modifiers # fromEnum :: Modifiers -> Int # enumFrom :: Modifiers -> [Modifiers] # enumFromThen :: Modifiers -> Modifiers -> [Modifiers] # enumFromTo :: Modifiers -> Modifiers -> [Modifiers] # enumFromThenTo :: Modifiers -> Modifiers -> Modifiers -> [Modifiers] # | |
Eq Modifiers Source # | |
Ord Modifiers Source # | |
Defined in AuxTypes | |
Read Modifiers Source # | |
Show Modifiers Source # | |
clModifiers :: [Modifiers] Source #
newtype DbeBackBufferId Source #
Instances
Eq DbeBackBufferId Source # | |
Defined in ResourceIds (==) :: DbeBackBufferId -> DbeBackBufferId -> Bool # (/=) :: DbeBackBufferId -> DbeBackBufferId -> Bool # | |
Ord DbeBackBufferId Source # | |
Defined in ResourceIds compare :: DbeBackBufferId -> DbeBackBufferId -> Ordering # (<) :: DbeBackBufferId -> DbeBackBufferId -> Bool # (<=) :: DbeBackBufferId -> DbeBackBufferId -> Bool # (>) :: DbeBackBufferId -> DbeBackBufferId -> Bool # (>=) :: DbeBackBufferId -> DbeBackBufferId -> Bool # max :: DbeBackBufferId -> DbeBackBufferId -> DbeBackBufferId # min :: DbeBackBufferId -> DbeBackBufferId -> DbeBackBufferId # | |
Read DbeBackBufferId Source # | |
Defined in ResourceIds | |
Show DbeBackBufferId Source # | |
Defined in ResourceIds showsPrec :: Int -> DbeBackBufferId -> ShowS # show :: DbeBackBufferId -> String # showList :: [DbeBackBufferId] -> ShowS # |
newtype ColormapId Source #
Instances
Eq ColormapId Source # | |
Defined in ResourceIds (==) :: ColormapId -> ColormapId -> Bool # (/=) :: ColormapId -> ColormapId -> Bool # | |
Ord ColormapId Source # | |
Defined in ResourceIds compare :: ColormapId -> ColormapId -> Ordering # (<) :: ColormapId -> ColormapId -> Bool # (<=) :: ColormapId -> ColormapId -> Bool # (>) :: ColormapId -> ColormapId -> Bool # (>=) :: ColormapId -> ColormapId -> Bool # max :: ColormapId -> ColormapId -> ColormapId # min :: ColormapId -> ColormapId -> ColormapId # | |
Read ColormapId Source # | |
Defined in ResourceIds readsPrec :: Int -> ReadS ColormapId # readList :: ReadS [ColormapId] # readPrec :: ReadPrec ColormapId # readListPrec :: ReadPrec [ColormapId] # | |
Show ColormapId Source # | |
Defined in ResourceIds showsPrec :: Int -> ColormapId -> ShowS # show :: ColormapId -> String # showList :: [ColormapId] -> ShowS # |
currentTime :: Time Source #
newtype ImageFormat Source #
Instances
Eq ImageFormat Source # | |
Defined in Image (==) :: ImageFormat -> ImageFormat -> Bool # (/=) :: ImageFormat -> ImageFormat -> Bool # | |
Ord ImageFormat Source # | |
Defined in Image compare :: ImageFormat -> ImageFormat -> Ordering # (<) :: ImageFormat -> ImageFormat -> Bool # (<=) :: ImageFormat -> ImageFormat -> Bool # (>) :: ImageFormat -> ImageFormat -> Bool # (>=) :: ImageFormat -> ImageFormat -> Bool # max :: ImageFormat -> ImageFormat -> ImageFormat # min :: ImageFormat -> ImageFormat -> ImageFormat # | |
Read ImageFormat Source # | |
Defined in Image readsPrec :: Int -> ReadS ImageFormat # readList :: ReadS [ImageFormat] # readPrec :: ReadPrec ImageFormat # readListPrec :: ReadPrec [ImageFormat] # | |
Show ImageFormat Source # | |
Defined in Image showsPrec :: Int -> ImageFormat -> ShowS # show :: ImageFormat -> String # showList :: [ImageFormat] -> ShowS # |
data DisplayClass Source #
Instances
Bounded DisplayClass Source # | |
Defined in Visual | |
Enum DisplayClass Source # | |
Defined in Visual succ :: DisplayClass -> DisplayClass # pred :: DisplayClass -> DisplayClass # toEnum :: Int -> DisplayClass # fromEnum :: DisplayClass -> Int # enumFrom :: DisplayClass -> [DisplayClass] # enumFromThen :: DisplayClass -> DisplayClass -> [DisplayClass] # enumFromTo :: DisplayClass -> DisplayClass -> [DisplayClass] # enumFromThenTo :: DisplayClass -> DisplayClass -> DisplayClass -> [DisplayClass] # | |
Eq DisplayClass Source # | |
Defined in Visual (==) :: DisplayClass -> DisplayClass -> Bool # (/=) :: DisplayClass -> DisplayClass -> Bool # | |
Read DisplayClass Source # | |
Defined in Visual readsPrec :: Int -> ReadS DisplayClass # readList :: ReadS [DisplayClass] # | |
Show DisplayClass Source # | |
Defined in Visual showsPrec :: Int -> DisplayClass -> ShowS # show :: DisplayClass -> String # showList :: [DisplayClass] -> ShowS # |
Visual | |
|
Instances
data DrawCommand Source #
Instances
Eq DrawCommand Source # | |
Defined in DrawTypes (==) :: DrawCommand -> DrawCommand -> Bool # (/=) :: DrawCommand -> DrawCommand -> Bool # | |
Ord DrawCommand Source # | |
Defined in DrawTypes compare :: DrawCommand -> DrawCommand -> Ordering # (<) :: DrawCommand -> DrawCommand -> Bool # (<=) :: DrawCommand -> DrawCommand -> Bool # (>) :: DrawCommand -> DrawCommand -> Bool # (>=) :: DrawCommand -> DrawCommand -> Bool # max :: DrawCommand -> DrawCommand -> DrawCommand # min :: DrawCommand -> DrawCommand -> DrawCommand # | |
Read DrawCommand Source # | |
Defined in DrawTypes readsPrec :: Int -> ReadS DrawCommand # readList :: ReadS [DrawCommand] # readPrec :: ReadPrec DrawCommand # readListPrec :: ReadPrec [DrawCommand] # | |
Show DrawCommand Source # | |
Defined in DrawTypes showsPrec :: Int -> DrawCommand -> ShowS # show :: DrawCommand -> String # showList :: [DrawCommand] -> ShowS # | |
Move DrawCommand Source # | |
Defined in Drawcmd move :: Point -> DrawCommand -> DrawCommand Source # |
Instances
Bounded CoordMode Source # | |
Enum CoordMode Source # | |
Defined in DrawTypes succ :: CoordMode -> CoordMode # pred :: CoordMode -> CoordMode # fromEnum :: CoordMode -> Int # enumFrom :: CoordMode -> [CoordMode] # enumFromThen :: CoordMode -> CoordMode -> [CoordMode] # enumFromTo :: CoordMode -> CoordMode -> [CoordMode] # enumFromThenTo :: CoordMode -> CoordMode -> CoordMode -> [CoordMode] # | |
Eq CoordMode Source # | |
Ord CoordMode Source # | |
Defined in DrawTypes | |
Read CoordMode Source # | |
Show CoordMode Source # | |
pmDrawMany :: PixmapId -> [(GCId, [DrawCommand])] -> FRequest Source #
fillCircle :: Point -> Int -> DrawCommand Source #
drawCircle :: Point -> Int -> DrawCommand Source #
pmCreatePutImage :: PixmapId -> GCId -> Rect -> ImageFormat -> [Pixel] -> FRequest Source #
wCreatePutImage :: GCId -> Rect -> ImageFormat -> [Pixel] -> FRequest Source #
Utilities
defaultSep :: Num a => a Source #
defaultSize :: Maybe Point Source #
This should be modifier corresponding to Meta_L & Meta_R (see xmodmap). It is usually Mod1, but in XQuartz it appears to be Mod2 instead...
compactPath :: AFilePath -> AFilePath Source #
isAbsolute :: AFilePath -> Bool Source #
pathLength :: AFilePath -> Int Source #
rectMiddle :: Rect -> Point Source #
confine :: Rect -> Rect -> Rect Source #
confine outer inner: moves an shrinks inner to fit within outer
stripRight :: Either a1 a2 -> Maybe a2 Source #
stripEither :: Either p p -> p Source #
filterLeft :: [Either b1 b2] -> [b1] Source #
filterRight :: [Either a b] -> [b] Source #
swapEither :: Either b a -> Either a b Source #
splitEitherList :: [Either a1 a2] -> ([a1], [a2]) Source #
lsplit :: [a1] -> [a2] -> ([a2], [a2]) Source #
lsplit xs ys = (lhead xs ys,ltail xs ys), but without the space leak, -fpbu
mapList :: (a -> b) -> [a] -> [b] Source #
To avoid problems caused by poor type inference for constructor classes in Haskell 1.3:
version_0_18_3_2 :: [Char] Source #
Stream processors
prepostMapSP :: (t1 -> a) -> (t2 -> b) -> SP a t2 -> SP t1 b Source #
Instances
(Eq b, Eq a) => Eq (DynMsg a b) Source # | |
(Ord b, Ord a) => Ord (DynMsg a b) Source # | |
loopOnlySP :: SP a a -> SP a b Source #
appendStartSP :: [b] -> SP a b -> SP a b Source #
concatMapSP :: (t -> [b]) -> SP t b Source #
concatMapAccumlSP :: (t -> a -> (t, [b])) -> t -> SP a b Source #
mapstateSP :: (t -> a -> (t, [b])) -> t -> SP a b Source #
mapAccumlSP :: (t -> a -> (t, b)) -> t -> SP a b Source #
mapFilterSP :: (t -> Maybe b) -> SP t b Source #
filterLeftSP :: SP (Either b1 b2) b1 Source #
filterRightSP :: SP (Either a1 b) b Source #
filterJustSP :: SP (Maybe b) b Source #
class StreamProcIO sp where Source #
Instances
puts :: (Foldable t, StreamProcIO sp) => t o -> sp i o -> sp i o Source #
stripInputSP :: SP (InputMsg b) b Source #
inputDoneSP :: SP (InputMsg b) b Source #
inputLeaveDoneSP :: SP (InputMsg b) b Source #
IO
echoStderrK :: FudgetIO f => [Char] -> f b ho -> f b ho Source #
appendStdoutK :: FudgetIO f => String -> f b ho -> f b ho Source #
appendStderrK :: FudgetIO f => String -> f b ho -> f b ho Source #
openSocketErrF :: FudgetIO f => Host -> Port -> (IOError -> f b ho) -> (Socket -> f b ho) -> f b ho Source #
openLSocketErrF :: FudgetIO f => Port -> (IOError -> f b ho) -> (LSocket -> f b ho) -> f b ho Source #
openFileAsSocketErrF :: FudgetIO f => String -> String -> (IOError -> f b ho) -> (Socket -> f b ho) -> f b ho Source #
readXdgFileF :: XdgDirectory -> F String (String, Either IOError String) Source #
writeXdgFileF :: XdgDirectory -> F (String, String) (String, Either IOError ()) Source #
unsafeGetDLValue :: DLValue -> a Source #
getLocalTime :: FudgetIO f => (CalendarTime -> f b ho) -> f b ho Source #
getCurrentTime :: FudgetIO f => (UTCTime -> f b ho) -> f b ho Source #
getZonedTime :: FudgetIO f => (ZonedTime -> f b ho) -> f b ho Source #
getModificationTime :: FudgetIO f => FilePath -> (IOError -> f b ho) -> (ClockTime -> f b ho) -> f b ho Source #
Default parameters
class HasSizing xxx where Source #
setSizing :: Sizing -> Customiser xxx Source #
getSizing :: xxx -> Sizing Source #
getSizingMaybe :: xxx -> Maybe Sizing Source #
class HasInitText xxx where Source #
setInitText :: [String] -> Customiser xxx Source #
getInitText :: xxx -> [String] Source #
getInitTextMaybe :: xxx -> Maybe [String] Source #
Instances
HasInitText TextF Source # | |
Defined in TextF setInitText :: [String] -> Customiser TextF Source # getInitText :: TextF -> [String] Source # |
class HasStretchable xxx where Source #
setStretchable :: (Bool, Bool) -> Customiser xxx Source #
getStretchable :: xxx -> (Bool, Bool) Source #
Instances
class HasInitDisp xxx where Source #
setInitDisp :: a -> Customiser (xxx a) Source #
getInitDispMaybe :: xxx a -> Maybe a Source #
getInitDisp :: xxx a -> a Source #
Instances
HasInitDisp GraphicsF Source # | |
Defined in GraphicsF setInitDisp :: a -> Customiser (GraphicsF a) Source # getInitDispMaybe :: GraphicsF a -> Maybe a Source # getInitDisp :: GraphicsF a -> a Source # | |
HasInitDisp DisplayF Source # | |
Defined in DDisplayF setInitDisp :: a -> Customiser (DisplayF a) Source # getInitDispMaybe :: DisplayF a -> Maybe a Source # getInitDisp :: DisplayF a -> a Source # |
class HasInitSize xxx where Source #
setInitSize :: a -> Customiser (xxx a) Source #
getInitSizeMaybe :: xxx a -> Maybe a Source #
getInitSize :: xxx a -> a Source #
Instances
HasInitSize GraphicsF Source # | |
Defined in GraphicsF setInitSize :: a -> Customiser (GraphicsF a) Source # getInitSizeMaybe :: GraphicsF a -> Maybe a Source # getInitSize :: GraphicsF a -> a Source # | |
HasInitSize DisplayF Source # | |
Defined in DDisplayF setInitSize :: a -> Customiser (DisplayF a) Source # getInitSizeMaybe :: DisplayF a -> Maybe a Source # getInitSize :: DisplayF a -> a Source # |
class HasAlign xxx where Source #
setAlign :: Alignment -> Customiser xxx Source #
getAlign :: xxx -> Alignment Source #
getAlignMaybe :: xxx -> Maybe Alignment Source #
class HasMargin xxx where Source #
setMargin :: Int -> Customiser xxx Source #
getMargin :: xxx -> Int Source #
getMarginMaybe :: xxx -> Maybe Int Source #
class HasFgColorSpec xxx where Source #
setFgColorSpec :: ColorSpec -> Customiser xxx Source #
getFgColorSpec :: xxx -> ColorSpec Source #
getFgColorSpecMaybe :: xxx -> Maybe ColorSpec Source #
Instances
HasFgColorSpec TextF Source # | |
Defined in TextF setFgColorSpec :: ColorSpec -> Customiser TextF Source # getFgColorSpec :: TextF -> ColorSpec Source # | |
HasFgColorSpec StringF Source # | |
Defined in StringF | |
HasFgColorSpec (GraphicsF a) Source # | |
Defined in GraphicsF setFgColorSpec :: ColorSpec -> Customiser (GraphicsF a) Source # getFgColorSpec :: GraphicsF a -> ColorSpec Source # getFgColorSpecMaybe :: GraphicsF a -> Maybe ColorSpec Source # | |
HasFgColorSpec (DisplayF a) Source # | |
Defined in DDisplayF setFgColorSpec :: ColorSpec -> Customiser (DisplayF a) Source # getFgColorSpec :: DisplayF a -> ColorSpec Source # getFgColorSpecMaybe :: DisplayF a -> Maybe ColorSpec Source # | |
HasFgColorSpec (ButtonF a) Source # | |
Defined in DButtonF setFgColorSpec :: ColorSpec -> Customiser (ButtonF a) Source # getFgColorSpec :: ButtonF a -> ColorSpec Source # getFgColorSpecMaybe :: ButtonF a -> Maybe ColorSpec Source # |
class HasBgColorSpec xxx where Source #
setBgColorSpec :: ColorSpec -> Customiser xxx Source #
getBgColorSpec :: xxx -> ColorSpec Source #
getBgColorSpecMaybe :: xxx -> Maybe ColorSpec Source #
Instances
HasBgColorSpec TextF Source # | |
Defined in TextF setBgColorSpec :: ColorSpec -> Customiser TextF Source # getBgColorSpec :: TextF -> ColorSpec Source # | |
HasBgColorSpec StringF Source # | |
Defined in StringF | |
HasBgColorSpec (GraphicsF a) Source # | |
Defined in GraphicsF setBgColorSpec :: ColorSpec -> Customiser (GraphicsF a) Source # getBgColorSpec :: GraphicsF a -> ColorSpec Source # getBgColorSpecMaybe :: GraphicsF a -> Maybe ColorSpec Source # | |
HasBgColorSpec (DisplayF a) Source # | |
Defined in DDisplayF setBgColorSpec :: ColorSpec -> Customiser (DisplayF a) Source # getBgColorSpec :: DisplayF a -> ColorSpec Source # getBgColorSpecMaybe :: DisplayF a -> Maybe ColorSpec Source # | |
HasBgColorSpec (ButtonF a) Source # | |
Defined in DButtonF setBgColorSpec :: ColorSpec -> Customiser (ButtonF a) Source # getBgColorSpec :: ButtonF a -> ColorSpec Source # getBgColorSpecMaybe :: ButtonF a -> Maybe ColorSpec Source # |
class HasBorderWidth xxx where Source #
setBorderWidth :: Int -> Customiser xxx Source #
getBorderWidth :: xxx -> Int Source #
getBorderWidthMaybe :: xxx -> Maybe Int Source #
Instances
HasBorderWidth TextF Source # | |
Defined in TextF setBorderWidth :: Int -> Customiser TextF Source # getBorderWidth :: TextF -> Int Source # | |
HasBorderWidth StringF Source # | |
Defined in StringF setBorderWidth :: Int -> Customiser StringF Source # getBorderWidth :: StringF -> Int Source # | |
HasBorderWidth (GraphicsF a) Source # | |
Defined in GraphicsF setBorderWidth :: Int -> Customiser (GraphicsF a) Source # getBorderWidth :: GraphicsF a -> Int Source # | |
HasBorderWidth (DisplayF a) Source # | |
Defined in DDisplayF setBorderWidth :: Int -> Customiser (DisplayF a) Source # getBorderWidth :: DisplayF a -> Int Source # |
class HasWinAttr xxx where Source #
setWinAttr :: [WindowAttributes] -> Customiser xxx Source #
getWinAttr :: xxx -> [WindowAttributes] Source #
getWinAttrMaybe :: xxx -> Maybe [WindowAttributes] Source #
Instances
HasWinAttr ShellF Source # | |
Defined in DShellF setWinAttr :: [WindowAttributes] -> Customiser ShellF Source # getWinAttr :: ShellF -> [WindowAttributes] Source # getWinAttrMaybe :: ShellF -> Maybe [WindowAttributes] Source # |
class HasKeys xxx where Source #
setKeys :: [(ModState, KeySym)] -> Customiser xxx Source #
Instances
HasKeys ToggleButtonF Source # | |
Defined in DToggleButtonF setKeys :: [(ModState, KeySym)] -> Customiser ToggleButtonF Source # getKeys :: ToggleButtonF -> [(ModState, KeySym)] Source # getKeysMaybe :: ToggleButtonF -> Maybe [(ModState, KeySym)] Source # | |
HasKeys (ButtonF a) Source # | |
class HasFontSpec xxx where Source #
setFontSpec :: FontSpec -> Customiser xxx Source #
getFontSpec :: xxx -> FontSpec Source #
getFontSpecMaybe :: xxx -> Maybe FontSpec Source #
Instances
type Customiser a = a -> a Source #
cust :: (a -> a) -> Customiser a Source #
getparMaybe :: (t -> Maybe a) -> [t] -> Maybe a Source #
standard :: Customiser a Source #
setFont :: (HasFontSpec xxx, Show a, FontGen a) => a -> Customiser xxx Source #
setBgColor :: (HasBgColorSpec xxx, Show a, ColorGen a) => a -> Customiser xxx Source #
setFgColor :: (HasFgColorSpec xxx, Show a, ColorGen a) => a -> Customiser xxx Source #
fromMaybe :: a -> Maybe a -> a #
The fromMaybe
function takes a default value and and Maybe
value. If the Maybe
is Nothing
, it returns the default values;
otherwise, it returns the value contained in the Maybe
.
Examples
Basic usage:
>>>
fromMaybe "" (Just "Hello, World!")
"Hello, World!"
>>>
fromMaybe "" Nothing
""
Read an integer from a string using readMaybe
. If we fail to
parse an integer, we want to return 0
by default:
>>>
import Text.Read ( readMaybe )
>>>
fromMaybe 0 (readMaybe "5")
5>>>
fromMaybe 0 (readMaybe "")
0