Dali 3D User Interface Engine
Classes | Namespaces | Macros
property-helper.h File Reference
#include <dali/integration-api/bitmap.h>
#include <dali/devel-api/scripting/scripting.h>
Include dependency graph for property-helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Dali::Internal::PropertyDetails
 Structure for setting up default properties and their details. More...
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::Internal
 

Macros

#define DALI_PROPERTY_TABLE_BEGIN   const Internal::PropertyDetails DEFAULT_PROPERTY_DETAILS[] = {
 These macros are used to define a table of property details per Actor object. More...
 
#define DALI_PROPERTY_TABLE_END(startIndex)   }; const int DEFAULT_PROPERTY_COUNT = sizeof( DEFAULT_PROPERTY_DETAILS ) / sizeof( Internal::PropertyDetails );
 
#define DALI_PROPERTY(text, type, writable, animatable, constraint, index)   { text, Dali::Property::type, writable, animatable, constraint },
 
#define DALI_ENUM_TO_STRING_TABLE_BEGIN(t)   const Dali::Scripting::StringEnum t##Table[] = {
 Macros for creating enumeration to string tables. More...
 
#define DALI_ENUM_TO_STRING_TABLE_END(t)   }; const unsigned int t##TableCount = sizeof( t##Table ) / sizeof( t##Table[0] );
 
#define DALI_ENUM_TO_STRING(s)   { #s, s },
 
#define DALI_ENUM_TO_STRING_INSIDE_CLASS(className, enumName)   { #enumName, className::enumName },
 DALI_ENUM_TO_STRING_INSIDE_CLASS Example converts ( Layer, LAYER_2D) to ( "LAYER_2D", Layer::Layer2D) More...
 

Macro Definition Documentation

#define DALI_ENUM_TO_STRING (   s)    { #s, s },

Definition at line 96 of file property-helper.h.

#define DALI_ENUM_TO_STRING_INSIDE_CLASS (   className,
  enumName 
)    { #enumName, className::enumName },

DALI_ENUM_TO_STRING_INSIDE_CLASS Example converts ( Layer, LAYER_2D) to ( "LAYER_2D", Layer::Layer2D)

Definition at line 102 of file property-helper.h.

#define DALI_ENUM_TO_STRING_TABLE_BEGIN (   t)    const Dali::Scripting::StringEnum t##Table[] = {

Macros for creating enumeration to string tables.

Example:

DALI_ENUM_TO_STRING_TABLE_BEGIN( SizeMode ) DALI_ENUM_TO_STRING( USE_OWN_SIZE ) DALI_ENUM_TO_STRING( SIZE_EQUAL_TO_PARENT ) DALI_ENUM_TO_STRING_TABLE_END( SizeMode )

Creates: const Scripting::StringEnum< SizeMode > SizeModeTable[] = { { "USE_OWN_SIZE", USE_OWN_SIZE }, { "SIZE_EQUAL_TO_PARENT", SIZE_EQUAL_TO_PARENT }, }; const unsigned int SizeModeTableCount = sizeof( SizeModeTable ) / sizeof( SizeModeTable[0] );

Definition at line 94 of file property-helper.h.

#define DALI_ENUM_TO_STRING_TABLE_END (   t)    }; const unsigned int t##TableCount = sizeof( t##Table ) / sizeof( t##Table[0] );

Definition at line 95 of file property-helper.h.

#define DALI_PROPERTY (   text,
  type,
  writable,
  animatable,
  constraint,
  index 
)    { text, Dali::Property::type, writable, animatable, constraint },

Definition at line 76 of file property-helper.h.

#define DALI_PROPERTY_TABLE_BEGIN   const Internal::PropertyDetails DEFAULT_PROPERTY_DETAILS[] = {

These macros are used to define a table of property details per Actor object.

The index property is only compiled in for DEBUG_ENABLED builds and allows checking the table index VS the property enum index. DALI_PROPERTY_TABLE_END Forces a run-time check that will happen once.

Definition at line 51 of file property-helper.h.

#define DALI_PROPERTY_TABLE_END (   startIndex)    }; const int DEFAULT_PROPERTY_COUNT = sizeof( DEFAULT_PROPERTY_DETAILS ) / sizeof( Internal::PropertyDetails );

Definition at line 71 of file property-helper.h.

Dali Docs Home
Read more about Dali