MingaEditor.FileTree.DropIntent (Minga v0.1.0)

Copy Markdown View Source

BEAM-owned file-tree drop intent sent by native GUI frontends.

The frontend reports what the user tried to do. The BEAM validates the target row against current file-tree state and performs the filesystem operation.

Summary

Functions

Constructs a drop intent from decoded GUI protocol fields.

Types

t()

@type t() :: %MingaEditor.FileTree.DropIntent{
  modifiers: non_neg_integer(),
  source_paths: [String.t()],
  target_dir?: boolean(),
  target_id: String.t(),
  target_index: non_neg_integer(),
  target_path: String.t(),
  target_path_hash: non_neg_integer()
}

Functions

new(attrs)

@spec new(keyword()) :: t()

Constructs a drop intent from decoded GUI protocol fields.