Copyright | (c) José A. Romero L. |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | José A. Romero L. <escherdragon@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Utility functions to facilitate building GTK interfaces.
- onClick :: [Click] -> IO a -> EventM EButton Bool
- attachPopup :: (WidgetClass w, WindowClass wnd) => w -> String -> wnd -> IO ()
- displayPopup :: (WidgetClass w, WindowClass wnd) => w -> wnd -> IO ()
- widgetGetAllocatedSize :: (WidgetClass self, MonadIO m) => self -> m (Int, Int)
- colorize :: String -> String -> String -> String
- backgroundLoop :: IO a -> IO ()
- drawOn :: WidgetClass object => object -> IO () -> IO object
- widgetSetClass :: (WidgetClass widget, MonadIO m) => widget -> String -> m widget
- widgetSetClassGI :: (IsWidget b, MonadIO m) => b -> Text -> m b
- themeLoadFlags :: [IconLookupFlags]
- getImageForDesktopEntry :: Int32 -> DesktopEntry -> IO (Maybe Pixbuf)
- alignCenter :: (IsWidget o, MonadIO m) => o -> m ()
- vFillCenter :: (IsWidget o, MonadIO m) => o -> m ()
- pixbufNewFromFileAtScaleByHeight :: Int32 -> String -> IO Pixbuf
- loadIcon :: Int32 -> String -> IO Pixbuf
- setMinWidth :: (WidgetClass w, MonadIO m) => Int -> w -> m w
Documentation
Execute the given action as a response to any of the given types of mouse button clicks.
:: (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.
:: (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.
Creates markup with the given foreground and background colors and the given contents.
backgroundLoop :: IO a -> IO () Source #
widgetSetClass :: (WidgetClass widget, MonadIO m) => widget -> String -> m widget Source #
widgetSetClassGI :: (IsWidget b, MonadIO m) => b -> Text -> m b Source #
themeLoadFlags :: [IconLookupFlags] Source #
getImageForDesktopEntry :: Int32 -> DesktopEntry -> IO (Maybe Pixbuf) Source #
alignCenter :: (IsWidget o, MonadIO m) => o -> m () Source #
vFillCenter :: (IsWidget o, MonadIO m) => o -> m () Source #
setMinWidth :: (WidgetClass w, MonadIO m) => Int -> w -> m w Source #