Files
MuditaOS/module-gui/test/mock/buildTextDocument.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

22 lines
766 B
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include <widgets/text/core/TextDocument.hpp>
namespace mockup
{
auto buildEmptyTestDocument() -> std::tuple<gui::TextDocument, gui::RawFont *>;
auto buildTestDocument(gui::TextBlock::End lineEnd = gui::TextBlock::End::Newline)
-> std::tuple<gui::TextDocument, gui::RawFont *>;
auto buildOnelineTestDocument(std::string text) -> std::tuple<gui::TextDocument, gui::RawFont *>;
auto buildMultilineTestDocument(std::list<std::string> source) -> std::tuple<gui::TextDocument, gui::RawFont *>;
auto buildJustNewlineTestDocument() -> gui::TextDocument;
}; // namespace mockup