[4.0] Add Property::EXTENTS type
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-types.cpp
index 6ad7d73..7f6e398 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2015 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.
@@ -23,13 +23,12 @@ namespace Dali
 
 namespace
 {
-const char* const PROPERTY_TYPE_NAMES[ Property::TYPE_COUNT ] =
+const char* const PROPERTY_TYPE_NAMES[] =
 {
   "NONE",
   "BOOLEAN",
   "FLOAT",
   "INTEGER",
-  "UNSIGNED_INTEGER",
   "VECTOR2",
   "VECTOR3",
   "VECTOR4",
@@ -40,16 +39,17 @@ const char* const PROPERTY_TYPE_NAMES[ Property::TYPE_COUNT ] =
   "STRING",
   "ARRAY",
   "MAP",
+  "EXTENTS",
 };
+const unsigned int PROPERTY_TYPE_NAMES_COUNT = sizeof( PROPERTY_TYPE_NAMES ) / sizeof( const char* );
 }
 
 namespace PropertyTypes
 {
 
-DALI_EXPORT_API
-const char* GetName(Property::Type type)
+DALI_EXPORT_API const char* GetName(Property::Type type)
 {
-  if (type < Property::TYPE_COUNT)
+  if (type < PROPERTY_TYPE_NAMES_COUNT )
   {
     return PROPERTY_TYPE_NAMES[type];
   }