1 #ifndef DALI_TOOLKIT_PARTICLE_SYSTEM_INTERNAL_PARTICLE_DOMAIN_H
2 #define DALI_TOOLKIT_PARTICLE_SYSTEM_INTERNAL_PARTICLE_DOMAIN_H
4 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include <dali-toolkit/public-api/particle-system/particle-domain.h>
24 #include <dali/public-api/object/base-object.h>
27 namespace Dali::Toolkit::ParticleSystem::Internal
29 class ParticleDomain : public Dali::BaseObject
33 } // namespace Dali::Toolkit::ParticleSystem::Internal
35 namespace Dali::Toolkit::ParticleSystem
37 inline Internal::ParticleDomain& GetImplementation(ParticleSystem::ParticleDomain& source)
39 DALI_ASSERT_ALWAYS(source && "ParticleDomain handle is empty");
41 BaseObject& handle = source.GetBaseObject();
43 return static_cast<Internal::ParticleDomain&>(handle);
46 inline const Internal::ParticleDomain& GetImplementation(const ParticleSystem::ParticleDomain& source)
48 DALI_ASSERT_ALWAYS(source && "ParticleDomain handle is empty");
50 const BaseObject& handle = source.GetBaseObject();
52 return static_cast<const Internal::ParticleDomain&>(handle);
55 } // namespace Dali::Toolkit::ParticleSystem
57 #endif // DALI_TOOLKIT_PARTICLE_SYSTEM_INTERNAL_PARTICLE_DOMAIN_H