yi-0.12.0: The Haskell-Scriptable Editor

LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • TemplateHaskell
  • DeriveDataTypeable
  • NondecreasingIndentation

Yi.Window

Description

Operations on Windows, in the emacs sense of the word.

Synopsis

Documentation

data Window Source

A window onto a buffer.

Constructors

Window 

Fields

isMini :: !Bool

regular or mini window?

bufkey :: !BufferRef

the buffer this window opens to

bufAccessList :: ![BufferRef]

list of last accessed buffers (former bufKeys). Last accessed one is first element

height :: !Int

height of the window (in number of screen lines displayed)

width :: !Int

width of the window (in number of chars)

winRegion :: !Region

view area. note that the top point is also available as a buffer mark.

wkey :: !WindowRef

identifier for the window (for UI sync) This is required for accurate scrolling. Scrolling depends on the actual number of buffer lines displayed. Line wrapping changes that number relative to the height so we can't use height for that purpose.

actualLines :: !Int

The actual number of buffer lines displayed. Taking into account line wrapping

jumpList :: !JumpList
 

winkey :: Window -> (Bool, BufferRef) Source

Get the identification of a window.

dummyWindow :: BufferRef -> Window Source

Return a "fake" window onto a buffer.