|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Low-level framebuffer drawing for plugins. More...
#include "plugin_manager/host_api.h"#include "plugin_manager/Plugin.h"#include "cdc_hal/IDisplay.h"#include "cdc_views/RenderHelpers.h"#include "host_str_conv.h"#include <goodisplay/gdey029T94.h>#include <string>Go to the source code of this file.
Functions | |
| void * | plg_get_active_plugin (void) |
| uint16_t | host_display_width (void) |
| Display width in pixels. | |
| uint16_t | host_display_height (void) |
| Display height in pixels. | |
| int | host_display_clear (void) |
| Clear the framebuffer to background. | |
| int | host_display_draw_pixel (int16_t x, int16_t y, uint16_t color) |
| Set a single pixel. | |
| int | host_display_draw_line (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color) |
| Draw a line between two points. | |
| int | host_display_draw_rect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| Draw a rectangle outline. | |
| int | host_display_fill_rect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
| Draw a filled rectangle. | |
| int | host_display_draw_text (int16_t x, int16_t y, const char *text, uint8_t size, uint16_t color) |
| Draw text using the default GFX font. | |
| int | host_display_flush (uint8_t refresh_mode) |
| Push the framebuffer to the panel using the given refresh mode. | |
| bool | host_display_is_busy (void) |
| True while the panel is processing a previous refresh. | |
Low-level framebuffer drawing for plugins.
Opt-in via the manifest capability "display_lowlevel". Forwards to the shared IDisplay GFX surface; call host_display_flush to push pixels to the panel. Without the capability every call returns HOST_ERR_NO_CAPABILITY.
Definition in file host_api_display.cpp.
| void * plg_get_active_plugin | ( | void | ) |
Definition at line 24 of file plugin_log_bridge.cpp.