Header menu logo issie

DragGhost Type

What a catalogue drag draws following the cursor.

Union cases

Union case Description

GhostBox string

Full Usage: GhostBox string

Parameters:
    Item : string

A named box, for a library component whose sheet would not read. The placement will fail too, and say why; this keeps the gesture working rather than leaving nothing to carry.

Item : string

GhostSymbol(ComponentType, Clocked)

Full Usage: GhostSymbol(ComponentType, Clocked)

Parameters:

The symbol itself, drawn by the draw block's own renderer at the component's default parameters. What the user is carrying looks like what they will get. `Clocked` is carried rather than worked out from the type because CommonTypes.isClocked answers for a custom component by finding its sheet among the project's LoadedComponents, and a library component's sheet is not in the project until it is dropped. Everything placed from the project leaves it false and is answered from the model as before; a library component answers it from the sheet read when the drag began, so the clock mark is on the ghost of a clocked component rather than appearing only once it lands.

Item1 : ComponentType
Clocked : bool

Instance members

Instance member Description

this.IsGhostBox

Full Usage: this.IsGhostBox

Returns: bool
Returns: bool

this.IsGhostSymbol

Full Usage: this.IsGhostSymbol

Returns: bool
Returns: bool

Type something to start searching.