Skip to content

package tab_container

import "kaiju/editor/ui/tab_container"

Constants

SnapCenter

Snap("center")

SnapLeft

Snap("left")

SnapTop

Snap("top")

SnapRight

Snap("right")

SnapBottom

Snap("bottom")

Types

Snap

string

type Snap = string

TabContainer

struct

type TabContainer struct {
    Tabs []TabContainerTab
    Snap string

    // Has unexported fields.
}

New

func New(host *engine.Host, uiMan *ui.Manager, tabs []TabContainerTab, snap string) *TabContainer

NewWindow

func NewWindow(title string, x, y int, tabs []TabContainerTab, logStream *logging.LogStream) *TabContainer

TabContainer.DragUpdate

func (t *TabContainer) DragUpdate()

TabContainer.Hide

func (t *TabContainer) Hide()

TabContainer.ReloadTabs

func (t *TabContainer) ReloadTabs(name string, forceOpen bool) bool

TabContainer.Show

func (t *TabContainer) Show()

TabContainer.Toggle

func (t *TabContainer) Toggle()

TabContainerTab

struct

type TabContainerTab struct {
    Id    string
    Label string

    // Has unexported fields.
}

NewTab

func NewTab(content TabContent) TabContainerTab

TabContainerTab.Destroy

func (t *TabContainerTab) Destroy()

TabContainerTab.DragUpdate

func (t *TabContainerTab) DragUpdate()

TabContainerTab.Reload

func (t *TabContainerTab) Reload(uiMan *ui.Manager, root *document.Element)

TabContent

interface

type TabContent interface {
    TabTitle() string
    Document() *document.Document
    Reload(uiMan *ui.Manager, root *document.Element)
    Destroy()
}