Dali 3D User Interface Engine
Classes | Namespaces | Enumerations | Functions | Variables
scripting.cpp File Reference
#include <dali/devel-api/scripting/scripting.h>
#include <dali/public-api/actors/actor.h>
#include <dali/public-api/images/resource-image.h>
#include <dali/public-api/object/type-registry.h>
#include <dali/public-api/object/property-array.h>
#include <dali/internal/common/image-attributes.h>
#include <dali/internal/event/images/resource-image-impl.h>
#include <dali/internal/event/images/frame-buffer-image-impl.h>
#include <dali/internal/event/images/buffer-image-impl.h>
#include <dali/internal/event/effects/shader-effect-impl.h>
Include dependency graph for scripting.cpp:

Go to the source code of this file.

Classes

struct  Dali::Scripting::anonymous_namespace{scripting.cpp}::AnchorValue
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::Scripting
 Utilities for scripting support.
 
namespace  Dali::Scripting::anonymous_namespace{scripting.cpp}
 

Enumerations

enum  Dali::Scripting::anonymous_namespace{scripting.cpp}::ImageType { Dali::Scripting::anonymous_namespace{scripting.cpp}::RESOURCE_IMAGE, Dali::Scripting::anonymous_namespace{scripting.cpp}::FRAME_BUFFER_IMAGE, Dali::Scripting::anonymous_namespace{scripting.cpp}::BUFFER_IMAGE }
 

Functions

bool Dali::Scripting::anonymous_namespace{scripting.cpp}::CompareEnums (const char *a, const char *b, size_t &size)
 
bool Dali::Scripting::EnumStringToInteger (const char *const value, const StringEnum *const table, unsigned int tableCount, unsigned int &integerEnum)
 Find the enum as an integer from the table. More...
 
unsigned int Dali::Scripting::FindEnumIndex (const char *value, const StringEnum *table, unsigned int tableCount)
 Find the given enum index from the table. More...
 
ColorMode Dali::Scripting::GetColorMode (const std::string &value)
 Takes a string and returns the appropriate color mode. More...
 
std::string Dali::Scripting::GetColorMode (ColorMode value)
 Takes a color mode and returns the appropriate string equivalent. More...
 
PositionInheritanceMode Dali::Scripting::GetPositionInheritanceMode (const std::string &value)
 Takes a string and returns the appropriate position inheritance mode. More...
 
std::string Dali::Scripting::GetPositionInheritanceMode (PositionInheritanceMode value)
 Takes a position inheritance mode and returns the string equivalent. More...
 
DrawMode::Type Dali::Scripting::GetDrawMode (const std::string &value)
 Takes a string and returns the appropriate draw mode. More...
 
std::string Dali::Scripting::GetDrawMode (DrawMode::Type value)
 Takes a draw-mode and returns the string equivalent. More...
 
Vector3 Dali::Scripting::GetAnchorConstant (const std::string &value)
 Takes a string and returns the appropriate anchor-point or parent-origin constant. More...
 
Image Dali::Scripting::NewImage (const Property::Value &property)
 Creates object with data from the property value map. More...
 
ShaderEffect Dali::Scripting::NewShaderEffect (const Property::Value &property)
 Creates object with data from the property value map. More...
 
Actor Dali::Scripting::NewActor (const Property::Map &map)
 Creates an actor with the date from the property value map. More...
 
void Dali::Scripting::CreatePropertyMap (Actor actor, Property::Map &map)
 Creates a Property::Map from the actor provided. More...
 
void Dali::Scripting::CreatePropertyMap (Image image, Property::Map &map)
 Creates a Property::Map from the image provided. More...
 
void Dali::Scripting::NewAnimation (const Property::Map &map, Dali::AnimationData &outputAnimationData)
 Creates description data required to create an Animation object from a property map. More...
 

Variables

const AnchorValue Dali::Scripting::anonymous_namespace{scripting.cpp}::ANCHOR_CONSTANT_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::ANCHOR_CONSTANT_TABLE_COUNT = sizeof( ANCHOR_CONSTANT_TABLE ) / sizeof( ANCHOR_CONSTANT_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::COLOR_MODE_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::COLOR_MODE_TABLE_COUNT = sizeof( COLOR_MODE_TABLE ) / sizeof( COLOR_MODE_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::POSITION_INHERITANCE_MODE_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::POSITION_INHERITANCE_MODE_TABLE_COUNT = sizeof( POSITION_INHERITANCE_MODE_TABLE ) / sizeof( POSITION_INHERITANCE_MODE_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::DRAW_MODE_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::DRAW_MODE_TABLE_COUNT = sizeof( DRAW_MODE_TABLE ) / sizeof( DRAW_MODE_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_LOAD_POLICY_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_LOAD_POLICY_TABLE_COUNT = sizeof( IMAGE_LOAD_POLICY_TABLE ) / sizeof( IMAGE_LOAD_POLICY_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_RELEASE_POLICY_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_RELEASE_POLICY_TABLE_COUNT = sizeof( IMAGE_RELEASE_POLICY_TABLE ) / sizeof( IMAGE_RELEASE_POLICY_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::PIXEL_FORMAT_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::PIXEL_FORMAT_TABLE_COUNT = sizeof( PIXEL_FORMAT_TABLE ) / sizeof( PIXEL_FORMAT_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_FITTING_MODE_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_FITTING_MODE_TABLE_COUNT = sizeof( IMAGE_FITTING_MODE_TABLE ) / sizeof( IMAGE_FITTING_MODE_TABLE[0] )
 
const StringEnum Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_SAMPLING_MODE_TABLE []
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::IMAGE_SAMPLING_MODE_TABLE_COUNT = sizeof( IMAGE_SAMPLING_MODE_TABLE ) / sizeof( IMAGE_SAMPLING_MODE_TABLE[0] )
 
const char * Dali::Scripting::anonymous_namespace{scripting.cpp}::ImageTypeName [] = { "ResourceImage", "FrameBufferImage", "BufferImage" }
 
const unsigned int Dali::Scripting::anonymous_namespace{scripting.cpp}::imageTypeCount = sizeof( ImageTypeName ) / sizeof( const char* )
 
Dali Docs Home
Read more about Dali