<commit_before>#ifndef DALI_TOOLKIT_VISUAL_PROPERTIES_H
#define DALI_TOOLKIT_VISUAL_PROPERTIES_H

/*
 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

// INTERNAL INCLUDES
#include <dali-toolkit/public-api/toolkit-property-index-ranges.h>

namespace Dali
{

namespace Toolkit
{

/**
 * @addtogroup dali_toolkit_visuals
 * @{
 */

/**
 * @brief All the visual types.
 * @SINCE_1_1.45
 */
namespace Visual
{

/**
 * @brief All the visual types.
 * @SINCE_1_1.45
 */
enum Type
{
  BORDER,           ///< Renders a solid color as an internal border to the control's quad. @SINCE_1_1.45
  COLOR,            ///< Renders a solid color to the control's quad. @SINCE_1_1.45
  GRADIENT,         ///< Renders a smooth transition of colors to the control's quad. @SINCE_1_1.45
  IMAGE,            ///< Renders an image into the control's quad. @SINCE_1_1.45
  MESH,             ///< Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file. @SINCE_1_1.45
  PRIMITIVE,        ///< Renders a simple 3D shape, such as a cube or sphere. @SINCE_1_1.45
  WIREFRAME,        ///< Renders a simple wire-frame outlining a quad. @SINCE_1_2_2
  TEXT,             ///< Renders text @SINCE_1_2.60
  N_PATCH,          ///< Renders an n-patch image. @SINCE_1_2.60
  SVG,              ///< Renders an SVG image. @SINCE_1_2.60
  ANIMATED_IMAGE,   ///< Renders a animated image. @SINCE_1_2.60
};

/**
 * @brief Visual Property.
 * @SINCE_1_1.45
 */
namespace Property
{

/**
 * @brief Enumeration for the instance of properties belonging to the Visual Property.
 * @SINCE_1_1.45
 */
enum
{
  /**
   * @brief The index for the visual type.
   * @details Name "visualType", type [Type](Dali::Toolkit::Visual::Type) (Property::INTEGER) or Property::STRING.
   * @SINCE_1_1.45
   * @note Mandatory.
   * @see Type
   */
  TYPE = VISUAL_PROPERTY_BASE_START_INDEX,

  /**
   * @brief The shader to use in the visual.
   * @details Name "shader", type Property::MAP.
   * @SINCE_1_1.45
   * @note Optional.
   * @note Will override the existing shaders.
   * @see Shader::Property
   */
  SHADER,

  /**
   * @brief The transform used by the visual.
   * @details Name "transform", type Property::MAP.
   * @SINCE_1_2.60
   * @note Optional.
   * @see Toolkit::Visual::Transform::Property
   */
  TRANSFORM,

  /**
   * @brief Enables/disables premultiplied alpha.
   * @details Name "premultipliedAlpha", type Property::BOOLEAN.
   * @SINCE_1_2.60
   * @note Optional.
   * @note The premultiplied alpha is false by default unless this behaviour is modified
   * by the derived Visual type.
   */
  PREMULTIPLIED_ALPHA,

  /**
   * @brief Mix color is a blend color for any visual.
   * @details Name "mixColor", type Property::VECTOR3 or Property::VECTOR4.
   * @SINCE_1_2.60
   * @note Optional
   */
  MIX_COLOR,

  /**
   * @brief Opacity is the alpha component of the mixColor, above.
   * @details Name "opacity", type Property::FLOAT.
   * @SINCE_1_2.60
   * @note Optional
   */
  OPACITY,
};

} // namespace Property

/**
 * @brief Visual Transfrom for the offset or size.
 * @SINCE_1_2.60
 */
namespace Transform
{

/**
 * @brief Policies used by the transform for the offset or size.
 * @SINCE_1_2.60
 */
namespace Policy
{

/**
 * @brief Enumeration for the type of Transform Policy.
 * @SINCE_1_2.60
 */
enum Type
{
  RELATIVE = 0,   ///< Relative to the control (percentage [0.0f to 1.0f] of the control). @SINCE_1_2.60
  ABSOLUTE = 1    ///< Absolute value in world units. @SINCE_1_2.60
};

} // namespace Policy

/**
 * @brief Visual Transform Property.
 * @SINCE_1_2.60
 */
namespace Property
{

/**
 * @brief Enumeration for the type of Transfrom Property.
 * @SINCE_1_2.60
 */
enum Type
{
  /**
   * @brief Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
   * @details Name "offset", type Property::VECTOR2.
   * @SINCE_1_2.60
   *
   * @see OFFSET_POLICY
   */
  OFFSET,

  /**
   * @brief Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
   * @details Name "size", type Property::VECTOR2.<commit_msg>Fix typo in visual-properties<commit_after>#ifndef DALI_TOOLKIT_VISUAL_PROPERTIES_H
#define DALI_TOOLKIT_VISUAL_PROPERTIES_H

/*
 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

// INTERNAL INCLUDES
#include <dali-toolkit/public-api/toolkit-property-index-ranges.h>

namespace Dali
{

namespace Toolkit
{

/**
 * @addtogroup dali_toolkit_visuals
 * @{
 */

/**
 * @brief All the visual types.
 * @SINCE_1_1.45
 */
namespace Visual
{

/**
 * @brief All the visual types.
 * @SINCE_1_1.45
 */
enum Type
{
  BORDER,           ///< Renders a solid color as an internal border to the control's quad. @SINCE_1_1.45
  COLOR,            ///< Renders a solid color to the control's quad. @SINCE_1_1.45
  GRADIENT,         ///< Renders a smooth transition of colors to the control's quad. @SINCE_1_1.45
  IMAGE,            ///< Renders an image into the control's quad. @SINCE_1_1.45
  MESH,             ///< Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file. @SINCE_1_1.45
  PRIMITIVE,        ///< Renders a simple 3D shape, such as a cube or sphere. @SINCE_1_1.45
  WIREFRAME,        ///< Renders a simple wire-frame outlining a quad. @SINCE_1_2_2
  TEXT,             ///< Renders text @SINCE_1_2.60
  N_PATCH,          ///< Renders an n-patch image. @SINCE_1_2.60
  SVG,              ///< Renders an SVG image. @SINCE_1_2.60
  ANIMATED_IMAGE,   ///< Renders a animated image. @SINCE_1_2.60
};

/**
 * @brief Visual Property.
 * @SINCE_1_1.45
 */
namespace Property
{

/**
 * @brief Enumeration for the instance of properties belonging to the Visual Property.
 * @SINCE_1_1.45
 */
enum
{
  /**
   * @brief The index for the visual type.
   * @details Name "visualType", type [Type](Dali::Toolkit::Visual::Type) (Property::INTEGER) or Property::STRING.
   * @SINCE_1_1.45
   * @note Mandatory.
   * @see Type
   */
  TYPE = VISUAL_PROPERTY_BASE_START_INDEX,

  /**
   * @brief The shader to use in the visual.
   * @details Name "shader", type Property::MAP.
   * @SINCE_1_1.45
   * @note Optional.
   * @note Will override the existing shaders.
   * @see Shader::Property
   */
  SHADER,

  /**
   * @brief The transform used by the visual.
   * @details Name "transform", type Property::MAP.
   * @SINCE_1_2.60
   * @note Optional.
   * @see Toolkit::Visual::Transform::Property
   */
  TRANSFORM,

  /**
   * @brief Enables/disables premultiplied alpha.
   * @details Name "premultipliedAlpha", type Property::BOOLEAN.
   * @SINCE_1_2.60
   * @note Optional.
   * @note The premultiplied alpha is false by default unless this behaviour is modified
   * by the derived Visual type.
   */
  PREMULTIPLIED_ALPHA,

  /**
   * @brief Mix color is a blend color for any visual.
   * @details Name "mixColor", type Property::VECTOR3 or Property::VECTOR4.
   * @SINCE_1_2.60
   * @note Optional
   */
  MIX_COLOR,

  /**
   * @brief Opacity is the alpha component of the mixColor, above.
   * @details Name "opacity", type Property::FLOAT.
   * @SINCE_1_2.60
   * @note Optional
   */
  OPACITY,
};

} // namespace Property

/**
 * @brief Visual Transform for the offset or size.
 * @SINCE_1_2.60
 */
namespace Transform
{

/**
 * @brief Policies used by the transform for the offset or size.
 * @SINCE_1_2.60
 */
namespace Policy
{

/**
 * @brief Enumeration for the type of Transform Policy.
 * @SINCE_1_2.60
 */
enum Type
{
  RELATIVE = 0,   ///< Relative to the control (percentage [0.0f to 1.0f] of the control). @SINCE_1_2.60
  ABSOLUTE = 1    ///< Absolute value in world units. @SINCE_1_2.60
};

} // namespace Policy

/**
 * @brief Visual Transform Property.
 * @SINCE_1_2.60
 */
namespace Property
{

/**
 * @brief Enumeration for the type of Transform Property.
 * @SINCE_1_2.60
 */
enum Type
{
  /**
   * @brief Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
   * @details Name "offset", type Property::VECTOR2.
   * @SINCE_1_2.60
   *
   * @see OFFSET_POLICY
   */
  OFFSET,

  /**
   * @brief Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
   * @details Name "size", type Property::VECTOR2.
{'fraction_non_alphanumeric': 0.11607520067596114, 'fraction_numerical': 0.02999577524292353, 'mean_word_length': 2.9241607956900126, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6434032', 'n_tokens_mistral': 3402, 'n_tokens_neox': 3251, 'n_words': 1032}