tdesktop/Telegram/SourceFiles/layout/layout_selection.h

27 lines
684 B
C
Raw Normal View History

2021-07-26 03:59:25 +00:00
/*
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);