VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
annotation.cpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2025-2026 Arnis Lektauers
3
//
4
//
5
#include "
annotation.h
"
6
7
#include "
framework/engine.h
"
8
#include "
framework/entity.h
"
9
10
namespace
visutwin::canvas
11
{
12
void
Annotation::activate
()
13
{
14
auto
* eng =
entity
()->
engine
();
15
if
(eng) {
16
eng->fire(
"annotation:add"
,
this
);
17
}
18
}
19
}
annotation.h
visutwin::canvas::Annotation::activate
void activate()
Definition
annotation.cpp:12
visutwin::canvas::Annotation::entity
Entity * entity() const
Definition
script.h:71
visutwin::canvas::Entity::engine
Engine * engine() const
Definition
entity.h:123
engine.h
entity.h
visutwin::canvas
Definition
eventHandler.cpp:9
framework
script
annotation.cpp
Generated by
1.16.1