egui_canvas 0.1.2

A TKinter-like canvas widget for egui.
Documentation
//! 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.

mod holder;
mod widget;
#[cfg(feature = "click")]
mod event;
mod predicate;
mod text;

const LOCK_ERR_MSG: &str = "Something panicked with a mutex locked";

#[doc(no_inline)]
pub use egui::{Shape, Response};
#[cfg(feature = "click")]
#[doc(no_inline)]
pub use egui::PointerButton;

pub use self::{
    holder::{Canvas, ShapeMap},
    text::TextShapePredicate,
    predicate::ShapePredicate
};
#[cfg(feature = "click")]
pub use self::{event::ClickEvent, holder::ClickHandler};