Dali 3D User Interface Engine
Classes | Functions | Variables
anonymous_namespace{utc-Dali-Popup.cpp} Namespace Reference

Classes

class  TestConnectionTrackerObject
 A connection tracker is required when connecting to a signal with a functor. More...
 
struct  PopupTestFunctor
 This functor is used to test the popup's signal connection. More...
 

Functions

static void TestCallback (BaseHandle handle)
 
int DescendentCount (const Actor &root)
 Counts how many descendants root Actor has, including itself. More...
 
bool HasAncestor (Actor child, Actor ancestor)
 
static void OnPopupTouchedOutside ()
 
static void OnPopupShowing ()
 
static void OnPopupShown ()
 
static void OnPopupHiding ()
 
static void OnPopupHidden ()
 
void ConnectStateSignals (Toolkit::Popup popup)
 
void WaitAnimation (ToolkitTestApplication &application)
 
Integration::KeyEvent GenerateKey (const std::string &keyName, const std::string &keyString, int keyCode, int keyModifier, unsigned long timeStamp, const Integration::KeyEvent::State &keyState)
 

Variables

static bool gObjectCreatedCallBackCalled
 
const int RENDER_FRAME_INTERVAL = 10
 Duration of each frame in ms. More...
 
const int RENDER_ANIMATION_TEST_DURATION_MS = 2000
 2000ms to test animation. More...
 
const int RENDER_ANIMATION_TEST_DURATION_FRAMES = RENDER_ANIMATION_TEST_DURATION_MS / RENDER_FRAME_INTERVAL
 equivalent frames. More...
 
const Vector3 DEFAULT_BUTTON_SIZE (100.0f, 50.0f, 0.0f)
 
const Dali::TouchPoint pointDownOutside (0, TouchPoint::Down, 10.0f, 10.0f)
 
const Dali::TouchPoint pointUpOutside (0, TouchPoint::Up, 10.0f, 10.0f)
 
static Toolkit::Popup::DisplayState gPopupState = Toolkit::Popup::HIDDEN
 
static bool gTouchedOutside
 

Function Documentation

void anonymous_namespace{utc-Dali-Popup.cpp}::ConnectStateSignals ( Toolkit::Popup  popup)
int anonymous_namespace{utc-Dali-Popup.cpp}::DescendentCount ( const Actor root)

Counts how many descendants root Actor has, including itself.

Parameters
[in]rootThe root actor to count from.
Returns
The number of descendants including root actor itself.

Definition at line 68 of file utc-Dali-Popup.cpp.

References Dali::Actor::GetChildAt(), and Dali::Actor::GetChildCount().

Referenced by UtcDaliPopupPropertyTailVisibility().

Here is the call graph for this function:

Here is the caller graph for this function:

Integration::KeyEvent anonymous_namespace{utc-Dali-Popup.cpp}::GenerateKey ( const std::string &  keyName,
const std::string &  keyString,
int  keyCode,
int  keyModifier,
unsigned long  timeStamp,
const Integration::KeyEvent::State &  keyState 
)
bool anonymous_namespace{utc-Dali-Popup.cpp}::HasAncestor ( Actor  child,
Actor  ancestor 
)

Definition at line 82 of file utc-Dali-Popup.cpp.

References Dali::Actor::GetParent().

Referenced by UtcDaliPopupOnControlChildAdd(), UtcDaliPopupSetContentP(), UtcDaliPopupSetControlFooterMultiple(), UtcDaliPopupSetFooterP(), and UtcDaliPopupSetTitleP().

Here is the call graph for this function:

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-Popup.cpp}::OnPopupHidden ( )
static

Definition at line 117 of file utc-Dali-Popup.cpp.

References Dali::Toolkit::Popup::HIDDEN.

Referenced by ConnectStateSignals().

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-Popup.cpp}::OnPopupHiding ( )
static

Definition at line 112 of file utc-Dali-Popup.cpp.

References Dali::Toolkit::Popup::HIDING.

Referenced by ConnectStateSignals().

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-Popup.cpp}::OnPopupShowing ( )
static

Definition at line 102 of file utc-Dali-Popup.cpp.

References Dali::Toolkit::Popup::SHOWING.

Referenced by ConnectStateSignals().

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-Popup.cpp}::OnPopupShown ( )
static

Definition at line 107 of file utc-Dali-Popup.cpp.

References Dali::Toolkit::Popup::SHOWN.

Referenced by ConnectStateSignals().

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-Popup.cpp}::OnPopupTouchedOutside ( )
static

Definition at line 97 of file utc-Dali-Popup.cpp.

Referenced by UtcDaliPopupOnTouchedOutsideSignal().

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-Popup.cpp}::TestCallback ( BaseHandle  handle)
static

Definition at line 49 of file utc-Dali-Popup.cpp.

void anonymous_namespace{utc-Dali-Popup.cpp}::WaitAnimation ( ToolkitTestApplication application)

Definition at line 130 of file utc-Dali-Popup.cpp.

References Dali::TestApplication::Render(), RENDER_ANIMATION_TEST_DURATION_FRAMES, and Dali::TestApplication::SendNotification().

Referenced by UtcDaliPopupPropertyAnimationMode().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const Vector3 anonymous_namespace{utc-Dali-Popup.cpp}::DEFAULT_BUTTON_SIZE(100.0f, 50.0f, 0.0f)
bool anonymous_namespace{utc-Dali-Popup.cpp}::gObjectCreatedCallBackCalled
static

Definition at line 47 of file utc-Dali-Popup.cpp.

Toolkit::Popup::DisplayState anonymous_namespace{utc-Dali-Popup.cpp}::gPopupState = Toolkit::Popup::HIDDEN
static
bool anonymous_namespace{utc-Dali-Popup.cpp}::gTouchedOutside
static

Definition at line 93 of file utc-Dali-Popup.cpp.

Referenced by UtcDaliPopupOnTouchedOutsideSignal().

const Dali::TouchPoint anonymous_namespace{utc-Dali-Popup.cpp}::pointDownOutside(0, TouchPoint::Down, 10.0f, 10.0f)
const Dali::TouchPoint anonymous_namespace{utc-Dali-Popup.cpp}::pointUpOutside(0, TouchPoint::Up, 10.0f, 10.0f)
const int anonymous_namespace{utc-Dali-Popup.cpp}::RENDER_ANIMATION_TEST_DURATION_FRAMES = RENDER_ANIMATION_TEST_DURATION_MS / RENDER_FRAME_INTERVAL
const int anonymous_namespace{utc-Dali-Popup.cpp}::RENDER_ANIMATION_TEST_DURATION_MS = 2000

2000ms to test animation.

Definition at line 55 of file utc-Dali-Popup.cpp.

const int anonymous_namespace{utc-Dali-Popup.cpp}::RENDER_FRAME_INTERVAL = 10

Duration of each frame in ms.

Definition at line 54 of file utc-Dali-Popup.cpp.

Dali Docs Home
Read more about Dali