util.h 611 B

123456789101112131415161718192021
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <QFont>
  6. #include <QString>
  7. /// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
  8. QFont GetMonospaceFont();
  9. /// Convert a size in bytes into a readable format (KiB, MiB, etc.)
  10. QString ReadableByteSize(qulonglong size);
  11. /**
  12. * Creates a circle pixmap from a specified color
  13. * @param color The color the pixmap shall have
  14. * @return QPixmap circle pixmap
  15. */
  16. QPixmap CreateCirclePixmapFromColor(const QColor& color);