zng/
checkerboard.rs

1#![cfg(feature = "checkerboard")]
2
3//! Checkerboard visual widget.
4//!
5//! The widget appearance can be configured on it or in any parent widget, by default it looks like
6//! the transparency checkerboard.
7//!
8//! ```
9//! use zng::prelude::*;
10//!
11//! # let _scope = APP.defaults();
12//! zng::image::IMAGES.limits().modify(|l| {
13//!     l.to_mut().allow_uri = zng::image::UriFilter::AllowAll;
14//! });
15//!
16//! # let _ =
17//! Image! {
18//!     widget::background = zng::checkerboard::Checkerboard!();
19//!     source = "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png";
20//! }
21//! # ;
22//! ```
23//!
24//! # Full API
25//!
26//! See [`zng_wgt_checkerboard`] for the full widget API.
27
28pub use zng_wgt_checkerboard::{Checkerboard, Colors, cb_origin, cb_size, colors};