uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.GenericBrowser

Description

A generic data browser.

Synopsis

Documentation

newGenericBrowser Source #

Arguments

:: (GBObject o, Container par) 
=> par

the parent widget (which has to be a container widget).

-> [o]

the list of top level objects.

-> [Config (GenericBrowser o)]

the list of configuration options for this generic browser.

-> IO (GenericBrowser o)

A generic browser.

Constructs a new generic browser and returns a handler.

class CItem o => GBObject o where Source #

Browsed data needs to instantiate the class CItem.

Minimal complete definition

getChildren, isObjectNode

Methods

getChildren :: o -> IO [o] Source #

isObjectNode :: o -> IO Bool Source #

bindGenericBrowserEv Source #

Arguments

:: GBObject o 
=> GenericBrowser o

the concerned generic browser.

-> IO (Event (GenericBrowserEvent o), IO ())

A pair of (event, unbind action).

Binds a listener for generic browser events to the tree list and returns a corresponding event and an unbind action.