CanvasMenu

data class CanvasMenu<Scope : CanvasMenu.Scope>(val scope: Scope, val id: EditorComponentId, val modifier: Modifier, val visible: Boolean, val enterTransition: EnterTransition, val exitTransition: ExitTransition, val decoration: ScopedDecoration<Scope>, val listBuilder: HorizontalListBuilder<EditorComponent<*>>, val itemDecoration: ScopedDecoration<Scope>) : EditorComponent<Scope>

A component for rendering the canvas menu next to a design block when it is selected. Use CanvasMenu.Companion.remember composable function to create an instance of this class. Check AbstractCanvasMenuBuilder and its superclasses to see what each property does.

Constructors

Link copied to clipboard
constructor(scope: Scope, id: EditorComponentId, modifier: Modifier, visible: Boolean, enterTransition: EnterTransition, exitTransition: ExitTransition, decoration: ScopedDecoration<Scope>, listBuilder: HorizontalListBuilder<EditorComponent<*>>, itemDecoration: ScopedDecoration<Scope>)

Types

Link copied to clipboard
object Button
Link copied to clipboard

Builder class of Button component inside the CanvasMenu.

Link copied to clipboard
object Companion
Link copied to clipboard
object Divider
Link copied to clipboard

Builder class of Divider component inside the CanvasMenu.

Link copied to clipboard
open class ItemScope(parentScope: EditorScope) : EditorScope

Scope of the items inside the CanvasMenu.

Link copied to clipboard
Link copied to clipboard
open class Scope(parentScope: EditorScope, selection: Selection?) : EditorScope

Scope of the CanvasMenu component.

Properties

Link copied to clipboard
open override val decoration: ScopedDecoration<Scope>
Link copied to clipboard
open override val enterTransition: EnterTransition
Link copied to clipboard
open override val exitTransition: ExitTransition
Link copied to clipboard
open override val id: EditorComponentId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val modifier: Modifier
Link copied to clipboard
open override val scope: Scope
Link copied to clipboard
open override val visible: Boolean