vidar: github.com/nelsam/vidar/editor Index | Files

package editor

import "github.com/nelsam/vidar/editor"

Index

Package Files

editor.go project_editor.go split_editor.go tabbed_editor.go

type CodeEditor Uses

type CodeEditor struct {
    mixins.CodeEditor
    // contains filtered or unexported fields
}

func (*CodeEditor) Carets Uses

func (e *CodeEditor) Carets() []int

func (*CodeEditor) CreateLine Uses

func (e *CodeEditor) CreateLine(theme gxui.Theme, index int) (mixins.TextBoxLine, gxui.Control)

func (*CodeEditor) DataChanged Uses

func (e *CodeEditor) DataChanged(recreate bool)

func (*CodeEditor) Elements Uses

func (e *CodeEditor) Elements() []interface{}

func (*CodeEditor) Filepath Uses

func (e *CodeEditor) Filepath() string

func (*CodeEditor) FlushedChanges Uses

func (e *CodeEditor) FlushedChanges()

func (*CodeEditor) HasChanges Uses

func (e *CodeEditor) HasChanges() bool

func (*CodeEditor) Init Uses

func (e *CodeEditor) Init(driver gxui.Driver, theme *basic.Theme, syntaxTheme theme.Theme, font gxui.Font, file, headerText string)

func (*CodeEditor) KeyPress Uses

func (e *CodeEditor) KeyPress(event gxui.KeyboardEvent) bool

func (*CodeEditor) KeyStroke Uses

func (e *CodeEditor) KeyStroke(event gxui.KeyStrokeEvent) (consume bool)

func (*CodeEditor) LastKnownMTime Uses

func (e *CodeEditor) LastKnownMTime() time.Time

func (*CodeEditor) OnRename Uses

func (e *CodeEditor) OnRename(callback func(newPath string))

func (*CodeEditor) Paint Uses

func (e *CodeEditor) Paint(c gxui.Canvas)

func (*CodeEditor) SetCarets Uses

func (e *CodeEditor) SetCarets(carets ...int)

func (*CodeEditor) SetSyntaxLayers Uses

func (e *CodeEditor) SetSyntaxLayers(layers []input.SyntaxLayer)

func (*CodeEditor) SyntaxLayers Uses

func (e *CodeEditor) SyntaxLayers() []input.SyntaxLayer

type Commander Uses

type Commander interface {
    Bindable(string) bind.Bindable
    Execute(bind.Bindable)
}

type Direction Uses

type Direction int
const (
    Up  Direction = 1 + iota
    Right
    Down
    Left
)

type MultiEditor Uses

type MultiEditor interface {
    gxui.Control
    outer.LayoutChildren
    Has(hiddenPrefix, path string) bool
    Open(hiddenPrefix, path, headerText string, environ []string) (editor input.Editor, existed bool)
    Editors() uint
    CurrentEditor() input.Editor
    CurrentFile() string
    CloseCurrentEditor() (name string, editor input.Editor)
    Add(name string, editor input.Editor)
    SaveAll()
}

type MultiProjectEditor Uses

type MultiProjectEditor struct {
    mixins.LinearLayout
    // contains filtered or unexported fields
}

func New Uses

func New(driver gxui.Driver, window gxui.Window, cmdr Commander, theme *basic.Theme, syntaxTheme theme.Theme, font gxui.Font) *MultiProjectEditor

func (*MultiProjectEditor) CurrentEditor Uses

func (e *MultiProjectEditor) CurrentEditor() input.Editor

func (*MultiProjectEditor) CurrentFile Uses

func (e *MultiProjectEditor) CurrentFile() string

func (*MultiProjectEditor) CurrentProject Uses

func (e *MultiProjectEditor) CurrentProject() setting.Project

func (*MultiProjectEditor) Elements Uses

func (e *MultiProjectEditor) Elements() []interface{}

func (*MultiProjectEditor) Open Uses

func (e *MultiProjectEditor) Open(file string) (ed input.Editor, existed bool)

func (*MultiProjectEditor) SetProject Uses

func (e *MultiProjectEditor) SetProject(project setting.Project)

type Opener Uses

type Opener interface {
    For(...focus.Opt) bind.Bindable
}

type Orienter Uses

type Orienter interface {
    SetOrientation(gxui.Orientation)
}

type ProjectEditor Uses

type ProjectEditor struct {
    SplitEditor
    // contains filtered or unexported fields
}

func NewProjectEditor Uses

func NewProjectEditor(driver gxui.Driver, window gxui.Window, cmdr Commander, theme *basic.Theme, syntaxTheme theme.Theme, font gxui.Font, project setting.Project) *ProjectEditor

func (*ProjectEditor) Open Uses

func (p *ProjectEditor) Open(path string) (e input.Editor, existed bool)

func (*ProjectEditor) Project Uses

func (p *ProjectEditor) Project() setting.Project

type SplitEditor Uses

type SplitEditor struct {
    mixins.SplitterLayout
    // contains filtered or unexported fields
}

func NewSplitEditor Uses

func NewSplitEditor(driver gxui.Driver, cmdr Commander, window gxui.Window, theme *basic.Theme, syntaxTheme theme.Theme, font gxui.Font) *SplitEditor

func (*SplitEditor) Add Uses

func (e *SplitEditor) Add(name string, editor input.Editor)

func (*SplitEditor) AddChild Uses

func (e *SplitEditor) AddChild(child gxui.Control) *gxui.Child

func (*SplitEditor) ChildIndex Uses

func (e *SplitEditor) ChildIndex(c gxui.Control) int

func (*SplitEditor) CloseCurrentEditor Uses

func (e *SplitEditor) CloseCurrentEditor() (name string, editor input.Editor)

func (*SplitEditor) CreateSplitterBar Uses

func (l *SplitEditor) CreateSplitterBar() gxui.Control

func (*SplitEditor) CurrentEditor Uses

func (e *SplitEditor) CurrentEditor() input.Editor

func (*SplitEditor) CurrentFile Uses

func (e *SplitEditor) CurrentFile() string

func (*SplitEditor) Editors Uses

func (e *SplitEditor) Editors() (count uint)

func (*SplitEditor) Elements Uses

func (e *SplitEditor) Elements() []interface{}

func (*SplitEditor) Has Uses

func (e *SplitEditor) Has(hiddenPrefix, path string) bool

func (*SplitEditor) MouseUp Uses

func (e *SplitEditor) MouseUp(event gxui.MouseEvent)

func (*SplitEditor) NextEditor Uses

func (e *SplitEditor) NextEditor(direction Direction) input.Editor

func (*SplitEditor) Open Uses

func (e *SplitEditor) Open(hiddenPrefix, path, headerText string, environ []string) (editor input.Editor, existed bool)

func (*SplitEditor) ReFocus Uses

func (e *SplitEditor) ReFocus()

func (*SplitEditor) SaveAll Uses

func (e *SplitEditor) SaveAll()

func (*SplitEditor) SetOrientation Uses

func (e *SplitEditor) SetOrientation(o gxui.Orientation)

func (*SplitEditor) Split Uses

func (e *SplitEditor) Split(orientation gxui.Orientation)

type Splitter Uses

type Splitter interface {
    Split(orientation gxui.Orientation)
}

type SplitterBar Uses

type SplitterBar struct {
    mixins.SplitterBar
    // contains filtered or unexported fields
}

func NewSplitterBar Uses

func NewSplitterBar(viewport gxui.Viewport, theme gxui.Theme) *SplitterBar

func (*SplitterBar) MouseEnter Uses

func (s *SplitterBar) MouseEnter(gxui.MouseEvent)

func (*SplitterBar) MouseExit Uses

func (s *SplitterBar) MouseExit(gxui.MouseEvent)

func (*SplitterBar) SetOrientation Uses

func (s *SplitterBar) SetOrientation(o gxui.Orientation)

type TabbedEditor Uses

type TabbedEditor struct {
    mixins.PanelHolder
    // contains filtered or unexported fields
}

func NewTabbedEditor Uses

func NewTabbedEditor(driver gxui.Driver, cmdr Commander, theme *basic.Theme, syntaxTheme theme.Theme, font gxui.Font) *TabbedEditor

func (*TabbedEditor) Add Uses

func (e *TabbedEditor) Add(name string, editor input.Editor)

func (*TabbedEditor) AddPanelAt Uses

func (e *TabbedEditor) AddPanelAt(c gxui.Control, n string, i int)

func (*TabbedEditor) CloseCurrentEditor Uses

func (e *TabbedEditor) CloseCurrentEditor() (name string, editor input.Editor)

func (*TabbedEditor) CreatePanelTab Uses

func (e *TabbedEditor) CreatePanelTab() mixins.PanelTab

func (*TabbedEditor) CurrentEditor Uses

func (e *TabbedEditor) CurrentEditor() input.Editor

func (*TabbedEditor) CurrentFile Uses

func (e *TabbedEditor) CurrentFile() string

func (*TabbedEditor) EditorAt Uses

func (e *TabbedEditor) EditorAt(d Direction) input.Editor

func (*TabbedEditor) Editors Uses

func (e *TabbedEditor) Editors() uint

func (*TabbedEditor) Elements Uses

func (e *TabbedEditor) Elements() []interface{}

func (*TabbedEditor) Files Uses

func (e *TabbedEditor) Files() []string

func (*TabbedEditor) Has Uses

func (e *TabbedEditor) Has(hiddenPrefix, path string) bool

func (*TabbedEditor) Init Uses

func (e *TabbedEditor) Init(outer mixins.PanelHolderOuter, driver gxui.Driver, cmdr Commander, theme *basic.Theme, syntaxTheme theme.Theme, font gxui.Font)

func (*TabbedEditor) Open Uses

func (e *TabbedEditor) Open(hiddenPrefix, path, headerText string, environ []string) (editor input.Editor, existed bool)

func (*TabbedEditor) RemovePanel Uses

func (e *TabbedEditor) RemovePanel(panel gxui.Control)

func (*TabbedEditor) SaveAll Uses

func (e *TabbedEditor) SaveAll()

Package editor imports 21 packages (graph) and is imported by 4 packages. Updated 2020-01-22. Refresh now. Tools for package owners.