Dali 3D User Interface Engine
Namespaces | Functions | Variables
utc-Dali-Scripting.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <dali/public-api/dali-core.h>
#include <dali/devel-api/scripting/scripting.h>
#include <dali-test-suite-utils.h>
Include dependency graph for utc-Dali-Scripting.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{utc-Dali-Scripting.cpp}
 

Functions

template<typename T , typename X >
void anonymous_namespace{utc-Dali-Scripting.cpp}::TestEnumStrings (Property::Map &map, const char *const keyName, const StringEnum *values, unsigned int num, T(X::*method)() const, X(*creator)(const Property::Value &))
 Template to check enumerations of type T, with a class of type X. More...
 
ResourceImage anonymous_namespace{utc-Dali-Scripting.cpp}::NewResourceImage (const Property::Value &map)
 Helper method to create ResourceImage using property. More...
 
BufferImage anonymous_namespace{utc-Dali-Scripting.cpp}::NewBufferImage (const Property::Value &map)
 Helper method to create ResourceImage using property. More...
 
template<typename T >
void anonymous_namespace{utc-Dali-Scripting.cpp}::TestEnumStrings (const char *const keyName, TestApplication &application, const StringEnum *values, unsigned int num, void(Actor::*method)(T))
 Template to check enumerations of type T. More...
 
int UtcDaliScriptingGetColorMode (void)
 
int UtcDaliScriptingGetPositionInheritanceMode (void)
 
int UtcDaliScriptingGetDrawMode (void)
 
int UtcDaliScriptingGetAnchorConstant (void)
 
int UtcDaliScriptingNewImageNegative01 (void)
 
int UtcDaliScriptingNewImageNegative02 (void)
 
int UtcDaliScriptingNewImageNegative03 (void)
 
int UtcDaliScriptingNewImageNegative04 (void)
 
int UtcDaliScriptingNewImageNegative05 (void)
 
int UtcDaliScriptingNewImageNegative06 (void)
 
int UtcDaliScriptingNewImageNegative07 (void)
 
int UtcDaliScriptingNewImageNegative08 (void)
 
int UtcDaliScriptingNewImageNegative09 (void)
 
int UtcDaliScriptingNewImageNegative10 (void)
 
int UtcDaliScriptingNewImageNegative12 (void)
 
int UtcDaliScriptingNewImageNegative13 (void)
 
int UtcDaliScriptingNewImageNegative14 (void)
 
int UtcDaliScriptingNewImageNegative15 (void)
 
int UtcDaliScriptingNewImageNegative16 (void)
 
int UtcDaliScriptingNewImage01P (void)
 
int UtcDaliScriptingNewImage02P (void)
 
int UtcDaliScriptingNewImage03P (void)
 
int UtcDaliScriptingNewImage04P (void)
 
int UtcDaliScriptingNewImage05P (void)
 
int UtcDaliScriptingNewImage06P (void)
 
int UtcDaliScriptingNewImage07P (void)
 
int UtcDaliScriptingNewImage08P (void)
 
int UtcDaliScriptingNewImage09P (void)
 
int UtcDaliScriptingNewImage10P (void)
 
int UtcDaliScriptingNewShaderEffect (void)
 
int UtcDaliScriptingNewActorNegative (void)
 
int UtcDaliScriptingNewActorProperties (void)
 
int UtcDaliScriptingNewActorChildren (void)
 
int UtcDaliScriptingCreatePropertyMapActor (void)
 
int UtcDaliScriptingCreatePropertyMapImage (void)
 
int UtcDaliScriptingGetEnumerationTemplates (void)
 
int UtcDaliScriptingGetEnumerationNameN (void)
 
int UtcDaliScriptingGetLinearEnumerationNameN (void)
 
int UtcDaliScriptingFindEnumIndexN (void)
 
int UtcDaliScriptingEnumStringToIntegerP (void)
 
int UtcDaliScriptingEnumStringToIntegerN (void)
 
int UtcDaliScriptingEnumStringToIntegerInvalidEnumP (void)
 
int UtcDaliScriptingEnumStringToIntegerInvalidEnumN (void)
 

Variables

const StringEnum anonymous_namespace{utc-Dali-Scripting.cpp}::COLOR_MODE_VALUES []
 
const unsigned int anonymous_namespace{utc-Dali-Scripting.cpp}::COLOR_MODE_VALUES_COUNT = sizeof( COLOR_MODE_VALUES ) / sizeof( COLOR_MODE_VALUES[0] )
 
const StringEnum anonymous_namespace{utc-Dali-Scripting.cpp}::POSITION_INHERITANCE_MODE_VALUES []
 
const unsigned int anonymous_namespace{utc-Dali-Scripting.cpp}::POSITION_INHERITANCE_MODE_VALUES_COUNT = sizeof( POSITION_INHERITANCE_MODE_VALUES ) / sizeof( POSITION_INHERITANCE_MODE_VALUES[0] )
 
const StringEnum anonymous_namespace{utc-Dali-Scripting.cpp}::DRAW_MODE_VALUES []
 
const unsigned int anonymous_namespace{utc-Dali-Scripting.cpp}::DRAW_MODE_VALUES_COUNT = sizeof( DRAW_MODE_VALUES ) / sizeof( DRAW_MODE_VALUES[0] )
 

Function Documentation

int UtcDaliScriptingCreatePropertyMapActor ( void  )

Definition at line 774 of file utc-Dali-Scripting.cpp.

References Dali::Stage::Add(), Dali::Actor::Add(), Dali::Property::Array(), Dali::AnchorPoint::CENTER_LEFT, anonymous_namespace{utc-Dali-Scripting.cpp}::COLOR_MODE_VALUES, anonymous_namespace{utc-Dali-Scripting.cpp}::COLOR_MODE_VALUES_COUNT, Dali::Scripting::CreatePropertyMap(), DALI_TEST_CHECK, DALI_TEST_EQUALS(), anonymous_namespace{utc-Dali-Scripting.cpp}::DRAW_MODE_VALUES, anonymous_namespace{utc-Dali-Scripting.cpp}::DRAW_MODE_VALUES_COUNT, END_TEST, Dali::Stage::GetCurrent(), Dali::Color::MAGENTA, Dali::Property::Map(), Dali::ImageActor::New(), Dali::Actor::New(), Dali::Vector3::ONE, anonymous_namespace{utc-Dali-Scripting.cpp}::POSITION_INHERITANCE_MODE_VALUES, anonymous_namespace{utc-Dali-Scripting.cpp}::POSITION_INHERITANCE_MODE_VALUES_COUNT, Dali::Stage::Remove(), Dali::TestApplication::Render(), Dali::TestApplication::SendNotification(), Dali::Actor::SetAnchorPoint(), Dali::Actor::SetColor(), Dali::Actor::SetColorMode(), Dali::Actor::SetDrawMode(), Dali::Actor::SetInheritOrientation(), Dali::Actor::SetInheritScale(), Dali::Actor::SetLeaveRequired(), Dali::Actor::SetName(), Dali::Actor::SetParentOrigin(), Dali::Actor::SetPosition(), Dali::Actor::SetPositionInheritanceMode(), Dali::Actor::SetScale(), Dali::Actor::SetSensitive(), Dali::Actor::SetSize(), Dali::Actor::SetSizeModeFactor(), Dali::Actor::SetVisible(), TEST_LOCATION, Dali::ParentOrigin::TOP_RIGHT, Dali::Vector3::XAXIS, and Dali::Vector3::ZAXIS.

Here is the call graph for this function:

int UtcDaliScriptingCreatePropertyMapImage ( void  )
int UtcDaliScriptingEnumStringToIntegerInvalidEnumN ( void  )

Definition at line 1135 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Scripting::EnumStringToInteger(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliScriptingEnumStringToIntegerInvalidEnumP ( void  )

Definition at line 1117 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Scripting::EnumStringToInteger(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliScriptingEnumStringToIntegerN ( void  )

Definition at line 1087 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Scripting::EnumStringToInteger(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliScriptingEnumStringToIntegerP ( void  )

Definition at line 1041 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Scripting::EnumStringToInteger(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliScriptingFindEnumIndexN ( void  )

Definition at line 1025 of file utc-Dali-Scripting.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Scripting::FindEnumIndex(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliScriptingGetAnchorConstant ( void  )
int UtcDaliScriptingGetColorMode ( void  )
int UtcDaliScriptingGetDrawMode ( void  )
int UtcDaliScriptingGetEnumerationNameN ( void  )

Definition at line 1003 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, and Dali::Scripting::GetEnumerationName().

Here is the call graph for this function:

int UtcDaliScriptingGetEnumerationTemplates ( void  )

Definition at line 974 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Scripting::GetEnumerationName(), TEST_LOCATION, and tet_printf().

Here is the call graph for this function:

int UtcDaliScriptingGetLinearEnumerationNameN ( void  )

Definition at line 1014 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, and Dali::Scripting::GetLinearEnumerationName().

Here is the call graph for this function:

int UtcDaliScriptingGetPositionInheritanceMode ( void  )
int UtcDaliScriptingNewActorChildren ( void  )
int UtcDaliScriptingNewActorNegative ( void  )
int UtcDaliScriptingNewActorProperties ( void  )
int UtcDaliScriptingNewImage01P ( void  )
int UtcDaliScriptingNewImage02P ( void  )
int UtcDaliScriptingNewImage03P ( void  )

Definition at line 449 of file utc-Dali-Scripting.cpp.

References END_TEST, Dali::Image::GetReleasePolicy(), Dali::Property::Map(), Dali::Image::NEVER, Dali::Scripting::NewImage(), and Dali::Image::UNUSED.

Here is the call graph for this function:

int UtcDaliScriptingNewImage04P ( void  )
int UtcDaliScriptingNewImage05P ( void  )
int UtcDaliScriptingNewImage06P ( void  )

Definition at line 499 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, Dali::FrameBufferImage::DownCast(), END_TEST, Dali::Property::Map(), and Dali::Scripting::NewImage().

Here is the call graph for this function:

int UtcDaliScriptingNewImage07P ( void  )
int UtcDaliScriptingNewImage08P ( void  )
int UtcDaliScriptingNewImage09P ( void  )
int UtcDaliScriptingNewImage10P ( void  )

Definition at line 584 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Property::Map(), and Dali::Scripting::NewImage().

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative01 ( void  )

Definition at line 202 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Property::Map(), Dali::Scripting::NewImage(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative02 ( void  )
int UtcDaliScriptingNewImageNegative03 ( void  )
int UtcDaliScriptingNewImageNegative04 ( void  )
int UtcDaliScriptingNewImageNegative05 ( void  )
int UtcDaliScriptingNewImageNegative06 ( void  )
int UtcDaliScriptingNewImageNegative07 ( void  )
int UtcDaliScriptingNewImageNegative08 ( void  )

Definition at line 313 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, Dali::ResourceImage::DownCast(), END_TEST, Dali::Property::Map(), Dali::Scripting::NewImage(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative09 ( void  )

Definition at line 328 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, Dali::ResourceImage::DownCast(), END_TEST, Dali::Property::Map(), and Dali::Scripting::NewImage().

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative10 ( void  )

Definition at line 343 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, Dali::ResourceImage::DownCast(), END_TEST, Dali::Property::Map(), Dali::Scripting::NewImage(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative12 ( void  )

Definition at line 358 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, Dali::ResourceImage::DownCast(), END_TEST, Dali::Property::Map(), Dali::Scripting::NewImage(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative13 ( void  )

Definition at line 373 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, Dali::ResourceImage::DownCast(), END_TEST, Dali::Property::Map(), Dali::Scripting::NewImage(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative14 ( void  )

Definition at line 388 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Property::Map(), and Dali::Scripting::NewImage().

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative15 ( void  )

Definition at line 398 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Property::Map(), Dali::Scripting::NewImage(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliScriptingNewImageNegative16 ( void  )

Definition at line 408 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Property::Map(), and Dali::Scripting::NewImage().

Here is the call graph for this function:

int UtcDaliScriptingNewShaderEffect ( void  )

Definition at line 596 of file utc-Dali-Scripting.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Property::Map(), and Dali::Scripting::NewShaderEffect().

Here is the call graph for this function:

Dali Docs Home
Read more about Dali