|
| | Display (DriverT driver, DisplayMode mode, Orientation orientation=Orientation::Portrait0, bool auto_sleep=true) |
| |
| | Display (const Display &)=delete |
| |
| auto | operator= (const Display &) -> Display &=delete |
| |
| | Display (Display &&) noexcept=default |
| |
| auto | operator= (Display &&) noexcept -> Display &=default |
| |
| | ~Display ()=default |
| |
| auto | width () const noexcept -> std::size_t |
| |
| auto | height () const noexcept -> std::size_t |
| |
| auto | effective_width () const noexcept -> std::size_t |
| |
| auto | effective_height () const noexcept -> std::size_t |
| |
| auto | mode () const noexcept -> DisplayMode |
| |
| auto | orientation () const noexcept -> Orientation |
| |
| auto | auto_sleep_enabled () const noexcept -> bool |
| |
| auto | set_auto_sleep (bool enabled) noexcept -> void |
| |
| auto | is_color () const noexcept -> bool |
| |
| auto | get_num_planes () const noexcept -> std::size_t |
| |
| auto | available_colors () const -> std::vector< Color > |
| |
| auto | set_pixel (std::size_t x, std::size_t y, Color color) -> void |
| |
| auto | get_pixel (std::size_t x, std::size_t y) const -> Color |
| |
| auto | clear (Color color=Color::White) -> void |
| |
| auto | line () -> LineBuilder |
| |
| auto | rectangle () -> RectangleBuilder |
| |
| auto | circle () -> CircleBuilder |
| |
| auto | point () -> PointBuilder |
| |
| auto | text (std::string_view content="") -> TextBuilder |
| |
| auto | draw (const LineCommand &cmd) -> void |
| |
| auto | draw (const RectangleCommand &cmd) -> void |
| |
| auto | draw (const CircleCommand &cmd) -> void |
| |
| auto | draw (const PointCommand &cmd) -> void |
| |
| auto | draw (const TextCommand &cmd) -> void |
| |
| auto | draw_bitmap (std::size_t x, std::size_t y, std::span< const std::uint8_t > data, std::size_t w, std::size_t h, std::size_t target_w=0, std::size_t target_h=0) -> void |
| |
| auto | draw_bitmap (std::size_t x, std::size_t y, std::span< const Color > data, std::size_t w, std::size_t h, std::size_t target_w=0, std::size_t target_h=0) -> void |
| |
| template<typename T > |
| auto | draw_bitmap (std::size_t x, std::size_t y, const std::vector< T > &data, std::size_t w, std::size_t h, std::size_t target_w=0, std::size_t target_h=0) -> void |
| |
| auto | draw_bitmap_from_file (std::size_t x, std::size_t y, std::string_view file_path, std::size_t target_width=0, std::size_t target_height=0) -> std::expected< void, Error > |
| |
| auto | save_framebuffer_to_png (std::string_view filename) const -> std::expected< void, Error > |
| |
| auto | refresh () -> std::expected< void, Error > |
| | Refresh the display by transferring framebuffer to hardware.
|
| |
| auto | sleep () -> std::expected< void, Error > |
| |
| auto | wake () -> std::expected< void, Error > |
| |
| auto | power_off () -> std::expected< void, Error > |
| |
| auto | power_on () -> std::expected< void, Error > |
| |
| auto | supports_wake () const noexcept -> bool |
| |
| auto | supports_power_control () const noexcept -> bool |
| |
| auto | driver () -> DriverT & |
| |
| auto | driver () const -> const DriverT & |
| |
| auto | framebuffer () -> FramebufferT & |
| |
| auto | framebuffer () const -> const FramebufferT & |
| |