|
Operator SDK
Build MIDI processing and UI modes for the Operator device
|
Screen drawing primitives for mode UIs: rectangles, text, and bitmaps. More...
Functions | |
| void | draw_rect (int x, int y, int w, int h) |
| Draw a 1px rectangle outline. | |
| void | fill_rect (int x, int y, int w, int h, bool on) |
| Fill or clear a rectangle. | |
| void | draw_text (int x, int y, const char *text) |
| Draw a NUL-terminated string in the standard 5x7 font. | |
| void | draw_text_large (int x, int y, const char *text) |
| Draw a NUL-terminated string in the large 8x12 font. | |
| void | draw_bitmap (int x, int y, const uint8_t *data, int w, int h) |
| Blit a 1bpp bitmap. | |
| void | set_pixel (int x, int y, bool on) |
| Plot or clear a single pixel. | |
Screen drawing primitives for mode UIs: rectangles, text, and bitmaps.
|
inline |
Blit a 1bpp bitmap.
Forwards to op::api->draw_bitmap.
| x | Left edge in pixels. |
| y | Top edge in pixels. |
| data | Page-addressed 1-bit pixel data. |
| w | Bitmap width in pixels. |
| h | Bitmap height in pixels. |
|
inline |
|
inline |
|
inline |
Draw a NUL-terminated string in the large 8x12 font.
Forwards to op::api->draw_text_large.
| x | Left edge of the first glyph in pixels. |
| y | Top edge in pixels. |
| text | NUL-terminated string to draw. |
|
inline |