Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
entity
entity_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_ENTITY_ENTITY_PLAYGROUND_H_
6
#define FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_
7
8
#include "
impeller/playground/playground_test.h
"
9
10
#include "flutter/fml/macros.h"
11
#include "
impeller/entity/contents/content_context.h
"
12
#include "
impeller/entity/entity.h
"
13
#include "
impeller/entity/entity_pass.h
"
14
#include "
impeller/typographer/typographer_context.h
"
15
16
namespace
impeller
{
17
18
class
EntityPlayground
:
public
PlaygroundTest
{
19
public
:
20
using
EntityPlaygroundCallback
=
21
std::function<bool(
ContentContext
& context,
RenderPass
& pass)>;
22
23
EntityPlayground
();
24
25
~EntityPlayground
();
26
27
void
SetTypographerContext
(
28
std::shared_ptr<TypographerContext> typographer_context);
29
30
bool
OpenPlaygroundHere
(
Entity
entity);
31
32
bool
OpenPlaygroundHere
(
EntityPass
& entity_pass);
33
34
bool
OpenPlaygroundHere
(
EntityPlaygroundCallback
callback
);
35
36
std::shared_ptr<ContentContext>
GetContentContext
()
const
;
37
38
private
:
39
std::shared_ptr<TypographerContext> typographer_context_;
40
41
EntityPlayground
(
const
EntityPlayground
&) =
delete
;
42
43
EntityPlayground
& operator=(
const
EntityPlayground
&) =
delete
;
44
};
45
46
}
// namespace impeller
47
48
#endif
// FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_
impeller::ContentContext
Definition
content_context.h:375
impeller::EntityPass
Definition
entity_pass.h:43
impeller::EntityPlayground
Definition
entity_playground.h:18
impeller::EntityPlayground::~EntityPlayground
~EntityPlayground()
impeller::EntityPlayground::EntityPlayground
EntityPlayground()
Definition
entity_playground.cc:13
impeller::EntityPlayground::OpenPlaygroundHere
bool OpenPlaygroundHere(Entity entity)
Definition
entity_playground.cc:49
impeller::EntityPlayground::GetContentContext
std::shared_ptr< ContentContext > GetContentContext() const
Definition
entity_playground.cc:45
impeller::EntityPlayground::EntityPlaygroundCallback
std::function< bool(ContentContext &context, RenderPass &pass)> EntityPlaygroundCallback
Definition
entity_playground.h:21
impeller::EntityPlayground::SetTypographerContext
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
Definition
entity_playground.cc:18
impeller::Entity
Definition
entity.h:21
impeller::PlaygroundTest
Definition
playground_test.h:24
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition
render_pass.h:33
content_context.h
entity.h
entity_pass.h
callback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Definition
fl_key_channel_responder.cc:120
impeller
Definition
texture.h:18
playground_test.h
typographer_context.h
Generated on Fri Apr 26 2024 06:14:10 for Flutter Engine by
1.9.8