Crate egui_canvas

Source
Expand description

This crate implements a Canvas struct, which implements egui::Widget trait while aiming to be as similar to TKinter (python) Canvas widget.

In practise, this means it is an global state holder for egui::Shape objects and a click handler closure.

Re-exports§

pub use egui::Shape;
pub use egui::Response;
pub use egui::PointerButton;

Structs§

Canvas
Main global state holder struct
ClickEvent
This struct represents the information about a click event, passed to a click handler function of a Canvas.
TextShapePredicate
This struct represents an unfinished egui::epaint::TextShape.

Traits§

ShapePredicate
This trait marks a struct/enum as something that can be finalised into a shape (but may need the current egui::Ui object to do so).

Type Aliases§

ClickHandler
A type alias representing the closure for handling clicks
ShapeMap
A type alias representing the inner map of shapes in the Canvas