A no_std graphics library for embedded applications
const
:
MonoFontStyleBuilder::font
MonoFontStyleBuilder::underline
MonoFontStyleBuilder::strikethrough
MonoFontStyleBuilder::reset_text_color
MonoFontStyleBuilder::reset_background_color
MonoFontStyleBuilder::reset_underline
MonoFontStyleBuilder::reset_strikethrough
MonoTextStyle::new
GetPixel
trait.Rgb666
and Bgr666
.Rgb666
and Bgr666
conversions.AnchorX
, AnchorY
, AnchorPoint::x
, AnchorPoint::y
and AnchorPoint::from_xy
.Rectangle::resized_width
, Rectangle::resized_height
, Rectangle::anchor_x
and Rectangle::anchor_y
.defmt
).GetPixel
trait and implementations for ImageRaw
and Framebuffer
.Rgb666
and Bgr666
color type support.Line::with_delta
constructor.Rgb666
and Bgr666
conversions.Framebuffer
.Image::with_center
.AnchorX
, AnchorY
, AnchorPoint::x
, AnchorPoint::y
and AnchorPoint::from_xy
.Rectangle::resized_width
, Rectangle::resized_height
, Rectangle::anchor_x
and Rectangle::anchor_y
.RawU18
color storage type and use RawU24
in is place for Rgb666
and Bgr666
.const
:ImageRaw::new_binary
const
helper method. ImageRaw::new
can now be used in const
contexts, so use it instead of new_binary
.const
:
Point::component_mul
Point::component_div
Size::saturating_add
Size::saturating_sub
Size::component_mul
Size::component_div
BinaryColor::invert
BinaryColor::is_on
BinaryColor::is_off
Rectangle::with_center
Rectangle::is_zero_sized
RawDataSlice::new
MonoTextStyle::new
Arc::with_center
Arc::from_circle
Arc::to_circle
Circle::with_center
Ellipse::with_center
Sector::with_center
Sector::from_circle
Sector::to_circle
Styled::new
ImageRaw::new
ImageRaw::data_width
Image::new
FancyDisplay::new
MockDisplay::get_pixel
MonoFont::mime
MonoFont::glyph_mapping
MonoTextStyleBuilder::new
MonoTextStyleBuilder::text_color
MonoTextStyleBuilder::background_color
MonoTextStyleBuilder::underline_with_color
MonoTextStyleBuilder::strikethrough_with_color
MonoTextStyleBuilder::build
Ellipse::new
Ellipse::contains
PrimitiveStyle::new
PrimitiveStyle::with_stroke
PrimitiveStyle::with_fill
PrimitiveStyle::is_transparent
PrimitiveStyleBuilder::new
PrimitiveStyleBuilder::fill_color
PrimitiveStyleBuilder::reset_fill_color
PrimitiveStyleBuilder::stroke_color
PrimitiveStyleBuilder::reset_stroke_color
PrimitiveStyleBuilder::stroke_width
PrimitiveStyleBuilder::stroke_alignment
PrimitiveStyleBuilder::build
DecorationColor::is_none
DecorationColor::is_text_color
DecorationColor::is_custom
Text
.ImageRaw::new
no longer panics if width == 0
.MonoFont
is now Send + Sync
; implementations of GlyphMapping
must be Sync
.Please see the release notes and migration guide for more details on the full 0.7.0 release.
core::fmt::Display
for Point
and Size
.Mapping::all
to Mapping::iter
.MockDisplay::eq
was replaced by a PartialEq
implementation for MockDisplay
.From<&TextStyle>
impl for TextStyleBuilder
and From<&MonoFont>
for MonoFontBuilder
.From
trait to convert from RGB colors to grayscale colors, between different grayscale colors and from grayscale and RGB colors to BinaryColor
.MonoFont
s, supporting more languages. The latin1
subset was renamed to iso8859-1
.Output
associated type to Drawable
to allow returning non-()
values from drawing operations.is_none
, is_text_color
and is_custom
methods to DecorationColor
.is_transparent
methods to PrimitiveStyle
and MonoTextStyle
.line_height
field to TextStyle
.MockDisplay::set_pixels
to set pixels from an iterator.ImageRaw::new_binary
to create const
images with binary image data.MonoTextStyleBuilder
and PrimitiveStyleBuilder
.StyledDrawable
, StyledDimensions
and StyledPixels
traits.HorizontalAlignment
and VerticalAlignment
to Alignment
and Baseline
.TextRenderer::vertical_offset
by baseline
arguments for the other TextRenderer
methods.Dimensions
implementations for styled primitives no longer depend on the fill and stroke color.stroke_color == None && stroke_width > 0
) will now reduce the filled area.Drawable::Output
type was changed to Point
for styled Text
objects. The returned point can be used to chain texts with different styles.text::renderer
submodule.non_exhaustive
attribute was added to the TextStyle
struct.MockDisplay::from_points
to make it usable for all color types.height
argument from ImageRaw::new
. The height
is now calculated based on the width and data length.pixelcolor::raw::RawDataIter
by the types in the iterator::raw
module.MonoFont
from a trait to a struct.Text
to directly contain the styling information without needing a Styled
wrapper.character_style
from TextStyle
. Character and text style can now be set independently in the Text
object.Styled
from the crate root to the primitives
module.iterator::IntoPixels
trait. Use Styled::pixels
instead.Rectangle::points
did return a non empty iterator for rectangles with zero width.Output
associated type to Drawable
to allow returning non-()
values from drawing operations.is_none
, is_text_color
and is_custom
methods to DecorationColor
.pixelcolor::raw::RawDataIter
into embedded-graphics
crate.Rectangle::points
did return a non empty iterator for rectangles with zero width.