taffybar-2.1.0: A desktop bar similar to xmobar, but with more GUI

Copyright(c) José A. Romero L.
LicenseBSD3-style (see LICENSE)
MaintainerJosé A. Romero L. <escherdragon@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

System.Taffybar.Widget.Util

Description

Utility functions to facilitate building GTK interfaces.

Synopsis

Documentation

onClick Source #

Arguments

:: [Click]

Types of button clicks to listen to.

-> IO a

Action to execute.

-> EventM EButton Bool 

Execute the given action as a response to any of the given types of mouse button clicks.

attachPopup Source #

Arguments

:: (WidgetClass w, WindowClass wnd) 
=> w

The widget to set as popup.

-> String

The title of the popup.

-> wnd

The window to attach the popup to.

-> IO () 

Attach the given widget as a popup with the given title to the given window. The newly attached popup is not shown initially. Use the displayPopup function to display it.

displayPopup Source #

Arguments

:: (WidgetClass w, WindowClass wnd) 
=> w

The popup widget.

-> wnd

The window the widget was attached to.

-> IO () 

Display the given popup widget (previously prepared using the attachPopup function) immediately beneath (or above) the given window.

widgetGetAllocatedSize :: (WidgetClass self, MonadIO m) => self -> m (Int, Int) Source #

colorize Source #

Arguments

:: String

Foreground color.

-> String

Background color.

-> String

Contents.

-> String 

Creates markup with the given foreground and background colors and the given contents.

drawOn :: WidgetClass object => object -> IO () -> IO object Source #

widgetSetClass :: (WidgetClass widget, MonadIO m) => widget -> String -> m widget Source #

widgetSetClassGI :: (IsWidget b, MonadIO m) => b -> Text -> m b Source #

themeLoadFlags :: [IconLookupFlags] Source #

alignCenter :: (IsWidget o, MonadIO m) => o -> m () Source #

vFillCenter :: (IsWidget o, MonadIO m) => o -> m () Source #

loadIcon :: Int32 -> String -> IO Pixbuf Source #

setMinWidth :: (WidgetClass w, MonadIO m) => Int -> w -> m w Source #