26 lines
		
	
	
	
		
			684 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			684 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
This file is part of Telegram Desktop,
 | 
						|
the official desktop application for the Telegram messaging service.
 | 
						|
 | 
						|
For license and copyright information please follow this link:
 | 
						|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 | 
						|
*/
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "ui/text/text.h"
 | 
						|
 | 
						|
constexpr auto FullSelection = TextSelection { 0xFFFF, 0xFFFF };
 | 
						|
 | 
						|
[[nodiscard]] bool IsSubGroupSelection(TextSelection selection);
 | 
						|
 | 
						|
[[nodiscard]] bool IsGroupItemSelection(
 | 
						|
		TextSelection selection,
 | 
						|
		int index);
 | 
						|
 | 
						|
[[nodiscard]] TextSelection AddGroupItemSelection(
 | 
						|
		TextSelection selection,
 | 
						|
		int index);
 | 
						|
 | 
						|
[[nodiscard]] TextSelection RemoveGroupItemSelection(
 | 
						|
		TextSelection selection,
 | 
						|
		int index);
 |