mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	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
 | 
						|
};
 | 
						|
 | 
						|
}
 |