| 
									
										
										
										
											2015-08-19 17:00:56 -03:00
										 |  |  | // Copyright 2015 Citra Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2 or any later version
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-25 23:06:43 -04:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-19 17:00:56 -03:00
										 |  |  | #include <QFont>
 | 
					
						
							| 
									
										
										
										
											2015-08-31 21:35:33 -07:00
										 |  |  | #include <QString>
 | 
					
						
							| 
									
										
										
										
											2015-08-19 17:00:56 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
 | 
					
						
							|  |  |  | QFont GetMonospaceFont(); | 
					
						
							| 
									
										
										
										
											2015-08-31 21:35:33 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | /// Convert a size in bytes into a readable format (KiB, MiB, etc.)
 | 
					
						
							|  |  |  | QString ReadableByteSize(qulonglong size); | 
					
						
							| 
									
										
										
										
											2018-08-29 15:42:53 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * Creates a circle pixmap from a specified color | 
					
						
							|  |  |  |  * @param color The color the pixmap shall have | 
					
						
							|  |  |  |  * @return QPixmap circle pixmap | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | QPixmap CreateCirclePixmapFromColor(const QColor& color); |