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
- Click
Event - This struct represents the information about a click event, passed to a
click handler function of a
Canvas
. - Text
Shape Predicate - This struct represents an unfinished
egui::epaint::TextShape
.
Traits§
- Shape
Predicate - 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§
- Click
Handler - A type alias representing the closure for handling clicks
- Shape
Map - A type alias representing the inner map of shapes in the
Canvas