custosworld

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustosContext

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

type CustosWorldApp

type CustosWorldApp struct {
	Headless bool // Mode for troubleshooting.
	Titlebar bool // With a title bar

	Title          string
	Icon           *fyne.StaticResource
	MainWindowSize fyne.Size

	HeadsupFyneContext *CustosContext
	MainWin            fyne.Window

	DetailedElements             []*mashupsdk.MashupDetailedElement
	MashupDetailedElementLibrary map[int64]*mashupsdk.MashupDetailedElement
	ElementLoaderIndex           map[string]int64 // mashup indexes by Name
	FyneWidgetElements           map[string]*FyneWidgetBundle
	TabItemMenu                  *container.AppTabs
	CustomTabItems               map[string]func(custosWorlApp *CustosWorldApp, id string) *container.TabItem
	CustomTabItemRenderer        map[string]ITabItemRenderer
	CustosRenderer               ICustosRenderer
	// contains filtered or unexported fields
}
var CUWorldApp *CustosWorldApp

func NewCustosWorldApp

func NewCustosWorldApp(headless bool,
	titlebar bool,
	detailedElements []*mashupsdk.MashupDetailedElement,
	renderer ICustosRenderer) *CustosWorldApp

func (*CustosWorldApp) DetailFyneComponent

func (custosWorldApp *CustosWorldApp) DetailFyneComponent(de *mashupsdk.MashupDetailedElement, tabItemFunc func(custosWorlApp *CustosWorldApp, id string) *container.TabItem)

func (*CustosWorldApp) DetailMappedFyneComponent

func (custosWorldApp *CustosWorldApp) DetailMappedFyneComponent(id, description string, genre string, renderer string, tabItemFunc func(custosWorlApp *CustosWorldApp, id string) *container.TabItem)

func (*CustosWorldApp) InitMainWindow

func (w *CustosWorldApp) InitMainWindow()

func (*CustosWorldApp) InitServer

func (w *CustosWorldApp) InitServer(callerCreds string, insecure bool, maxMessageLength int)

func (*CustosWorldApp) ResetChangeStates

func (w *CustosWorldApp) ResetChangeStates() []*mashupsdk.MashupElementState

type FyneWidgetBundle

type FyneWidgetBundle struct {
	mashupsdk.GuiWidgetBundle
}

func (*FyneWidgetBundle) OnStatusChanged

func (fwb *FyneWidgetBundle) OnStatusChanged()

type ICustosRenderer

type ICustosRenderer interface {
	OnSelected(tabItem *container.TabItem)
}

type ITabItemRenderer

type ITabItemRenderer interface {
	GetPriority() int64
	BuildTabItem(id int64, concreteElement *mashupsdk.MashupDetailedElement)
	PreRender() // Called at end of all tab item renders.
	RenderTabItem(concreteElement *mashupsdk.MashupDetailedElement)
	Refresh() // Called at end of all tab item renders.
}

type InitEvent

type InitEvent struct {
}

Jump to

Keyboard shortcuts

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