filedrop

command
v0.1.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Example: gogpu/ui — File Drop Demo

Demonstrates OS file drag-and-drop integration with the gogpu/ui widget toolkit. Files dragged from Explorer/Finder/Nautilus are received through the dnd.Manager and displayed as a reactive list.

Key concepts shown:

  • dnd.DropTarget registration with hit-testing bounds
  • dnd.KindFile + dnd.FilePayload for OS file drops
  • state.Signal for reactive UI updates
  • primitives.TextFn for computed text display

Architecture:

OS file drop → gogpu.OnDragDrop → desktop.Run bridge → dnd.Manager
→ DropTarget.Drop → Signal update → reactive text display

Rendering: event-driven (default since gogpu v0.43.0). 0% CPU when idle. Redraws only on user interaction or file drop.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL