fltkhs-themes-0.2.0.1: A set of themed widgets that provides drop in replacements to the ones in FLTKHS.

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.Theme.Light.Tabs

Contents

Synopsis

Documentation

tabsNew :: (?assets :: Assets) => Rectangle -> Maybe Text -> IO (Ref Tabs) Source #

Tab Helpers and Handlers

data TabSpec Source #

Visual properties of tabs

Constructors

TabSpec 

Fields

drawTabs :: TabSpec -> Ref Tabs -> IO () Source #

Custom tab drawing function

lightTabClientAreaCustom :: TabSpec -> Ref Tabs -> TabsHeightOffset -> IO Rectangle Source #

Calculate the bounds of the area inside the tab containing other widgets

lightTabHandleCustom :: TabSpec -> Ref Tabs -> Event -> IO (Either UnknownEvent ()) Source #

Handles all events to the tab

lightTabHeightCustom :: TabSpec -> Ref Tabs -> IO Height Source #

Calculate the height of each tab, a negative height indicates tabs are along the bottom

lightTabPositionsCustom :: TabSpec -> Ref Tabs -> IO (Maybe AtIndex, Int, [(X, Width)]) Source #

Calculate the width and x coordinate of each tab

lightTabRedrawTabs :: Ref Tabs -> IO () Source #

Damage the tabs widget appropriately for redraw

lightTabWhichCustom :: TabSpec -> Ref Tabs -> Position -> IO (Maybe (AtIndex, Ref WidgetBase)) Source #

Determine which tab was just selected