Safe Haskell | None |
---|---|
Language | Haskell2010 |
A variant of the Graph widget that automatically updates itself with a callback at a fixed interval.
Synopsis
- data GraphHandle
- data GraphConfig = GraphConfig {
- graphPadding :: Int
- graphBackgroundColor :: RGBA
- graphBorderColor :: RGBA
- graphBorderWidth :: Int
- graphDataColors :: [RGBA]
- graphDataStyles :: [GraphStyle]
- graphHistorySize :: Int
- graphLabel :: Maybe Text
- graphWidth :: Int
- graphDirection :: GraphDirection
- data GraphDirection
- data GraphStyle
- pollingGraphNew :: MonadIO m => GraphConfig -> Double -> IO [Double] -> m Widget
- defaultGraphConfig :: GraphConfig
Types
data GraphHandle Source #
data GraphConfig Source #
The configuration options for the graph. The padding is the number of pixels reserved as blank space around the widget in each direction.
GraphConfig | |
|
data GraphDirection Source #
Instances
Eq GraphDirection Source # | |
Defined in System.Taffybar.Widget.Generic.Graph (==) :: GraphDirection -> GraphDirection -> Bool # (/=) :: GraphDirection -> GraphDirection -> Bool # |
data GraphStyle Source #
Constructors and accessors
pollingGraphNew :: MonadIO m => GraphConfig -> Double -> IO [Double] -> m Widget Source #