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

Functions

Integration::PanGestureEvent GeneratePan (Gesture::State state, const Vector2 &previousPosition, const Vector2 &currentPosition, unsigned long timeDelta, unsigned int numberOfTouches=1)
 
static void SendPan (ToolkitTestApplication &application, Gesture::State state, const Vector2 &pos)
 Helper to generate PanGestureEvent. More...
 
int Wait (ToolkitTestApplication &application, int duration=0)
 
static void OnPanFinished ()
 Invoked when pan gesture is finished on the scroll indicator. More...
 
static void OnScrollPositionIntervalReached (float position)
 Invoked when the current scroll position of the scrollable content goes above or below the values specified by SCROLL_POSITION_INTERVALS property. More...
 
static Vector2 PerformGestureSwipe (ToolkitTestApplication &application, Vector2 start, Vector2 direction, int frames)
 

Variables

const int RENDER_FRAME_INTERVAL = 16
 Duration of each frame in ms. (at approx 60FPS) More...
 
static bool gOnPanFinishedCalled
 Whether the PanFinished signal was invoked. More...
 
static bool gOnScrollPositionIntervalReachedSignalCalled
 Whether the ScrollPositionIntervalReached signal was invoked. More...
 

Function Documentation

Integration::PanGestureEvent anonymous_namespace{utc-Dali-ScrollBar.cpp}::GeneratePan ( Gesture::State  state,
const Vector2 previousPosition,
const Vector2 currentPosition,
unsigned long  timeDelta,
unsigned int  numberOfTouches = 1 
)

Definition at line 43 of file utc-Dali-ScrollBar.cpp.

static void anonymous_namespace{utc-Dali-ScrollBar.cpp}::OnPanFinished ( )
static

Invoked when pan gesture is finished on the scroll indicator.

Definition at line 115 of file utc-Dali-ScrollBar.cpp.

Referenced by UtcDaliToolkitScrollBarPanFinishedSignalN(), and UtcDaliToolkitScrollBarPanFinishedSignalP().

Here is the caller graph for this function:

static void anonymous_namespace{utc-Dali-ScrollBar.cpp}::OnScrollPositionIntervalReached ( float  position)
static

Invoked when the current scroll position of the scrollable content goes above or below the values specified by SCROLL_POSITION_INTERVALS property.

Parameters
[in]positionThe current scroll position.

Definition at line 126 of file utc-Dali-ScrollBar.cpp.

Referenced by UtcDaliToolkitScrollBarScrollPositionIntervalReachedSignalN(), UtcDaliToolkitScrollBarScrollPositionIntervalReachedSignalP(), and UtcDaliToolkitScrollBarSetScrollPositionIntervalsP().

Here is the caller graph for this function:

static Vector2 anonymous_namespace{utc-Dali-ScrollBar.cpp}::PerformGestureSwipe ( ToolkitTestApplication application,
Vector2  start,
Vector2  direction,
int  frames 
)
static
static void anonymous_namespace{utc-Dali-ScrollBar.cpp}::SendPan ( ToolkitTestApplication application,
Gesture::State  state,
const Vector2 pos 
)
static

Helper to generate PanGestureEvent.

Parameters
[in]applicationApplication instance
[in]stateThe Gesture State
[in]posThe current position of touch.

Definition at line 67 of file utc-Dali-ScrollBar.cpp.

References anonymous_namespace{utc-Dali-PanGestureDetector.cpp}::GeneratePan(), Dali::Gesture::Possible, Dali::TestApplication::ProcessEvent(), Dali::Gesture::Started, Dali::Vector2::x, and Dali::Vector2::y.

Here is the call graph for this function:

int anonymous_namespace{utc-Dali-ScrollBar.cpp}::Wait ( ToolkitTestApplication application,
int  duration = 0 
)

Variable Documentation

bool anonymous_namespace{utc-Dali-ScrollBar.cpp}::gOnPanFinishedCalled
static

Whether the PanFinished signal was invoked.

Definition at line 109 of file utc-Dali-ScrollBar.cpp.

Referenced by UtcDaliToolkitScrollBarPanFinishedSignalN(), and UtcDaliToolkitScrollBarPanFinishedSignalP().

bool anonymous_namespace{utc-Dali-ScrollBar.cpp}::gOnScrollPositionIntervalReachedSignalCalled
static
const int anonymous_namespace{utc-Dali-ScrollBar.cpp}::RENDER_FRAME_INTERVAL = 16

Duration of each frame in ms. (at approx 60FPS)

Definition at line 40 of file utc-Dali-ScrollBar.cpp.

Dali Docs Home
Read more about Dali