controller

package
v0.0.0-...-bbcbdef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(driver gxui.Driver, theme *basic.Theme) *Controller

func (*Controller) Editor

func (c *Controller) Editor() MultiEditor

Editor returns c's Editor instance.

func (*Controller) Elements

func (c *Controller) Elements() []interface{}

func (*Controller) Init

func (c *Controller) Init(driver gxui.Driver, theme *basic.Theme)

func (*Controller) Navigator

func (c *Controller) Navigator() Navigator

Navigator returns c's Navigator instance.

func (*Controller) SetEditor

func (c *Controller) SetEditor(editor MultiEditor)

SetEditor sets c's Editor instance.

func (*Controller) SetNavigator

func (c *Controller) SetNavigator(navigator Navigator)

SetNavigator sets c's Navigator instance.

type MultiEditor

type MultiEditor interface {
	gxui.Control
	CurrentFile() string
	CurrentEditor() text.Editor
	Open(path string) (editor text.Editor, existed bool)
}
type Navigator interface {
	gxui.Control
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL