28 lines
672 B
C
28 lines
672 B
C
/**
|
|
* Copyright (c) 2024 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "display/frame.h"
|
|
|
|
/**
|
|
* Draws a UI box to the frame buffer.
|
|
*
|
|
* @param x The x position to draw the border.
|
|
* @param y The y position to draw the border.
|
|
* @param width The width of the border.
|
|
* @param height The height of the border.
|
|
* @param color The color to draw the border.
|
|
* @param fill Whether or not to fill the inside of the border.
|
|
*/
|
|
void drawUIBox(
|
|
const uint16_t x,
|
|
const uint16_t y,
|
|
const uint16_t width,
|
|
const uint16_t height,
|
|
const uint8_t color,
|
|
const bool_t fill
|
|
); |