/
diev
/
stelegramdesktop-tdesktop
Обзор
Документация
Войти
/
diev
/
stelegramdesktop-tdesktop
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
Telegram/SourceFiles/layout/layout_selection.h
26 строк
684 B
23rd
Moved text selection utils to td_ui.
26 июл 2021, 17:38
26 июл 2021, 17:38
6e2f8eb
Код
Авторство
О чём код?
/* 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);