//! The [`GlPaint`] hook trait — inline GPU rendering from a widget's paint.
//!
//! Split out of `draw_ctx.rs` (which re-exports it) to keep that file inside
//! the project's file-length budget. `DrawCtx::gl_paint` takes a
//! `&mut dyn GlPaint` and calls it at the right point in painter order.
use crateRect;
/// Trait for widgets that want to render 3-D (or other GPU) content inline
/// during the widget paint pass.
///
/// `DrawCtx::gl_paint` calls this with an opaque `gl` handle — implementations
/// downcast it to `glow::Context` (or whatever GL type the platform provides).
/// The software `GfxCtx` never calls `paint`; see [`DrawCtx::gl_paint`].