#pragma once

#include <string>

class CompositorPlatform;
struct Config;
class OsdOverlay;

class KeyboardLayoutOsd {
public:
  void bindOverlay(OsdOverlay& overlay);
  void prime(const CompositorPlatform& platform);
  void onLayoutChanged(const CompositorPlatform& platform, const Config& config);

private:
  OsdOverlay* m_overlay = nullptr;
  std::string m_lastLayoutName;
  bool m_hasLayout = false;
};
