mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:42:44 +00:00 
			
		
		
		
	 8ba47facf6
			
		
	
	
		8ba47facf6
		
	
	
	
	
		
			
			This role allows you to specify a custom opacity for icon painting. Note that the opacity is not in effect when the item is either selected and/or hovered.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| namespace GUI {
 | |
| 
 | |
| enum class ModelRole {
 | |
|     Display,
 | |
|     Sort,
 | |
|     ForegroundColor,
 | |
|     BackgroundColor,
 | |
|     Icon,
 | |
|     IconOpacity,
 | |
|     Font,
 | |
|     MimeData,
 | |
|     TextAlignment,
 | |
|     Search,
 | |
|     Custom = 0x100, // Applications are free to use roles above this number as they please
 | |
| };
 | |
| 
 | |
| }
 |