mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:42:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			340 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			340 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| enum class TextAlignment {
 | |
|     TopLeft,
 | |
|     CenterLeft,
 | |
|     Center,
 | |
|     CenterRight,
 | |
|     TopRight,
 | |
| };
 | |
| 
 | |
| inline bool is_right_text_alignment(TextAlignment alignment)
 | |
| {
 | |
|     switch (alignment) {
 | |
|     case TextAlignment::CenterRight:
 | |
|     case TextAlignment::TopRight:
 | |
|         return true;
 | |
|     default:
 | |
|         return false;
 | |
|     }
 | |
| }
 | 
