Flutter Engine
 
Loading...
Searching...
No Matches
render_text_in_canvas.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_TESTING_RENDER_TEXT_IN_CANVAS_H_
6#define FLUTTER_IMPELLER_DISPLAY_LIST_TESTING_RENDER_TEXT_IN_CANVAS_H_
7
8#include <memory>
9
14
15namespace flutter {
16namespace testing {
17
19 bool stroke = false;
22 std::shared_ptr<DlMaskFilter> mask_filter;
23 bool is_subpixel = false;
24};
25
27 const std::string& text,
28 const std::string_view& font_fixture,
29 DlPoint position,
30 const TextRenderOptions& options = {});
31
32} // namespace testing
33} // namespace flutter
34
35#endif // FLUTTER_IMPELLER_DISPLAY_LIST_TESTING_RENDER_TEXT_IN_CANVAS_H_
Developer-facing API for rendering anything within the engine.
Definition dl_canvas.h:32
std::u16string text
bool RenderTextInCanvasSkia(DlCanvas *canvas, const std::string &text, const std::string_view &font_fixture, DlPoint position, const TextRenderOptions &options)
impeller::Scalar DlScalar
static constexpr DlColor kYellow()
Definition dl_color.h:76
std::shared_ptr< DlMaskFilter > mask_filter