Tools¶
Tools are used to interact with the view.
Each tool is basically a function that produces a Gtk.EventController. The event controllers are already configured.
- gaphas.tool.hover_tool() gi.repository.Gtk.EventController [source]¶
Highlight the currently hovered item.
- gaphas.tool.item_tool() gi.repository.Gtk.GestureDrag [source]¶
Handle item movement and movement of handles.
- gaphas.tool.placement_tool(factory: Callable[[], Item], handle_index: int) gi.repository.Gtk.GestureDrag [source]¶
Place a new item on the model.