1 #ifndef DALI_TOOLKIT_INTERNAL_CONTROL_DEBUG_H
2 #define DALI_TOOLKIT_INTERNAL_CONTROL_DEBUG_H
4 * Copyright (c) 2018 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.
19 #if defined(DEBUG_ENABLED)
21 #include <dali/public-api/object/handle.h>
22 #include <dali-toolkit/public-api/controls/control-impl.h>
34 * Convert properties of handle into JSON output, separated into 'normal' and 'child' properties.
35 * @param[in] ouputStream the output stream to write to
36 * @param[in] handle The handle of the object from which to retrieve properties
37 * @return The output stream
39 std::ostream& DumpProperties( std::ostream& outputStream, Handle handle );
42 * Dumps control internals, visuals and properties to a string in JSON format
44 std::string DumpControl( const Internal::Control& control );
47 * Dumps actor internals and properties to a string in JSON format
49 std::string DumpActor( Actor actor );
52 * Dumps actor hierarchy from a given root, but expands Control output to encompass Control internals.
53 * Formats the output in JSON.
54 * @param[in] ouputStream the output stream to write to
55 * @param[in] root The root actor
57 void DumpControlHierarchy( std::ostream& outputStream, Actor rootActor );
59 } // namespace Internal
61 } // namespace Toolkit
67 #endif //DALI_TOOLKIT_INTERNAL_CONTROL_DEBUG_H