ZaStoGram_desktop/Telegram/SourceFiles/layout/layout_selection.h
John Preston 7ca891ed68 Remove unused visual helpers and the obsolete image source.
Task: 2026/10/21/remove-unused-visual-helpers-and-the-obsolete-image-source
2026-10-21 23:36:07 +04:00

25 lines
700 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 };
constexpr auto kMaxGroupSelectionItems = 0x0F;
[[nodiscard]] bool IsSubGroupSelection(TextSelection selection);
[[nodiscard]] bool IsGroupItemSelection(
TextSelection selection,
int index);
[[nodiscard]] int FirstGroupItemIndex(TextSelection selection);
[[nodiscard]] TextSelection AddGroupItemSelection(
TextSelection selection,
int index);