rasa-ext-views-0.1.5: Rasa Ext managing rendering views

Safe HaskellNone
LanguageHaskell2010

Rasa.Ext.Views.Internal.Views

Synopsis

Documentation

rotate :: Window -> Window Source #

Flip all Horizontal splits to Vertical ones and vice versa.

closeBy :: (View -> Bool) -> Window -> Maybe Window Source #

Close any views which match a given predicate

focusViewLeft :: Window -> Window Source #

Move focus from any viewports one viewport to the left

focusViewRight :: Window -> Window Source #

Move focus from any viewports one viewport to the right

focusViewAbove :: Window -> Window Source #

Move focus from any viewports one viewport above

focusViewBelow :: Window -> Window Source #

Move focus from any viewports one viewport below

getViews :: App (Maybe Window) Source #

Gets the stored views

setViews :: Maybe Window -> App () Source #

Sets the stored views

overWindows :: (Window -> Window) -> App () Source #

Run function over stored windows

hSplit :: Window -> Window Source #

Split active views horizontally

vSplit :: Window -> Window Source #

Split active views vertically

addSplit :: Dir -> Viewable -> Window -> Window Source #

Add a new split at the top level in the given direction containing the given buffer.

scrollBy :: Int -> Window -> Window Source #

Scroll all active viewports by the given amount.

data Dir Source #

  • Hor denotes a horizontal split.
  • Vert denotes a vertical split.

Constructors

Hor 
Vert 

Instances

Show Dir Source # 

Methods

showsPrec :: Int -> Dir -> ShowS #

show :: Dir -> String #

showList :: [Dir] -> ShowS #

Default Dir Source # 

Methods

def :: Dir #

data SplitRule Source #

A SplitRule determines size of each half of the split.

  • Ratio Double sets the split to the given ratio; the double must be between 0 and 1; for example a value of 0.25 sets the first portion of the split to 1/4 of the available space; the other portion takes the remaining 3/4 of the space
  • FromStart Int makes the first half of the split (top/left respectively) the set number of rows or columns respectively, the other half of the split gets the rest.
  • FromEnd Int makes the first half of the split (top/left respectively) the set number of rows or columns respectively, the other half of the split gets the rest.

type Window = BiTree Split View Source #

A tree of windows branched with splits.

data Split Source #

A Split contains info about a the direction and allocation of a split branch.

Constructors

Split 

Fields

Instances

data View Source #

A View contains info about a viewport; Whether it's selected and which buffer should be displayed.

Constructors

View 

Instances

HasWidgets View Source #

This represents types which can provide a set of widgets

data Viewable Source #

Represents a renderable entity

Constructors

BufView BufRef 
EmptyView 

_BufViewRef :: Prism' Viewable BufRef Source #

Prism BufView to its bufref

traverseViews :: (View -> App View) -> App () Source #

Alters views by a given function.