#pragma once

#include <cstddef>
#include <cstdint>

class GfxRenderer;

class ScreenComponents {
 public:
  static void drawBattery(const GfxRenderer& renderer, int left, int top, bool showPercentage = true);

  /**
   * Draw a progress bar with percentage text.
   * @param renderer The graphics renderer
   * @param x Left position of the bar
   * @param y Top position of the bar
   * @param width Width of the bar
   * @param height Height of the bar
   * @param current Current progress value
   * @param total Total value for 100% progress
   */
  static void drawProgressBar(const GfxRenderer& renderer, int x, int y, int width, int height, size_t current,
                              size_t total);
};
