Skip to content

package editor_events

import "kaiju/editor/editor_events"

Types

EditorEvents

struct

type EditorEvents struct {
    // OnContentAdded sends the id of the content that was renamed
    OnContentRenamed events.EventWithArg[string]

    // OnContentAdded sends list of content ids that have been added
    OnContentAdded events.EventWithArg[[]string]

    // OnContentRemoved sends list of content ids that have been removed
    OnContentRemoved events.EventWithArg[[]string]

    // OnFocusContent is raised when a content should be focused wherever we
    // are in the UI. This was created for the stage right-click context menu
    // to be able to focus content in the content workspace, but it could be
    // used in other ways as needed.
    OnFocusContent events.EventWithArg[string]
}