ltk-0.15.0.1: Leksah tool kit

Safe HaskellNone
LanguageHaskell98

Graphics.UI.Frame.Panes

Contents

Description

The basic definitions for all panes

Synopsis

Panes and pane layout

class MonadIO delta => PaneMonad delta where Source

Methods

setFrameState :: FrameState delta -> delta () Source

getFrameState :: delta (FrameState delta) Source

runInIO :: forall alpha beta. (beta -> delta alpha) -> delta (beta -> IO alpha) Source

panePathForGroup :: Text -> delta PanePath Source

getThisPane :: forall alpha beta. RecoverablePane alpha beta delta => delta (Maybe alpha) Source

displayThisPane :: forall alpha beta. RecoverablePane alpha beta delta => alpha -> Bool -> delta () Source

getOrBuildThisPane :: forall alpha beta. RecoverablePane alpha beta delta => Either PanePath Text -> delta (Maybe alpha) Source

buildThisPane :: forall alpha beta. RecoverablePane alpha beta delta => PanePath -> Notebook -> (PanePath -> Notebook -> Window -> delta (Maybe alpha, Connections)) -> delta (Maybe alpha) Source

activateThisPane :: forall alpha beta. RecoverablePane alpha beta delta => alpha -> Connections -> delta () Source

closeThisPane :: forall alpha beta. RecoverablePane alpha beta delta => alpha -> delta Bool Source

data IDEPane delta Source

Constructors

forall alpha beta . RecoverablePane alpha beta delta => PaneC alpha 

Instances

Eq (IDEPane delta) 
Ord (IDEPane delta) 
Show (IDEPane delta) 

class (Typeable alpha, PaneMonad delta) => Pane alpha delta | alpha -> delta where Source

All kinds of panes are instances of pane

Minimal complete definition

getTopWidget, paneId, primPaneName

Methods

getTopWidget :: alpha -> Widget Source

gets the top Widget of this pane

paneId :: alpha -> Text Source

primPaneName :: alpha -> Text Source

paneName :: alpha -> PaneName Source

getAddedIndex :: alpha -> Int Source

class (Pane alpha delta, Typeable beta, Show beta, Read beta) => RecoverablePane alpha beta delta | beta -> alpha, alpha -> beta where Source

Minimal complete definition

saveState, recoverState, builder

Methods

saveState :: alpha -> delta (Maybe beta) Source

recoverState :: PanePath -> beta -> delta (Maybe alpha) Source

builder :: PanePath -> Notebook -> Window -> delta (Maybe alpha, Connections) Source

makeActive :: alpha -> delta () Source

closePane :: alpha -> delta Bool Source

getPane :: delta (Maybe alpha) Source

forceGetPane :: Either PanePath Text -> delta alpha Source

getOrBuildPane :: Either PanePath Text -> delta (Maybe alpha) Source

displayPane :: alpha -> Bool -> delta () Source

getAndDisplayPane :: Either PanePath Text -> Bool -> delta (Maybe alpha) Source

buildPane :: PanePath -> Notebook -> (PanePath -> Notebook -> Window -> delta (Maybe alpha, Connections)) -> delta (Maybe alpha) Source

data PaneDirection Source

The relative direction to a pane from the parent

Constructors

TopP 
BottomP 
LeftP 
RightP 

data PanePathElement Source

An element of a path to a pane

type PanePath = [PanePathElement] Source

A path to a pane

data PaneLayout Source

Description of a window layout Horizontal: top bottom Vertical: left right

data Connection Source

Signal handlers for the different pane types

Constructors

forall alpha . GObjectClass alpha => ConnectC (ConnectId alpha) 

Instances