workbench

package
v0.1.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 89 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mod

type Mod struct {
	// contains filtered or unexported fields
}

func (*Mod) Destroy

func (m *Mod) Destroy(c *module.Context) error

func (*Mod) Enter

func (m *Mod) Enter(c *module.Context, _ module.SceneStartup) error

func (*Mod) Install

func (m *Mod) Install(c *module.Context) error

func (*Mod) OnMessage

func (m *Mod) OnMessage(c *module.Context, message module.Message) error

func (*Mod) OnOpenProject

func (m *Mod) OnOpenProject(c *module.Context, value string) error

func (*Mod) Resume

func (m *Mod) Resume(c *module.Context, v module.SceneStartup) error

func (*Mod) Update

func (m *Mod) Update(c *module.Context, _ module.Tick) error

type Session

type Session struct {

	// Actions accepts native registrations before or after the session starts.
	Actions actions.Registry
	Output  output.Store
	// contains filtered or unexported fields
}

Session keeps the foreground model available while preloaded views own their HTML, editor entities and resource readers independently.

func NewSession

func NewSession(backend *client.Client) *Session

func (*Session) Close

func (s *Session) Close()

func (*Session) ConfigureConnection

func (s *Session) ConfigureConnection(dial func(context.Context, connection.Profile, func(string)) (*client.Client, error), initial connection.Profile)

ConfigureConnection enables the shared local/remote lifecycle. Tests may inject a dial function without spawning an editor or using an external host.

func (*Session) ConfigureWindows

func (s *Session) ConfigureWindows(id string, restore bool) ([]string, error)

ConfigureWindows claims this window's record and returns the additional window IDs to launch on a cold application start.

func (*Session) FinishUpdate

func (s *Session) FinishUpdate() error

FinishUpdate is called after the UI and backend have released their resources.

func (*Session) HandleFileDrop

func (s *Session) HandleFileDrop(dispatch *input.Dispatch)

HandleFileDrop consumes external files before ordinary editor input.

func (*Session) LayoutSystem

func (s *Session) LayoutSystem() ecs.SystemConfig

LayoutSystem aligns decorations with the final native textarea scroll and HTML bounds in the same frame, including when the next frame is far away.

func (*Session) OpenPaths

func (s *Session) OpenPaths(paths ...string)

OpenPaths queues native drops, shell arguments and Finder document events. Call on the window thread; inputs received before the first scene are retained.

func (*Session) OpenWindow

func (s *Session) OpenWindow(paths []string) error

func (*Session) ProfilingSystem

func (s *Session) ProfilingSystem(recorder *profiling.Recorder) ecs.SystemConfig

ProfilingSystem samples renderer-owned state on the application thread. It never requests a frame: idle observations retain their original timestamp.

func (*Session) Register

func (s *Session) Register(registry *module.Registry) error

func (*Session) RestoredWindowSize

func (s *Session) RestoredWindowSize() (int, int)

func (*Session) ScrollSystem

func (s *Session) ScrollSystem() ecs.SystemConfig

ScrollSystem synchronizes comparison panes after wheel/drag input and before HTML culling and native control layout consume their scroll positions.

func (*Session) SetWindowOpener

func (s *Session) SetWindowOpener(open func([]string, connection.Profile) error)

SetWindowOpener connects requests to the owning desktop application. The callback queues creation outside the current window's rendering frame.

Source Files

Jump to

Keyboard shortcuts

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