Dali 3D User Interface Engine
Classes | Namespaces | Functions | Variables
utc-Dali-Actor.cpp File Reference
#include "assert.h"
#include <dali/public-api/dali-core.h>
#include <string>
#include <cfloat>
#include <dali/integration-api/events/touch-event-integ.h>
#include <dali/integration-api/events/hover-event-integ.h>
#include <dali-test-suite-utils.h>
Include dependency graph for utc-Dali-Actor.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{utc-Dali-Actor.cpp}::TestConstraint
 
struct  anonymous_namespace{utc-Dali-Actor.cpp}::TestConstraintRef< T >
 TestConstraint reference. More...
 
struct  anonymous_namespace{utc-Dali-Actor.cpp}::PositionComponentConstraint
 
struct  anonymous_namespace{utc-Dali-Actor.cpp}::PropertyStringIndex
 

Namespaces

namespace  anonymous_namespace{utc-Dali-Actor.cpp}
 

Functions

void utc_dali_actor_startup (void)
 
void utc_dali_actor_cleanup (void)
 
int anonymous_namespace{utc-Dali-Actor.cpp}::SimulateTouchForSetOverlayHitTest (TestApplication &app)
 Simulates a Down Touch at 25.0, 25.0. More...
 
static bool anonymous_namespace{utc-Dali-Actor.cpp}::TestCallback (Actor actor, const TouchEvent &event)
 
static bool anonymous_namespace{utc-Dali-Actor.cpp}::TestCallback3 (Actor actor, const HoverEvent &event)
 
void anonymous_namespace{utc-Dali-Actor.cpp}::SetSizeCallback (Actor actor, const Vector3 &size)
 
void anonymous_namespace{utc-Dali-Actor.cpp}::OnStageCallback (Actor actor)
 
void anonymous_namespace{utc-Dali-Actor.cpp}::OffStageCallback (Actor actor)
 
void anonymous_namespace{utc-Dali-Actor.cpp}::OnRelayoutCallback (Actor actor)
 
int UtcDaliActorNew (void)
 
int UtcDaliActorDownCastP (void)
 
int UtcDaliActorDownCastN (void)
 
int UtcDaliActorGetName (void)
 
int UtcDaliActorSetName (void)
 
int UtcDaliActorGetId (void)
 
int UtcDaliActorIsRoot (void)
 
int UtcDaliActorOnStage (void)
 
int UtcDaliActorIsLayer (void)
 
int UtcDaliActorGetLayer (void)
 
int UtcDaliActorAddP (void)
 
int UtcDaliActorAddN (void)
 
int UtcDaliActorRemoveN (void)
 
int UtcDaliActorRemoveP (void)
 
int UtcDaliActorGetChildCount (void)
 
int UtcDaliActorGetChildren01 (void)
 
int UtcDaliActorGetChildren02 (void)
 
int UtcDaliActorGetParent01 (void)
 
int UtcDaliActorGetParent02 (void)
 
int UtcDaliActorSetParentOrigin (void)
 
int UtcDaliActorGetCurrentParentOrigin (void)
 
int UtcDaliActorSetAnchorPoint (void)
 
int UtcDaliActorGetCurrentAnchorPoint (void)
 
int UtcDaliActorSetSize01 (void)
 
int UtcDaliActorSetSize02 (void)
 
int UtcDaliActorSetSize03 (void)
 
int UtcDaliActorSetSize04 (void)
 
int UtcDaliActorGetCurrentSize (void)
 
int UtcDaliActorGetNaturalSize (void)
 
int UtcDaliActorGetCurrentSizeImmediate (void)
 
int UtcDaliActorSetPosition01 (void)
 
int UtcDaliActorSetPosition02 (void)
 
int UtcDaliActorSetPosition03 (void)
 
int UtcDaliActorSetX (void)
 
int UtcDaliActorSetY (void)
 
int UtcDaliActorSetZ (void)
 
int UtcDaliActorTranslateBy (void)
 
int UtcDaliActorGetCurrentPosition (void)
 
int UtcDaliActorGetCurrentWorldPosition (void)
 
int UtcDaliActorInheritPosition (void)
 
int UtcDaliActorSetOrientation01 (void)
 
int UtcDaliActorSetOrientation02 (void)
 
int UtcDaliActorRotateBy01 (void)
 
int UtcDaliActorRotateBy02 (void)
 
int UtcDaliActorGetCurrentOrientation (void)
 
int UtcDaliActorGetCurrentWorldOrientation (void)
 
int UtcDaliActorSetScale01 (void)
 
int UtcDaliActorSetScale02 (void)
 
int UtcDaliActorSetScale03 (void)
 
int UtcDaliActorScaleBy (void)
 
int UtcDaliActorGetCurrentScale (void)
 
int UtcDaliActorGetCurrentWorldScale (void)
 
int UtcDaliActorInheritScale (void)
 
int UtcDaliActorSetVisible (void)
 
int UtcDaliActorIsVisible (void)
 
int UtcDaliActorSetOpacity (void)
 
int UtcDaliActorGetCurrentOpacity (void)
 
int UtcDaliActorSetSensitive (void)
 
int UtcDaliActorIsSensitive (void)
 
int UtcDaliActorSetColor (void)
 
int UtcDaliActorGetCurrentColor (void)
 
int UtcDaliActorGetCurrentWorldColor (void)
 
int UtcDaliActorSetColorMode (void)
 
int UtcDaliActorScreenToLocal (void)
 
int UtcDaliActorSetLeaveRequired (void)
 
int UtcDaliActorGetLeaveRequired (void)
 
int UtcDaliActorSetKeyboardFocusable (void)
 
int UtcDaliActorIsKeyboardFocusable (void)
 
int UtcDaliActorRemoveConstraints (void)
 
int UtcDaliActorRemoveConstraintTag (void)
 
int UtcDaliActorTouchedSignal (void)
 
int UtcDaliActorHoveredSignal (void)
 
int UtcDaliActorOnOffStageSignal (void)
 
int UtcDaliActorFindChildByName (void)
 
int UtcDaliActorFindChildById (void)
 
int UtcDaliActorHitTest (void)
 
int UtcDaliActorSetDrawMode (void)
 
int UtcDaliActorSetDrawModeOverlayRender (void)
 
int UtcDaliActorGetCurrentWorldMatrix (void)
 
int UtcDaliActorConstrainedToWorldMatrix (void)
 
int UtcDaliActorUnparent (void)
 
int UtcDaliActorGetChildAt (void)
 
int UtcDaliActorSetGetOverlay (void)
 
int UtcDaliActorCreateDestroy (void)
 
int UtcDaliActorProperties (void)
 
int UtcDaliRelayoutProperties_ResizePolicies (void)
 
int UtcDaliRelayoutProperties_SizeScalePolicy (void)
 
int UtcDaliRelayoutProperties_SizeModeFactor (void)
 
int UtcDaliRelayoutProperties_DimensionDependency (void)
 
int UtcDaliRelayoutProperties_Padding (void)
 
int UtcDaliRelayoutProperties_MinimumMaximumSize (void)
 
int UtcDaliActorGetHeightForWidth (void)
 
int UtcDaliActorGetWidthForHeight (void)
 
int UtcDaliActorGetRelayoutSize (void)
 
int UtcDaliActorSetPadding (void)
 
int UtcDaliActorSetMinimumSize (void)
 
int UtcDaliActorSetMaximumSize (void)
 
int UtcDaliActorOnRelayoutSignal (void)
 
int UtcDaliActorGetHierachyDepth (void)
 

Variables

bool anonymous_namespace{utc-Dali-Actor.cpp}::gTouchCallBackCalled =false
 
bool anonymous_namespace{utc-Dali-Actor.cpp}::gHoverCallBackCalled =false
 
static bool anonymous_namespace{utc-Dali-Actor.cpp}::gTestConstraintCalled
 
static Vector3 anonymous_namespace{utc-Dali-Actor.cpp}::gSetSize
 
static bool anonymous_namespace{utc-Dali-Actor.cpp}::gSetSizeCallBackCalled
 
static std::vector< std::string > anonymous_namespace{utc-Dali-Actor.cpp}::gActorNamesOnOffStage
 
static int anonymous_namespace{utc-Dali-Actor.cpp}::gOnStageCallBackCalled
 
static int anonymous_namespace{utc-Dali-Actor.cpp}::gOffStageCallBackCalled
 
static bool anonymous_namespace{utc-Dali-Actor.cpp}::gOnRelayoutCallBackCalled = false
 
static std::vector< std::string > anonymous_namespace{utc-Dali-Actor.cpp}::gActorNamesRelayout
 
const PropertyStringIndex anonymous_namespace{utc-Dali-Actor.cpp}::PROPERTY_TABLE []
 
const unsigned int anonymous_namespace{utc-Dali-Actor.cpp}::PROPERTY_TABLE_COUNT = sizeof( PROPERTY_TABLE ) / sizeof( PROPERTY_TABLE[0] )
 

Function Documentation

void utc_dali_actor_cleanup ( void  )

Definition at line 37 of file utc-Dali-Actor.cpp.

References test_return_value, and TET_PASS.

void utc_dali_actor_startup ( void  )

Definition at line 32 of file utc-Dali-Actor.cpp.

References test_return_value, and TET_UNDEF.

int UtcDaliActorAddN ( void  )
int UtcDaliActorAddP ( void  )

Definition at line 301 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_EQUALS(), END_TEST, Dali::Actor::GetChildCount(), Dali::Actor::New(), TEST_LOCATION, and tet_infoline().

Here is the call graph for this function:

int UtcDaliActorConstrainedToWorldMatrix ( void  )
int UtcDaliActorCreateDestroy ( void  )

Definition at line 2450 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, and END_TEST.

int UtcDaliActorDownCastN ( void  )

Definition at line 197 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, Dali::Actor::DownCast(), END_TEST, and tet_infoline().

Here is the call graph for this function:

int UtcDaliActorDownCastP ( void  )

Definition at line 184 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, Dali::Actor::DownCast(), END_TEST, Dali::Actor::New(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliActorFindChildById ( void  )

Definition at line 2068 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_CHECK, END_TEST, Dali::Actor::FindChildById(), Dali::Actor::GetId(), Dali::Actor::New(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliActorFindChildByName ( void  )

Definition at line 2039 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_CHECK, END_TEST, Dali::Actor::FindChildByName(), Dali::Actor::New(), Dali::Actor::SetName(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliActorGetChildAt ( void  )
int UtcDaliActorGetChildCount ( void  )

Definition at line 483 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_CHECK, END_TEST, Dali::Actor::GetChildCount(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetChildren01 ( void  )

Definition at line 498 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_CHECK, END_TEST, Dali::Actor::GetChildAt(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetChildren02 ( void  )

Definition at line 517 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_CHECK, END_TEST, Dali::Actor::GetChildAt(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetCurrentAnchorPoint ( void  )
int UtcDaliActorGetCurrentColor ( void  )
int UtcDaliActorGetCurrentOpacity ( void  )
int UtcDaliActorGetCurrentOrientation ( void  )
int UtcDaliActorGetCurrentParentOrigin ( void  )
int UtcDaliActorGetCurrentPosition ( void  )
int UtcDaliActorGetCurrentScale ( void  )
int UtcDaliActorGetCurrentSize ( void  )
int UtcDaliActorGetCurrentSizeImmediate ( void  )
int UtcDaliActorGetCurrentWorldColor ( void  )
int UtcDaliActorGetCurrentWorldMatrix ( void  )
int UtcDaliActorGetCurrentWorldOrientation ( void  )
int UtcDaliActorGetCurrentWorldPosition ( void  )
int UtcDaliActorGetCurrentWorldScale ( void  )
int UtcDaliActorGetHeightForWidth ( void  )

Definition at line 2687 of file utc-Dali-Actor.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Actor::GetHeightForWidth(), Dali::Actor::New(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliActorGetHierachyDepth ( void  )
int UtcDaliActorGetId ( void  )

Definition at line 232 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetId(), Dali::Actor::New(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliActorGetLayer ( void  )

Definition at line 285 of file utc-Dali-Actor.cpp.

References Dali::Stage::Add(), DALI_TEST_CHECK, END_TEST, Dali::Stage::GetCurrent(), Dali::Stage::GetLayer(), Dali::Actor::GetLayer(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetLeaveRequired ( void  )

Definition at line 1752 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetLeaveRequired(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetName ( void  )

Definition at line 209 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetName(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetNaturalSize ( void  )

Definition at line 769 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetNaturalSize(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetParent01 ( void  )

Definition at line 538 of file utc-Dali-Actor.cpp.

References Dali::Actor::Add(), DALI_TEST_CHECK, END_TEST, Dali::Actor::GetParent(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetParent02 ( void  )

Definition at line 551 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetParent(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorGetRelayoutSize ( void  )
int UtcDaliActorGetWidthForHeight ( void  )

Definition at line 2698 of file utc-Dali-Actor.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Actor::GetWidthForHeight(), Dali::Actor::New(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliActorHitTest ( void  )
int UtcDaliActorHoveredSignal ( void  )
int UtcDaliActorInheritPosition ( void  )
int UtcDaliActorInheritScale ( void  )
int UtcDaliActorIsKeyboardFocusable ( void  )

Definition at line 1776 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::IsKeyboardFocusable(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorIsLayer ( void  )

Definition at line 272 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Stage::GetCurrent(), Dali::Stage::GetLayer(), Dali::Actor::IsLayer(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorIsRoot ( void  )

Definition at line 246 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Stage::GetCurrent(), Dali::Stage::GetLayer(), Dali::Actor::IsRoot(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorIsSensitive ( void  )

Definition at line 1570 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::IsSensitive(), Dali::Actor::New(), and Dali::Actor::SetSensitive().

Here is the call graph for this function:

int UtcDaliActorIsVisible ( void  )

Definition at line 1491 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::IsVisible(), and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorNew ( void  )

Definition at line 173 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, and Dali::Actor::New().

Here is the call graph for this function:

int UtcDaliActorOnOffStageSignal ( void  )
int UtcDaliActorOnRelayoutSignal ( void  )
int UtcDaliActorOnStage ( void  )

Definition at line 259 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Stage::GetCurrent(), Dali::Stage::GetLayer(), Dali::Actor::New(), and Dali::Actor::OnStage().

Here is the call graph for this function:

int UtcDaliActorProperties ( void  )
int UtcDaliActorRemoveConstraints ( void  )
int UtcDaliActorRemoveConstraintTag ( void  )

< constraint 1 should not apply now.

< constraint 2 should not apply now.

< constraint 1 should not apply now.

< constraint 2 should not apply now.

Definition at line 1814 of file utc-Dali-Actor.cpp.

References Dali::Stage::Add(), Dali::Constraint::Apply(), Dali::Actor::Property::COLOR, DALI_TEST_EQUALS(), END_TEST, Dali::Stage::GetCurrent(), Dali::Actor::New(), Dali::TestApplication::Render(), Dali::TestApplication::SendNotification(), Dali::Constraint::SetTag(), TEST_LOCATION, tet_infoline(), and Dali::Color::WHITE.

Here is the call graph for this function:

int UtcDaliActorRemoveN ( void  )
int UtcDaliActorRemoveP ( void  )
int UtcDaliActorRotateBy01 ( void  )
int UtcDaliActorRotateBy02 ( void  )
int UtcDaliActorScaleBy ( void  )
int UtcDaliActorScreenToLocal ( void  )
int UtcDaliActorSetAnchorPoint ( void  )
int UtcDaliActorSetColor ( void  )
int UtcDaliActorSetColorMode ( void  )
int UtcDaliActorSetDrawMode ( void  )
int UtcDaliActorSetDrawModeOverlayRender ( void  )
int UtcDaliActorSetGetOverlay ( void  )
int UtcDaliActorSetKeyboardFocusable ( void  )

Definition at line 1762 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::IsKeyboardFocusable(), Dali::Actor::New(), and Dali::Actor::SetKeyboardFocusable().

Here is the call graph for this function:

int UtcDaliActorSetLeaveRequired ( void  )

Definition at line 1738 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetLeaveRequired(), Dali::Actor::New(), and Dali::Actor::SetLeaveRequired().

Here is the call graph for this function:

int UtcDaliActorSetMaximumSize ( void  )
int UtcDaliActorSetMinimumSize ( void  )
int UtcDaliActorSetName ( void  )

Definition at line 220 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::GetName(), Dali::Actor::New(), and Dali::Actor::SetName().

Here is the call graph for this function:

int UtcDaliActorSetOpacity ( void  )
int UtcDaliActorSetOrientation01 ( void  )
int UtcDaliActorSetOrientation02 ( void  )
int UtcDaliActorSetPadding ( void  )
int UtcDaliActorSetParentOrigin ( void  )
int UtcDaliActorSetPosition01 ( void  )
int UtcDaliActorSetPosition02 ( void  )
int UtcDaliActorSetPosition03 ( void  )
int UtcDaliActorSetScale01 ( void  )
int UtcDaliActorSetScale02 ( void  )
int UtcDaliActorSetScale03 ( void  )
int UtcDaliActorSetSensitive ( void  )

Definition at line 1557 of file utc-Dali-Actor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Actor::IsSensitive(), Dali::Actor::New(), and Dali::Actor::SetSensitive().

Here is the call graph for this function:

int UtcDaliActorSetSize01 ( void  )
int UtcDaliActorSetSize02 ( void  )
int UtcDaliActorSetSize03 ( void  )
int UtcDaliActorSetSize04 ( void  )
int UtcDaliActorSetVisible ( void  )
int UtcDaliActorSetX ( void  )
int UtcDaliActorSetY ( void  )
int UtcDaliActorSetZ ( void  )
int UtcDaliActorTouchedSignal ( void  )
int UtcDaliActorTranslateBy ( void  )
int UtcDaliActorUnparent ( void  )
int UtcDaliRelayoutProperties_DimensionDependency ( void  )
int UtcDaliRelayoutProperties_MinimumMaximumSize ( void  )
int UtcDaliRelayoutProperties_Padding ( void  )
int UtcDaliRelayoutProperties_ResizePolicies ( void  )
int UtcDaliRelayoutProperties_SizeModeFactor ( void  )
int UtcDaliRelayoutProperties_SizeScalePolicy ( void  )
Dali Docs Home
Read more about Dali