Flutter Engine
 
Loading...
Searching...
No Matches
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
12#include "third_party/imgui/imgui.h"
13
14namespace impeller {
15
17 public:
18 using AiksDlPlaygroundCallback = std::function<sk_sp<flutter::DisplayList>()>;
19
21
23
24 void TearDown() override;
25
27 std::shared_ptr<TypographerContext> typographer_context);
28
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_
std::function< sk_sp< flutter::DisplayList >()> AiksDlPlaygroundCallback
bool OpenPlaygroundHere(const AiksDlPlaygroundCallback &callback)
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
static bool ImGuiBegin(const char *name, bool *p_open, ImGuiWindowFlags flags)
FlutterDesktopBinaryReply callback
const char * name
Definition fuchsia.cc:49