| Flutter Impeller |

aiks_playground.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_AIKS_PLAYGROUND_H_
6 #define FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_PLAYGROUND_H_
7
8 #include "flutter/display_list/display_list.h"
9 #include "impeller/display_list/aiks_context.h"
10 #include "impeller/playground/playground_test.h"
11 #include "impeller/typographer/typographer_context.h"
12 #include "third_party/imgui/imgui.h"
13
14 namespace impeller {
15
16 class AiksPlayground : public PlaygroundTest {
17 public:
18 using AiksDlPlaygroundCallback = std::function<sk_sp<flutter::DisplayList>()>;
19
20 AiksPlayground();
21
22 ~AiksPlayground();
23
24 void TearDown() override;
25
26 void SetTypographerContext(
27 std::shared_ptr<TypographerContext> typographer_context);
28
29 bool OpenPlaygroundHere(const AiksDlPlaygroundCallback& callback);
30
31 bool OpenPlaygroundHere(const sk_sp<flutter::DisplayList>& list);
32
33 static bool ImGuiBegin(const char* name,
34 bool* p_open,
35 ImGuiWindowFlags flags);
36
37 private:
38 std::shared_ptr<TypographerContext> typographer_context_;
39
40 AiksPlayground(const AiksPlayground&) = delete;
41
42 AiksPlayground& operator=(const AiksPlayground&) = delete;
43 };
44
45 } // namespace impeller
46
47 #endif // FLUTTER_IMPELLER_DISPLAY_LIST_AIKS_PLAYGROUND_H_
impeller::AiksPlayground
Definition: aiks_playground.h:16
playground_test.h
aiks_context.h
impeller::AiksPlayground::OpenPlaygroundHere
bool OpenPlaygroundHere(const AiksDlPlaygroundCallback &callback)
Definition: aiks_playground.cc:42
typographer_context.h
impeller::AiksPlayground::AiksPlayground
AiksPlayground()
Definition: aiks_playground.cc:16
impeller::AiksPlayground::SetTypographerContext
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
Definition: aiks_playground.cc:21
impeller::AiksPlayground::TearDown
void TearDown() override
Definition: aiks_playground.cc:26
impeller::AiksPlayground::AiksDlPlaygroundCallback
std::function< sk_sp< flutter::DisplayList >()> AiksDlPlaygroundCallback
Definition: aiks_playground.h:18
impeller::AiksPlayground::ImGuiBegin
static bool ImGuiBegin(const char *name, bool *p_open, ImGuiWindowFlags flags)
Definition: aiks_playground.cc:30
impeller::PlaygroundTest
Definition: playground_test.h:21
impeller::AiksPlayground::~AiksPlayground
~AiksPlayground()
impeller
Definition: allocation.cc:12