#include <framebuffer.hpp>
|
| | MonoFramebuffer (std::size_t width, std::size_t height, DisplayMode mode) |
| | Construct a mono framebuffer.
|
| |
| auto | width () const -> std::size_t |
| | Get framebuffer width in pixels.
|
| |
| auto | height () const -> std::size_t |
| | Get framebuffer height in pixels.
|
| |
| auto | mode () const -> DisplayMode |
| | Get display mode represented by this framebuffer.
|
| |
| auto | data () const -> std::span< const std::byte > |
| | Get raw buffer as a byte span.
|
| |
| auto | get_planes () const -> std::vector< std::span< const std::byte > > |
| | Get plane spans (single plane for mono).
|
| |
| auto | set_pixel (std::size_t x, std::size_t y, Color color, Orientation orientation) -> void |
| | Set a pixel with orientation transform.
|
| |
| auto | get_pixel (std::size_t x, std::size_t y, Orientation orientation) const -> Color |
| | Get a pixel color with orientation transform.
|
| |
| auto | clear (Color color) -> void |
| | Clear the framebuffer to a color.
|
| |
◆ MonoFramebuffer()
| epaper::MonoFramebuffer::MonoFramebuffer |
( |
std::size_t |
width, |
|
|
std::size_t |
height, |
|
|
DisplayMode |
mode |
|
) |
| |
Construct a mono framebuffer.
- Parameters
-
| width | Framebuffer width in pixels |
| height | Framebuffer height in pixels |
| mode | Display mode (must be single-plane) |
◆ clear()
| auto epaper::MonoFramebuffer::clear |
( |
Color |
color | ) |
-> void |
◆ data()
| auto epaper::MonoFramebuffer::data |
( |
| ) |
const -> std::span<const std::byte> |
◆ get_pixel()
| auto epaper::MonoFramebuffer::get_pixel |
( |
std::size_t |
x, |
|
|
std::size_t |
y, |
|
|
Orientation |
orientation |
|
) |
| const -> Color |
◆ get_planes()
| auto epaper::MonoFramebuffer::get_planes |
( |
| ) |
const -> std::vector<std::span<const std::byte>> |
◆ height()
| auto epaper::MonoFramebuffer::height |
( |
| ) |
const -> std::size_t |
◆ mode()
| auto epaper::MonoFramebuffer::mode |
( |
| ) |
const -> DisplayMode |
◆ set_pixel()
| auto epaper::MonoFramebuffer::set_pixel |
( |
std::size_t |
x, |
|
|
std::size_t |
y, |
|
|
Color |
color, |
|
|
Orientation |
orientation |
|
) |
| -> void |
◆ supports_mode()
| static constexpr auto epaper::MonoFramebuffer::supports_mode |
( |
DisplayMode |
mode | ) |
-> bool |
|
inlinestaticconstexprnoexcept |
◆ width()
| auto epaper::MonoFramebuffer::width |
( |
| ) |
const -> std::size_t |
The documentation for this class was generated from the following files: