Documentation ¶
Index ¶
- func BindDraggable(dg MainDraggable, icon string, fn Swapper, draggers ...Draggable)
- func BindFileDest(dg Draggable, file func(path []string))
- func Find(w primitives.Container, id string) int
- func NewTargetEntry(target string, f gtk.TargetFlags, info uint) gtk.TargetEntry
- type Draggable
- type MainDraggable
- type Swapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindDraggable ¶
func BindDraggable(dg MainDraggable, icon string, fn Swapper, draggers ...Draggable)
BindDraggable binds the draggable widget and make it drag-and-droppable. The parent MUST have its own state of children and MUST NOT rely on its container states.
This function can take additional draggers, which will override the main draggable and will be the only widgets that can be dragged away. The source ID will be taken from the main draggable.
func BindFileDest ¶
func Find ¶
func Find(w primitives.Container, id string) int
Find searches the given container for the draggable widget with the given name.
func NewTargetEntry ¶
func NewTargetEntry(target string, f gtk.TargetFlags, info uint) gtk.TargetEntry
Types ¶
type Draggable ¶
type Draggable interface { DragSourceSet(gdk.ModifierType, []gtk.TargetEntry, gdk.DragAction) DragDestSet(gtk.DestDefaults, []gtk.TargetEntry, gdk.DragAction) primitives.Connector }
type MainDraggable ¶
Click to show internal directories.
Click to hide internal directories.