wlayout

package
v0.8.10-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LayoutActionDataType_Insert        = "insert"
	LayoutActionDataType_InsertAtIndex = "insertatindex"
	LayoutActionDataType_Remove        = "delete"
	LayoutActionDataType_ClearTree     = "clear"
)

Variables

This section is empty.

Functions

func ApplyPortableLayout

func ApplyPortableLayout(ctx context.Context, tabId string, layout PortableLayout) error

func BootstrapNewWindowLayout

func BootstrapNewWindowLayout(ctx context.Context, window *waveobj.Window) error

func BootstrapStarterLayout

func BootstrapStarterLayout(ctx context.Context) error

func GetLayoutIdForTab

func GetLayoutIdForTab(ctx context.Context, tabId string) (string, error)

func QueueLayoutAction

func QueueLayoutAction(ctx context.Context, layoutStateId string, actions ...waveobj.LayoutActionData) error

func QueueLayoutActionForTab

func QueueLayoutActionForTab(ctx context.Context, tabId string, actions ...waveobj.LayoutActionData) error

Types

type PortableLayout

type PortableLayout []struct {
	IndexArr []int             `json:"indexarr"`
	Size     *uint             `json:"size,omitempty"`
	BlockDef *waveobj.BlockDef `json:"blockdef"`
	Focused  bool              `json:"focused"`
}

func GetNewTabLayout

func GetNewTabLayout() PortableLayout

func GetStarterLayout

func GetStarterLayout() PortableLayout

Jump to

Keyboard shortcuts

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