2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-25 03:47:08 +00:00
2021-07-26 17:38:51 +03:00

27 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);