Documentation ¶
Index ¶
- Constants
- Variables
- func All(f func(*Window, interface{}), arg interface{})
- func Colclean(c *Column) bool
- func Coldragwin1(c *Column, w *Window, but int, op, p draw.Point)
- func Colgrow(c *Column, w *Window, but int)
- func Colresize(c *Column, r draw.Rectangle)
- func Colsort(c *Column)
- func Delrunepos(w *Window) int
- func Dirname(t *Text, r []rune) []rune
- func Init(w *Window, clone *Window, r draw.Rectangle)
- func Region(a int, b int) int
- func RowInit(row *Row, r draw.Rectangle)
- func Rowclean(row *Row) bool
- func Rowclose(row *Row, c *Column, dofree bool)
- func Rowdragcol1(row *Row, c *Column, op, p draw.Point)
- func Rowresize(row *Row, r draw.Rectangle)
- func Scrlresize()
- func Selrestore(f *frame.Frame, pt0 draw.Point, p0 int, p1 int)
- func Textbacknl(t *Text, p int, n int) int
- func Textbsinsert(t *Text, q0 int, r []rune, tofile bool, nrp *int) int
- func Textbswidth(t *Text, c rune) int
- func Textcolumnate(t *Text, dlp []*Dirlist)
- func Textcommit(t *Text, tofile bool)
- func Textdelete(t *Text, q0 int, q1 int, tofile bool)
- func Textdoubleclick(t *Text, q0 *int, q1 *int)
- func Textfilewidth(t *Text, q0 int, oneelement bool) int
- func Textfill(t *Text)
- func Textinsert(t *Text, q0 int, r []rune, tofile bool)
- func Textreset(t *Text)
- func Textresize(t *Text, r draw.Rectangle, keepextra bool) int
- func Textscrdraw(t *Text)
- func Textsetorigin(t *Text, org int, exact bool)
- func Textsetselect(t *Text, q0 int, q1 int)
- func Textshow(t *Text, q0 int, q1 int, doselect bool)
- func Typecommit(t *Text)
- func Winaddincl(w *Window, r []rune)
- func Winclean(w *Window, conservative bool) bool
- func Wincleartatg(w *Window)
- func Winclose(w *Window)
- func Wincommit(w *Window, t *Text)
- func Winctlprint(w *Window, fonts bool) string
- func Windirfree(w *Window)
- func Winevent(w *Window, format string, args ...interface{})
- func Winlock(w *Window, owner rune)
- func Winlock1(w *Window, owner rune)
- func Winresize(w *Window, r draw.Rectangle, safe, keepextra bool) int
- func Winsetname(w *Window, name []rune)
- func Winsettag(w *Window)
- func Winundo(w *Window, isundo bool)
- func Winunlock(w *Window)
- type Column
- type Dirlist
- type File
- type Row
- type Text
- type Window
Constants ¶
View Source
const ( Columntag = iota Rowtag Tag Body )
View Source
const ( BUFSIZE = 8192 RUNESIZE = int(unsafe.Sizeof(rune(0))) RBUFSIZE = bufs.Len / runes.RuneSize EVENTSIZE = 256 )
fbufalloc() guarantees room off end of BUFSIZE
View Source
const (
TABDIR = 3
)
Variables ¶
View Source
var GlobalAutoindent bool
extern var wdir [unknown]C.char /* must use extern because no dimension given */
View Source
var GlobalIncref int
View Source
var MaxTab int // size of a tab, in units of the '0' character
View Source
var OnWinclose func(*Window)
Functions ¶
func Delrunepos ¶
func Scrlresize ¶
func Scrlresize()
func Textbswidth ¶
func Textcolumnate ¶
func Textcommit ¶
func Textdoubleclick ¶
func Textscrdraw ¶
func Textscrdraw(t *Text)
func Textsetorigin ¶
func Textsetselect ¶
func Typecommit ¶
func Typecommit(t *Text)
func Winaddincl ¶
func Wincleartatg ¶
func Wincleartatg(w *Window)
func Winctlprint ¶
func Windirfree ¶
func Windirfree(w *Window)
func Winsetname ¶
Types ¶
type File ¶
type Text ¶
type Text struct { File *File Fr frame.Frame Reffont *adraw.RefFont Org int Q0 int Q1 int What int Tabstop int W *Window ScrollR draw.Rectangle All draw.Rectangle Row *Row Col *Column IQ1 int Eq0 int Cq0 int Cache []rune Nofill bool Needundo bool // contains filtered or unexported fields }
var Argtext *Text
var Barttext *Text // shared between mousetask and keyboardthread
var Mousetext *Text // global because Text.close needs to clear it
var Seltext *Text
var Typetext *Text // global because Text.close needs to clear it
type Window ¶
type Window struct { Ref uint32 Tag Text Body Text R draw.Rectangle IsDir bool IsScratch bool Dirty bool Autoindent bool Showdel bool ID int Addr runes.Range Limit runes.Range Nomark bool Wrselrange runes.Range Rdselfd *os.File Col *Column Eventtag uint16 Eventwait chan bool Events []byte Owner rune Maxlines int Dlp []*Dirlist Putseq int Incl [][]rune Ctllock sync.Mutex Ctlfid int Dumpstr string Dumpdir string Utflastqid int Utflastboff int64 Utflastq int Tagsafe bool Tagexpand bool Taglines int Editoutlk util.QLock External bool // contains filtered or unexported fields }
var Activewin *Window
Click to show internal directories.
Click to hide internal directories.