Reusable style specification for line drawing.
Reusable style specification for line drawing.Encapsulates color, width, and style for drawing lines. Can be applied to LineBuilder via with_style().
LineStyleSpec thick_black{Color::Black, DotPixel::Pixel3x3, LineStyle::Solid};
display.draw(display.line().from({10, 10}).to({100, 10}).with_style(thick_black).build());
#pragma once
struct LineStyleSpec {
};
struct ShapeStyleSpec {
};
struct TextStyleSpec {
};
}
Bitmap font rendering for e-paper displays.
DrawFill
Definition types.hpp:151
@ Empty
Draw outline only (border with no fill)
DotPixel
Definition types.hpp:92
@ Pixel1x1
Single pixel (finest resolution)
Color
Definition types.hpp:32
LineStyle
Definition types.hpp:120
@ Solid
Continuous solid line.
DotPixel width
Line width.
Definition styles.hpp:70
Color color
Line color.
Definition styles.hpp:69
LineStyle style
Line style (solid/dotted)
Definition styles.hpp:71
Color color
Shape color.
Definition styles.hpp:97
DotPixel border_width
Border width.
Definition styles.hpp:98
DrawFill fill
Fill mode (empty/full)
Definition styles.hpp:99
Color background
Background color.
Definition styles.hpp:127
Color foreground
Foreground (text) color.
Definition styles.hpp:126
const Font * font
Font to use for rendering.
Definition styles.hpp:125