import "kaiju/editor/ui/context_menu"
Types
struct
type ContextMenu struct {
// Has unexported fields.
}
New
func New(container *host_container.Container, uiMan *ui.Manager) *ContextMenu
func (c *ContextMenu) Hide()
func (c *ContextMenu) Show(entries []ContextMenuEntry)
struct
type ContextMenuEntry struct {
Id string
Label string
OnClick func()
}
struct
type ContextMenuSet struct {
Entries []ContextMenuEntry
// Has unexported fields.
}
NewSet
func NewSet(ctxMenu *ContextMenu, entries []ContextMenuEntry) ContextMenuSet
func (s *ContextMenuSet) Show()
func (s *ContextMenuSet) ShowWithTarget(target any)