|new 0.3.1||May 3, 2021|
|0.3.0||Apr 19, 2021|
|0.2.0||Feb 3, 2021|
|0.1.1||Dec 7, 2020|
|0.1.0||Nov 29, 2020|
#527 in Embedded development
620 downloads per month
embedded-graphics-core contains the core components of embedded-graphics that are required to add embedded-graphics support to display drivers, image libraries, text renderers and other third party crates.
This crate should only be used by crates that extend embedded-graphics. Applications should instead depend on embedded-graphics itself.
Like any other crate, embedded-graphics-core will change over time, however it will change at a much slower rate than embedded-graphics itself, and will likely release fewer breaking changes. This will provide more stability and compatability for the weider embedded-graphics ecosystem, whilst allowing non-core features of embedded-graphics to evolve at a faster pace. The same version of embedded-graphics-core may be used for multiple major versions of embedded-graphics.
DrawTarget- By implementing a draw target for a display driver, all embedded-graphics drawables can be drawn to that display.
Drawable- This trait can be implemented to make an object drawable to any
DrawTarget. Examples include shapes, text, UI elements, etc.
- Color types - see below.
- Geometry -
Rectangleprovide ways of defining positions, dimensions and rectangular areas respectively.
ImageDrawable trait should be implemented for any image or image-like item, for example
The minimum supported Rust version for embedded-graphics-core is
1.40.0 or greater.
Ensure you have the correct version of Rust installed, preferably through https://rustup.rs.
Please see the development setup guide.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.