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