Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
Dali::Internal::Adaptor::Adaptor Class Reference

Implementation of the Adaptor class. More...

#include <adaptor-impl.h>

Inheritance diagram for Dali::Internal::Adaptor::Adaptor:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::Adaptor:
Collaboration graph
[legend]

Public Types

typedef
Dali::Adaptor::AdaptorSignalType 
AdaptorSignalType
 

Public Member Functions

void Initialize (Dali::Configuration::ContextLoss configuration)
 2-step initialisation, this should be called after creating an adaptor instance. More...
 
virtual ~Adaptor ()
 Virtual destructor. More...
 
void SceneCreated ()
  More...
 
virtual void Start ()
  More...
 
virtual void Pause ()
  More...
 
virtual void Resume ()
  More...
 
virtual void Stop ()
  More...
 
virtual void ContextLost ()
  More...
 
virtual void ContextRegained ()
  More...
 
virtual void FeedTouchPoint (TouchPoint &point, int timeStamp)
  More...
 
virtual void FeedWheelEvent (WheelEvent &wheelEvent)
  More...
 
virtual void FeedKeyEvent (KeyEvent &keyEvent)
  More...
 
virtual bool MoveResize (const PositionSize &positionSize)
  More...
 
virtual void SurfaceResized (const PositionSize &positionSize)
  More...
 
virtual void ReplaceSurface (Any nativeWindow, RenderSurface &surface)
  More...
 
virtual RenderSurface & GetSurface () const
  More...
 
virtual void ReleaseSurfaceLock ()
  More...
 
virtual Dali::TtsPlayer GetTtsPlayer (Dali::TtsPlayer::Mode mode)
 Retrieve the TtsPlayer. More...
 
virtual bool AddIdle (CallbackBase *callback)
  More...
 
virtual Dali::Integration::CoreGetCore ()
 
void SetRenderRefreshRate (unsigned int numberOfVSyncsPerRender)
  More...
 
void SetUseHardwareVSync (bool useHardware)
  More...
 
EglFactoryGetEGLFactory () const
 
Integration::GlAbstractionGetGlAbstraction () const
 Return GlAbstraction. More...
 
Integration::PlatformAbstractionGetPlatformAbstraction () const
 Return the PlatformAbstraction. More...
 
void SetDragAndDropDetector (DragAndDropDetectorPtr detector)
 Sets the Drag & Drop Listener. More...
 
void SetRotationObserver (RotationObserver *observer)
 Sets a rotation observer, or set to NULL to remove. More...
 
void DestroyTtsPlayer (Dali::TtsPlayer::Mode mode)
 Destroy the TtsPlayer of sepcific mode. More...
 
void SetMinimumPinchDistance (float distance)
 Sets minimum distance in pixels that the fingers must move towards/away from each other in order to trigger a pinch gesture. More...
 
Any GetNativeWindowHandle ()
 Gets native window handle. More...
 
void AddObserver (LifeCycleObserver &observer)
 Adds an adaptor observer so that we can observe the adaptor's lifetime events. More...
 
void RemoveObserver (LifeCycleObserver &observer)
 Removes the observer from the adaptor. More...
 
void SendNotificationEvent ()
 Emits the Notification event to the Dali core. More...
 
void RequestUpdateOnce ()
 Request adaptor to update once. More...
 
void NotifySceneCreated ()
  More...
 
void NotifyLanguageChanged ()
  More...
 
virtual
Dali::Integration::PlatformAbstraction
GetPlatformAbstractionInterface ()
  More...
 
virtual
Dali::Integration::GlAbstraction
GetGlesInterface ()
  More...
 
virtual EglFactoryInterfaceGetEGLFactoryInterface () const
  More...
 
virtual TriggerEventInterface & GetProcessCoreEventsTrigger ()
  More...
 
virtual
TriggerEventFactoryInterface & 
GetTriggerEventFactoryInterface ()
  More...
 
virtual SocketFactoryInterfaceGetSocketFactoryInterface ()
  More...
 
virtual RenderSurface * GetRenderSurfaceInterface ()
  More...
 
virtual VSyncMonitorInterfaceGetVSyncMonitorInterface ()
  More...
 
virtual PerformanceInterfaceGetPerformanceInterface ()
  More...
 
virtual TraceInterfaceGetKernelTraceInterface ()
 copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetKernelTraceInterface() More...
 
virtual TraceInterfaceGetSystemTraceInterface ()
 copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSystemTraceInterface() More...
 
void SetViewMode (ViewMode viewMode)
 Set the stereoscopic 3D view mode. More...
 
ViewMode GetViewMode () const
 Get the current view mode. More...
 
void SetStereoBase (float stereoBase)
 Set the stereo base (eye seperation) for stereoscopic 3D. More...
 
float GetStereoBase () const
 Get the stereo base (eye seperation) for stereoscopic 3D. More...
 
AdaptorSignalTypeResizedSignal ()
  More...
 
AdaptorSignalTypeLanguageChangedSignal ()
  More...
 

Static Public Member Functions

static Dali::Adaptor * New (Any nativeWindow, RenderSurface *surface, Dali::Configuration::ContextLoss configuration, EnvironmentOptions *environmentOptions)
 Creates a New Adaptor. More...
 
static Dali::Adaptor * New (Dali::Window window, Dali::Configuration::ContextLoss configuration, EnvironmentOptions *environmentOptions)
 Creates a New Adaptor. More...
 
static Dali::Adaptor & Get ()
 Retrieve an enumerated property type. More...
 
static bool IsAvailable ()
  More...
 
static AdaptorGetImplementation (Dali::Adaptor &adaptor)
 

Private Types

enum  State {
  READY, RUNNING, PAUSED, PAUSED_WHILE_HIDDEN,
  STOPPED
}
 
typedef std::vector
< LifeCycleObserver * > 
ObserverContainer
 

Private Member Functions

virtual void QueueCoreEvent (const Dali::Integration::Event &event)
 Queue an event with Core. More...
 
virtual void ProcessCoreEvents ()
  More...
 
virtual void RequestUpdate ()
 Called by the Dali core when it requires another update. More...
 
virtual void RequestProcessEventsOnIdle ()
 Called by Dali core when it requires an notification event being sent on idle. More...
 
virtual void OnWindowShown ()
 Called when the window becomes fully or partially visible. More...
 
virtual void OnWindowHidden ()
 Called when the window is fully hidden. More...
 
void OnDamaged (const DamageArea &area)
 Deriving classes should override this to be notified when we receive a damage event. More...
 
 Adaptor (const Adaptor &)
 
Adaptoroperator= (Adaptor &)
 
void SurfaceSizeChanged (const PositionSize &positionSize)
 Informs core the surface size has changed. More...
 
void SetSurface (RenderSurface *surface)
 Assigns the render surface to the adaptor. More...
 
void ProcessCoreEventsFromIdle ()
 Sends an notification message from main loop idle handler. More...
 
void GetDataStoragePath (std::string &path)
 Gets path for data/resource storage. More...
 
 Adaptor (Any nativeWindow, Dali::Adaptor &adaptor, RenderSurface *surface, EnvironmentOptions *environmentOptions)
 Constructor. More...
 

Private Attributes

AdaptorSignalType mResizedSignal
 Resized signal. More...
 
AdaptorSignalType mLanguageChangedSignal
 Language changed signal. More...
 
Dali::Adaptor & mAdaptor
 Reference to public adaptor instance. More...
 
State mState
 Current state of the adaptor. More...
 
Dali::Integration::CoremCore
 Dali Core. More...
 
ThreadControllermThreadController
 Controls the threads. More...
 
VSyncMonitormVSyncMonitor
 Monitors VSync events. More...
 
GlImplementationmGLES
 GL implementation. More...
 
GlSyncImplementation * mGlSync
 GL Sync implementation. More...
 
EglFactorymEglFactory
 EGL Factory. More...
 
Any mNativeWindow
 window identifier More...
 
RenderSurface * mSurface
 Current surface. More...
 
TizenPlatform::TizenPlatformAbstractionmPlatformAbstraction
 Platform abstraction. More...
 
EventHandlermEventHandler
 event handler More...
 
CallbackManagermCallbackManager
 Used to install callbacks. More...
 
bool mNotificationOnIdleInstalled
 whether the idle handler is installed to send an notification event More...
 
TriggerEventInterface * mNotificationTrigger
 Notification event trigger. More...
 
GestureManagermGestureManager
 Gesture manager. More...
 
FeedbackPluginProxymDaliFeedbackPlugin
 Used to access feedback support. More...
 
FeedbackController * mFeedbackController
 Plays feedback effects for Dali-Toolkit UI Controls. More...
 
Dali::TtsPlayer mTtsPlayers [Dali::TtsPlayer::MODE_NUM]
 Provides TTS support. More...
 
ObserverContainer mObservers
 A list of adaptor observer pointers. More...
 
DragAndDropDetectorPtr mDragAndDropDetector
 The Drag & Drop detector. More...
 
RotationObservermDeferredRotationObserver
 deferred Rotation observer needs event handler More...
 
EnvironmentOptionsmEnvironmentOptions
 environment options More...
 
PerformanceInterfacemPerformanceInterface
 Performance interface. More...
 
KernelTrace mKernelTracer
 Kernel tracer. More...
 
SystemTrace mSystemTracer
 System tracer. More...
 
TriggerEventFactory mTriggerEventFactory
 Trigger event factory. More...
 
ObjectProfilermObjectProfiler
 Tracks object lifetime for profiling. More...
 
SocketFactory mSocketFactory
 Socket factory. More...
 
const bool mEnvironmentOptionsOwned:1
 Whether we own the EnvironmentOptions (and thus, need to delete it) More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::Integration::RenderController
virtual ~RenderController ()
 Virtual protected destructor, no deletion through this interface. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::AdaptorInternalServices
 AdaptorInternalServices ()
 constructor More...
 
virtual ~AdaptorInternalServices ()
 virtual destructor More...
 
 AdaptorInternalServices (const AdaptorInternalServices &)
 
AdaptorInternalServicesoperator= (const AdaptorInternalServices &)
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::CoreEventInterface
virtual ~CoreEventInterface ()
 Protected virtual destructor. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::DamageObserver
 DamageObserver ()
 Protected Constructor. More...
 
virtual ~DamageObserver ()
 Protected virtual destructor. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::WindowVisibilityObserver
 WindowVisibilityObserver ()
 Protected Constructor. More...
 
virtual ~WindowVisibilityObserver ()
 Protected virtual destructor. More...
 

Detailed Description

Implementation of the Adaptor class.

Definition at line 83 of file adaptor-impl.h.

Member Typedef Documentation

typedef Dali::Adaptor::AdaptorSignalType Dali::Internal::Adaptor::Adaptor::AdaptorSignalType

Definition at line 91 of file adaptor-impl.h.

Definition at line 522 of file adaptor-impl.h.

Member Enumeration Documentation

Enumerator
READY 

Initial state before Adaptor::Start is called.

RUNNING 

Adaptor is running.

PAUSED 

Adaptor has been paused.

PAUSED_WHILE_HIDDEN 

Adaptor is paused while window is hidden (& cannot be resumed until window is shown).

STOPPED 

Adaptor has been stopped.

Definition at line 513 of file adaptor-impl.h.

Constructor & Destructor Documentation

Dali::Adaptor::~Adaptor ( )
virtual
Dali::Internal::Adaptor::Adaptor::Adaptor ( const Adaptor )
private

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Adaptor::Adaptor::Adaptor ( Any  nativeWindow,
Dali::Adaptor &  adaptor,
RenderSurface *  surface,
EnvironmentOptions environmentOptions 
)
private

Constructor.

Parameters
[in]nativeWindownative window handle
[in]adaptorThe public adaptor
[in]surfaceA render surface can be one of the following
  • Pixmap, adaptor will use existing Pixmap to draw on to
  • Window, adaptor will use existing Window to draw on to
[in]environmentOptionsA pointer to the environment options. If NULL then one is created.

Definition at line 758 of file adaptor-impl.cpp.

References DALI_ASSERT_ALWAYS, Dali::Internal::Adaptor::anonymous_namespace{adaptor-impl.cpp}::gThreadLocalAdaptor, and IsAvailable().

Here is the call graph for this function:

Member Function Documentation

bool Dali::Adaptor::AddIdle ( CallbackBase callback)
virtual

Definition at line 457 of file adaptor-impl.cpp.

References Dali::Internal::Adaptor::CallbackManager::AddIdleCallback(), mCallbackManager, mState, and RUNNING.

Referenced by RequestProcessEventsOnIdle().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::AddObserver ( LifeCycleObserver observer)

Adds an adaptor observer so that we can observe the adaptor's lifetime events.

Parameters
[in]observerThe observer.
Note
Observers should remove themselves when they are destroyed.

Definition at line 619 of file adaptor-impl.cpp.

References mObservers.

void Dali::Internal::Adaptor::Adaptor::ContextLost ( )
virtual

Definition at line 360 of file adaptor-impl.cpp.

References Dali::Integration::Core::GetContextNotifier(), mCore, and Dali::Integration::ContextNotifierInterface::NotifyContextLost().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::ContextRegained ( )
virtual
void Dali::Internal::Adaptor::Adaptor::DestroyTtsPlayer ( Dali::TtsPlayer::Mode  mode)

Destroy the TtsPlayer of sepcific mode.

Parameters
[in]modeThe mode of TtsPlayer to destroy

Definition at line 598 of file adaptor-impl.cpp.

References mTtsPlayers, and Dali::BaseHandle::Reset().

Here is the call graph for this function:

void Dali::Adaptor::FeedKeyEvent ( KeyEvent keyEvent)
virtual

Definition at line 383 of file adaptor-impl.cpp.

References Dali::Internal::Adaptor::EventHandler::FeedKeyEvent(), and mEventHandler.

Here is the call graph for this function:

void Dali::Adaptor::FeedTouchPoint ( TouchPoint point,
int  timeStamp 
)
virtual

Definition at line 373 of file adaptor-impl.cpp.

References Dali::Internal::Adaptor::EventHandler::FeedTouchPoint(), and mEventHandler.

Here is the call graph for this function:

void Dali::Adaptor::FeedWheelEvent ( WheelEvent wheelEvent)
virtual

Definition at line 378 of file adaptor-impl.cpp.

References Dali::Internal::Adaptor::EventHandler::FeedWheelEvent(), and mEventHandler.

Here is the call graph for this function:

Adaptor & Dali::Adaptor::Get ( )
static

Retrieve an enumerated property type.

New versions of this templated function must be defined for future types. .0

Returns
The property type.

Definition at line 471 of file adaptor-impl.cpp.

References DALI_ASSERT_ALWAYS, Dali::Internal::Adaptor::anonymous_namespace{adaptor-impl.cpp}::gThreadLocalAdaptor, IsAvailable(), and mAdaptor.

Referenced by Dali::Internal::Adaptor::StyleMonitor::Get().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali::Integration::Core & Dali::Internal::Adaptor::Adaptor::GetCore ( )
virtual
Returns
the Core instance

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 487 of file adaptor-impl.cpp.

References mCore.

Referenced by NotifySceneCreated().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::GetDataStoragePath ( std::string &  path)
private

Gets path for data/resource storage.

Parameters
[out]pathPath for data/resource storage

Referenced by Initialize().

Here is the caller graph for this function:

EglFactory & Dali::Internal::Adaptor::Adaptor::GetEGLFactory ( ) const
Returns
reference to EglFactory class

Definition at line 502 of file adaptor-impl.cpp.

References DALI_ASSERT_DEBUG, and mEglFactory.

EglFactoryInterface & Dali::Internal::Adaptor::Adaptor::GetEGLFactoryInterface ( ) const
virtual

Returns
egl factory

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 508 of file adaptor-impl.cpp.

References mEglFactory.

Integration::GlAbstraction & Dali::Internal::Adaptor::Adaptor::GetGlAbstraction ( ) const

Return GlAbstraction.

Returns
the GlAbstraction.

Definition at line 513 of file adaptor-impl.cpp.

References DALI_ASSERT_DEBUG, and mGLES.

Dali::Integration::GlAbstraction & Dali::Internal::Adaptor::Adaptor::GetGlesInterface ( )
virtual

Returns
gles abstraction

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 524 of file adaptor-impl.cpp.

References mGLES.

static Adaptor& Dali::Internal::Adaptor::Adaptor::GetImplementation ( Dali::Adaptor &  adaptor)
inlinestatic
TraceInterface & Dali::Internal::Adaptor::Adaptor::GetKernelTraceInterface ( )
virtual
Any Dali::Internal::Adaptor::Adaptor::GetNativeWindowHandle ( )

Gets native window handle.

Returns
native window handle

Definition at line 614 of file adaptor-impl.cpp.

References mNativeWindow.

PerformanceInterface * Dali::Internal::Adaptor::Adaptor::GetPerformanceInterface ( )
virtual

Returns
performance interface

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 564 of file adaptor-impl.cpp.

References mPerformanceInterface.

Referenced by Dali::Internal::Adaptor::anonymous_namespace{performance-logger-impl.cpp}::GetPerformanceInterface().

Here is the caller graph for this function:

Integration::PlatformAbstraction & Dali::Internal::Adaptor::Adaptor::GetPlatformAbstraction ( ) const

Return the PlatformAbstraction.

Returns
The PlatformAbstraction.

Definition at line 569 of file adaptor-impl.cpp.

References DALI_ASSERT_DEBUG, and mPlatformAbstraction.

Dali::Integration::PlatformAbstraction & Dali::Internal::Adaptor::Adaptor::GetPlatformAbstractionInterface ( )
virtual

Returns
platform abstraction

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 519 of file adaptor-impl.cpp.

References mPlatformAbstraction.

TriggerEventInterface & Dali::Internal::Adaptor::Adaptor::GetProcessCoreEventsTrigger ( )
virtual
RenderSurface * Dali::Internal::Adaptor::Adaptor::GetRenderSurfaceInterface ( )
virtual

Returns
render surface

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 544 of file adaptor-impl.cpp.

References mSurface.

SocketFactoryInterface & Dali::Internal::Adaptor::Adaptor::GetSocketFactoryInterface ( )
virtual

Returns
socket factory interface

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 539 of file adaptor-impl.cpp.

References mSocketFactory.

float Dali::Internal::Adaptor::Adaptor::GetStereoBase ( ) const

Get the stereo base (eye seperation) for stereoscopic 3D.

Returns
The stereo base (eye seperation) for stereoscopic 3D (mm)

Definition at line 814 of file adaptor-impl.cpp.

References Dali::Integration::Core::GetStereoBase(), and mCore.

Referenced by Dali::Internal::Adaptor::Application::GetStereoBase().

Here is the call graph for this function:

Here is the caller graph for this function:

RenderSurface & Dali::Adaptor::GetSurface ( ) const
virtual

Definition at line 436 of file adaptor-impl.cpp.

References mSurface.

TraceInterface & Dali::Internal::Adaptor::Adaptor::GetSystemTraceInterface ( )
virtual
TriggerEventFactoryInterface & Dali::Internal::Adaptor::Adaptor::GetTriggerEventFactoryInterface ( )
virtual

Returns
trigger event factory interface

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 534 of file adaptor-impl.cpp.

References mTriggerEventFactory.

Dali::TtsPlayer Dali::Internal::Adaptor::Adaptor::GetTtsPlayer ( Dali::TtsPlayer::Mode  mode)
virtual

Retrieve the TtsPlayer.

Parameters
[in]modeThe mode of TtsPlayer
Returns
A handle to the TtsPlayer.

Definition at line 446 of file adaptor-impl.cpp.

References mTtsPlayers, and Dali::WeightObject::New().

Referenced by Dali::TtsPlayer::Get().

Here is the call graph for this function:

Here is the caller graph for this function:

ViewMode Dali::Internal::Adaptor::Adaptor::GetViewMode ( ) const

Get the current view mode.

Returns
The current view mode
See Also
SetViewMode.

Definition at line 804 of file adaptor-impl.cpp.

References Dali::Integration::Core::GetViewMode(), and mCore.

Referenced by Dali::Internal::Adaptor::Application::GetViewMode().

Here is the call graph for this function:

Here is the caller graph for this function:

VSyncMonitorInterface * Dali::Internal::Adaptor::Adaptor::GetVSyncMonitorInterface ( )
virtual

Returns
vsync monitor interface

Implements Dali::Internal::Adaptor::AdaptorInternalServices.

Definition at line 549 of file adaptor-impl.cpp.

References mVSyncMonitor.

void Dali::Internal::Adaptor::Adaptor::Initialize ( Dali::Configuration::ContextLoss  configuration)

2-step initialisation, this should be called after creating an adaptor instance.

Definition at line 94 of file adaptor-impl.cpp.

References Dali::Configuration::APPLICATION_DOES_NOT_HANDLE_CONTEXT_LOSS, Dali::Internal::Adaptor::PerformanceInterfaceFactory::CreateInterface(), Dali::ResourcePolicy::DALI_DISCARDS_ALL_DATA, Dali::Integration::EnableProfiling(), GetDataStoragePath(), Dali::Internal::Adaptor::EnvironmentOptions::GetGlesCallTime(), Dali::Internal::Adaptor::EnvironmentOptions::GetObjectProfilerInterval(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGestureLoggingLevel(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGestureMaximumPredictionAmount(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGestureMinimumPredictionAmount(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGesturePredictionAmount(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGesturePredictionAmountAdjustment(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGesturePredictionMode(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGestureSmoothingAmount(), Dali::Internal::Adaptor::EnvironmentOptions::GetPanGestureSmoothingMode(), Dali::Internal::Adaptor::EglFactory::GetSyncImplementation(), Dali::Rect< T >::height, Dali::Internal::Adaptor::EnvironmentOptions::InstallLogFunction(), Dali::TizenPlatform::LogMessage(), Dali::MakeCallback(), mCallbackManager, mCore, mEglFactory, mEnvironmentOptions, mGestureManager, mGLES, mNotificationTrigger, mObjectProfiler, mPerformanceInterface, mPlatformAbstraction, mSurface, mThreadController, mTriggerEventFactory, mVSyncMonitor, Dali::Internal::Adaptor::CallbackManager::New(), Dali::Integration::Core::New(), Dali::Internal::Adaptor::EnvironmentOptions::PerformanceServerRequired(), ProcessCoreEvents(), Dali::Integration::PROFILING_TYPE_PAN_GESTURE, Dali::TizenPlatform::TizenPlatformAbstraction::SetDataStoragePath(), Dali::Internal::Adaptor::EnvironmentOptions::SetLogFunction(), Dali::Integration::SetPanGestureMaximumPredictionAmount(), Dali::Integration::SetPanGestureMinimumPredictionAmount(), Dali::Integration::SetPanGesturePredictionAmount(), Dali::Integration::SetPanGesturePredictionAmountAdjustment(), Dali::Integration::SetPanGesturePredictionMode(), Dali::Integration::SetPanGestureSmoothingAmount(), Dali::Integration::SetPanGestureSmoothingMode(), and Dali::Rect< T >::width.

Here is the call graph for this function:

bool Dali::Adaptor::IsAvailable ( )
static
Adaptor::AdaptorSignalType & Dali::Adaptor::LanguageChangedSignal ( )
inline

Definition at line 419 of file adaptor-impl.h.

References mLanguageChangedSignal.

bool Dali::Internal::Adaptor::Adaptor::MoveResize ( const PositionSize positionSize)
virtual

Definition at line 388 of file adaptor-impl.cpp.

References Dali::Rect< T >::height, mSurface, SurfaceSizeChanged(), and Dali::Rect< T >::width.

Here is the call graph for this function:

Dali::Adaptor * Dali::Internal::Adaptor::Adaptor::New ( Any  nativeWindow,
RenderSurface *  surface,
Dali::Configuration::ContextLoss  configuration,
EnvironmentOptions environmentOptions 
)
static

Creates a New Adaptor.

Parameters
[in]nativeWindowNative window handle
[in]surfaceA render surface can be one of the following
  • Pixmap, adaptor will use existing Pixmap to draw on to
  • Window, adaptor will use existing Window to draw on to
[in]configurationThe context loss configuration ( to choose resource discard policy )
[in]environmentOptionsA pointer to the environment options. If NULL then one is created.

Definition at line 73 of file adaptor-impl.cpp.

References Adaptor().

Referenced by Dali::Internal::Adaptor::Application::CreateAdaptor(), and New().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali::Adaptor * Dali::Internal::Adaptor::Adaptor::New ( Dali::Window  window,
Dali::Configuration::ContextLoss  configuration,
EnvironmentOptions environmentOptions 
)
static

Creates a New Adaptor.

Parameters
[in]nativeWindownative window handle
[in]configurationThe context loss configuration ( to choose resource discard policy )
[in]environmentOptionsA pointer to the environment options. If NULL then one is created.

Definition at line 84 of file adaptor-impl.cpp.

References Dali::GetImplementation(), Dali::Window::GetNativeHandle(), Dali::Internal::Adaptor::Window::GetSurface(), New(), and Dali::Internal::Adaptor::Window::SetAdaptor().

Here is the call graph for this function:

void Dali::Adaptor::NotifyLanguageChanged ( )

Definition at line 734 of file adaptor-impl.cpp.

References mAdaptor, and mLanguageChangedSignal.

void Dali::Adaptor::NotifySceneCreated ( )

Definition at line 726 of file adaptor-impl.cpp.

References GetCore(), mThreadController, Dali::Integration::Core::SceneCreated(), and Dali::Internal::Adaptor::ThreadController::Start().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::OnDamaged ( const DamageArea area)
privatevirtual

Deriving classes should override this to be notified when we receive a damage event.

Parameters
[in]areaThe area that has been damaged.

Implements Dali::Internal::Adaptor::DamageObserver.

Definition at line 712 of file adaptor-impl.cpp.

References RequestUpdate().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::OnWindowHidden ( )
privatevirtual

Called when the window is fully hidden.

Implements Dali::Internal::Adaptor::WindowVisibilityObserver.

Definition at line 700 of file adaptor-impl.cpp.

References mState, Pause(), PAUSED_WHILE_HIDDEN, and STOPPED.

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::OnWindowShown ( )
privatevirtual

Called when the window becomes fully or partially visible.

Implements Dali::Internal::Adaptor::WindowVisibilityObserver.

Definition at line 686 of file adaptor-impl.cpp.

References mState, PAUSED, PAUSED_WHILE_HIDDEN, RequestUpdateOnce(), and Resume().

Here is the call graph for this function:

Adaptor& Dali::Internal::Adaptor::Adaptor::operator= ( Adaptor )
private
void Dali::Adaptor::Pause ( )
virtual

Definition at line 274 of file adaptor-impl.cpp.

References mCore, mEventHandler, mObservers, mState, mThreadController, Dali::Internal::Adaptor::ThreadController::Pause(), Dali::Internal::Adaptor::EventHandler::Pause(), PAUSED, RUNNING, and Dali::Integration::Core::Suspend().

Referenced by OnWindowHidden().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::ProcessCoreEvents ( )
privatevirtual
void Dali::Internal::Adaptor::Adaptor::ProcessCoreEventsFromIdle ( )
private

Sends an notification message from main loop idle handler.

Definition at line 750 of file adaptor-impl.cpp.

References mNotificationOnIdleInstalled, and ProcessCoreEvents().

Referenced by RequestProcessEventsOnIdle().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::QueueCoreEvent ( const Dali::Integration::Event &  event)
privatevirtual

Queue an event with Core.

Parameters
[in]eventThe new event.

Implements Dali::Internal::Adaptor::CoreEventInterface.

Definition at line 639 of file adaptor-impl.cpp.

References mCore, and Dali::Integration::Core::QueueEvent().

Here is the call graph for this function:

void Dali::Adaptor::ReleaseSurfaceLock ( )
virtual

Definition at line 441 of file adaptor-impl.cpp.

References mSurface.

void Dali::Internal::Adaptor::Adaptor::RemoveObserver ( LifeCycleObserver observer)

Removes the observer from the adaptor.

Parameters
[in]observerThe observer to remove.
Note
Observers should remove themselves when they are destroyed.

Definition at line 629 of file adaptor-impl.cpp.

References mObservers.

void Dali::Adaptor::ReplaceSurface ( Any  nativeWindow,
RenderSurface &  surface 
)
virtual

Definition at line 421 of file adaptor-impl.cpp.

References mNativeWindow, mSurface, mThreadController, ProcessCoreEvents(), Dali::Internal::Adaptor::ThreadController::ReplaceSurface(), and SurfaceSizeChanged().

Referenced by Dali::Internal::Adaptor::Application::ReplaceWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::RequestProcessEventsOnIdle ( )
privatevirtual

Called by Dali core when it requires an notification event being sent on idle.

Multi-threading note: this method must be called from the main thread only.

Implements Dali::Integration::RenderController.

Definition at line 676 of file adaptor-impl.cpp.

References AddIdle(), Dali::MakeCallback(), mNotificationOnIdleInstalled, mState, ProcessCoreEventsFromIdle(), and RUNNING.

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::RequestUpdate ( )
privatevirtual

Called by the Dali core when it requires another update.

Implements Dali::Integration::RenderController.

Definition at line 665 of file adaptor-impl.cpp.

References mState, mThreadController, PAUSED, Dali::Internal::Adaptor::ThreadController::RequestUpdate(), and RUNNING.

Referenced by OnDamaged().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::RequestUpdateOnce ( )

Request adaptor to update once.

Definition at line 739 of file adaptor-impl.cpp.

References mState, mThreadController, PAUSED_WHILE_HIDDEN, and Dali::Internal::Adaptor::ThreadController::RequestUpdateOnce().

Referenced by OnWindowShown().

Here is the call graph for this function:

Here is the caller graph for this function:

Adaptor::AdaptorSignalType & Dali::Adaptor::ResizedSignal ( )
inline

Definition at line 411 of file adaptor-impl.h.

References mResizedSignal.

void Dali::Adaptor::Resume ( )
virtual

Definition at line 298 of file adaptor-impl.cpp.

References mCore, mEventHandler, mObservers, mState, mThreadController, PAUSED, Dali::Internal::Adaptor::ThreadController::Resume(), Dali::Internal::Adaptor::EventHandler::Resume(), Dali::Integration::Core::Resume(), and RUNNING.

Referenced by OnWindowShown().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Adaptor::SceneCreated ( )

Definition at line 482 of file adaptor-impl.cpp.

References mCore, and Dali::Integration::Core::SceneCreated().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::SendNotificationEvent ( )

Emits the Notification event to the Dali core.

void Dali::Internal::Adaptor::Adaptor::SetDragAndDropDetector ( DragAndDropDetectorPtr  detector)

Sets the Drag & Drop Listener.

Parameters
[in]detectorThe detector to send Drag & Drop events to.

Definition at line 575 of file adaptor-impl.cpp.

References mDragAndDropDetector, mEventHandler, and Dali::Internal::Adaptor::EventHandler::SetDragAndDropDetector().

Here is the call graph for this function:

void Dali::Adaptor::SetMinimumPinchDistance ( float  distance)

Sets minimum distance in pixels that the fingers must move towards/away from each other in order to trigger a pinch gesture.

Parameters
[in]distanceThe minimum pinch distance in pixels

Definition at line 606 of file adaptor-impl.cpp.

References mGestureManager, and Dali::Internal::Adaptor::GestureManager::SetMinimumPinchDistance().

Here is the call graph for this function:

void Dali::Adaptor::SetRenderRefreshRate ( unsigned int  numberOfVSyncsPerRender)

Definition at line 492 of file adaptor-impl.cpp.

References mThreadController, and Dali::Internal::Adaptor::ThreadController::SetRenderRefreshRate().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::SetRotationObserver ( RotationObserver observer)

Sets a rotation observer, or set to NULL to remove.

Precondition
Adaptor::Start() has been called ( to create EventHandler )
Parameters
[in]observerThe observer to listen for window rotation events

Definition at line 585 of file adaptor-impl.cpp.

References mDeferredRotationObserver, mEventHandler, mState, READY, and Dali::Internal::Adaptor::EventHandler::SetRotationObserver().

Here is the call graph for this function:

void Dali::Adaptor::SetStereoBase ( float  stereoBase)

Set the stereo base (eye seperation) for stereoscopic 3D.

Parameters
[in]stereoBaseThe stereo base (eye seperation) for stereoscopic 3D (mm)

Definition at line 809 of file adaptor-impl.cpp.

References mCore, and Dali::Integration::Core::SetStereoBase().

Referenced by Dali::Internal::Adaptor::Application::OnInit(), and Dali::Internal::Adaptor::Application::SetStereoBase().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Adaptor::SetSurface ( RenderSurface *  surface)
private

Assigns the render surface to the adaptor.

void Dali::Adaptor::SetUseHardwareVSync ( bool  useHardware)

Definition at line 497 of file adaptor-impl.cpp.

References mVSyncMonitor, and Dali::Internal::Adaptor::VSyncMonitor::SetUseHardwareVSync().

Here is the call graph for this function:

void Dali::Adaptor::SetViewMode ( ViewMode  viewMode)

Set the stereoscopic 3D view mode.

Parameters
[in]viewModeThe new view mode

Definition at line 798 of file adaptor-impl.cpp.

References mCore, mSurface, and Dali::Integration::Core::SetViewMode().

Referenced by Dali::Internal::Adaptor::Application::OnInit(), and Dali::Internal::Adaptor::Application::SetViewMode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Adaptor::Start ( )
virtual
void Dali::Adaptor::Stop ( )
virtual
void Dali::Internal::Adaptor::Adaptor::SurfaceResized ( const PositionSize positionSize)
virtual

Definition at line 406 of file adaptor-impl.cpp.

References Dali::Rect< T >::height, mSurface, SurfaceSizeChanged(), and Dali::Rect< T >::width.

Here is the call graph for this function:

void Dali::Internal::Adaptor::Adaptor::SurfaceSizeChanged ( const PositionSize positionSize)
private

Informs core the surface size has changed.

Definition at line 718 of file adaptor-impl.cpp.

References Dali::Rect< T >::height, mAdaptor, mCore, mResizedSignal, Dali::Integration::Core::SurfaceResized(), and Dali::Rect< T >::width.

Referenced by MoveResize(), ReplaceSurface(), and SurfaceResized().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Dali::Adaptor& Dali::Internal::Adaptor::Adaptor::mAdaptor
private

Reference to public adaptor instance.

Definition at line 529 of file adaptor-impl.h.

Referenced by Get(), NotifyLanguageChanged(), and SurfaceSizeChanged().

CallbackManager* Dali::Internal::Adaptor::Adaptor::mCallbackManager
private

Used to install callbacks.

Definition at line 543 of file adaptor-impl.h.

Referenced by AddIdle(), Initialize(), Start(), Stop(), and ~Adaptor().

Dali::Integration::Core* Dali::Internal::Adaptor::Adaptor::mCore
private
FeedbackPluginProxy* Dali::Internal::Adaptor::Adaptor::mDaliFeedbackPlugin
private

Used to access feedback support.

Definition at line 547 of file adaptor-impl.h.

RotationObserver* Dali::Internal::Adaptor::Adaptor::mDeferredRotationObserver
private

deferred Rotation observer needs event handler

Definition at line 552 of file adaptor-impl.h.

Referenced by SetRotationObserver(), and Start().

DragAndDropDetectorPtr Dali::Internal::Adaptor::Adaptor::mDragAndDropDetector
private

The Drag & Drop detector.

Definition at line 551 of file adaptor-impl.h.

Referenced by SetDragAndDropDetector(), and Start().

EglFactory* Dali::Internal::Adaptor::Adaptor::mEglFactory
private

EGL Factory.

Definition at line 536 of file adaptor-impl.h.

Referenced by GetEGLFactory(), GetEGLFactoryInterface(), Initialize(), and ~Adaptor().

EnvironmentOptions* Dali::Internal::Adaptor::Adaptor::mEnvironmentOptions
private

environment options

Definition at line 553 of file adaptor-impl.h.

Referenced by Initialize(), and ~Adaptor().

const bool Dali::Internal::Adaptor::Adaptor::mEnvironmentOptionsOwned
private

Whether we own the EnvironmentOptions (and thus, need to delete it)

Definition at line 560 of file adaptor-impl.h.

Referenced by ~Adaptor().

EventHandler* Dali::Internal::Adaptor::Adaptor::mEventHandler
private
FeedbackController* Dali::Internal::Adaptor::Adaptor::mFeedbackController
private

Plays feedback effects for Dali-Toolkit UI Controls.

Definition at line 548 of file adaptor-impl.h.

GestureManager* Dali::Internal::Adaptor::Adaptor::mGestureManager
private

Gesture manager.

Definition at line 546 of file adaptor-impl.h.

Referenced by Initialize(), SetMinimumPinchDistance(), Start(), and ~Adaptor().

GlImplementation* Dali::Internal::Adaptor::Adaptor::mGLES
private

GL implementation.

Definition at line 534 of file adaptor-impl.h.

Referenced by GetGlAbstraction(), GetGlesInterface(), Initialize(), and ~Adaptor().

GlSyncImplementation* Dali::Internal::Adaptor::Adaptor::mGlSync
private

GL Sync implementation.

Definition at line 535 of file adaptor-impl.h.

KernelTrace Dali::Internal::Adaptor::Adaptor::mKernelTracer
private

Kernel tracer.

Definition at line 555 of file adaptor-impl.h.

Referenced by GetKernelTraceInterface().

AdaptorSignalType Dali::Internal::Adaptor::Adaptor::mLanguageChangedSignal
private

Language changed signal.

Definition at line 527 of file adaptor-impl.h.

Referenced by LanguageChangedSignal(), and NotifyLanguageChanged().

Any Dali::Internal::Adaptor::Adaptor::mNativeWindow
private

window identifier

Definition at line 538 of file adaptor-impl.h.

Referenced by GetNativeWindowHandle(), and ReplaceSurface().

bool Dali::Internal::Adaptor::Adaptor::mNotificationOnIdleInstalled
private

whether the idle handler is installed to send an notification event

Definition at line 544 of file adaptor-impl.h.

Referenced by ProcessCoreEventsFromIdle(), and RequestProcessEventsOnIdle().

TriggerEventInterface* Dali::Internal::Adaptor::Adaptor::mNotificationTrigger
private

Notification event trigger.

Definition at line 545 of file adaptor-impl.h.

Referenced by GetProcessCoreEventsTrigger(), Initialize(), and Stop().

ObjectProfiler* Dali::Internal::Adaptor::Adaptor::mObjectProfiler
private

Tracks object lifetime for profiling.

Definition at line 558 of file adaptor-impl.h.

Referenced by Initialize(), and ~Adaptor().

ObserverContainer Dali::Internal::Adaptor::Adaptor::mObservers
private

A list of adaptor observer pointers.

Definition at line 550 of file adaptor-impl.h.

Referenced by AddObserver(), Pause(), RemoveObserver(), Resume(), Start(), Stop(), and ~Adaptor().

PerformanceInterface* Dali::Internal::Adaptor::Adaptor::mPerformanceInterface
private

Performance interface.

Definition at line 554 of file adaptor-impl.h.

Referenced by GetPerformanceInterface(), Initialize(), ProcessCoreEvents(), and ~Adaptor().

TizenPlatform::TizenPlatformAbstraction* Dali::Internal::Adaptor::Adaptor::mPlatformAbstraction
private

Platform abstraction.

Definition at line 540 of file adaptor-impl.h.

Referenced by GetPlatformAbstraction(), GetPlatformAbstractionInterface(), Initialize(), and ~Adaptor().

AdaptorSignalType Dali::Internal::Adaptor::Adaptor::mResizedSignal
private

Resized signal.

Definition at line 526 of file adaptor-impl.h.

Referenced by ResizedSignal(), and SurfaceSizeChanged().

SocketFactory Dali::Internal::Adaptor::Adaptor::mSocketFactory
private

Socket factory.

Definition at line 559 of file adaptor-impl.h.

Referenced by GetSocketFactoryInterface().

State Dali::Internal::Adaptor::Adaptor::mState
private
RenderSurface* Dali::Internal::Adaptor::Adaptor::mSurface
private
SystemTrace Dali::Internal::Adaptor::Adaptor::mSystemTracer
private

System tracer.

Definition at line 556 of file adaptor-impl.h.

Referenced by GetSystemTraceInterface().

ThreadController* Dali::Internal::Adaptor::Adaptor::mThreadController
private
TriggerEventFactory Dali::Internal::Adaptor::Adaptor::mTriggerEventFactory
private

Trigger event factory.

Definition at line 557 of file adaptor-impl.h.

Referenced by GetTriggerEventFactoryInterface(), and Initialize().

Dali::TtsPlayer Dali::Internal::Adaptor::Adaptor::mTtsPlayers[Dali::TtsPlayer::MODE_NUM]
private

Provides TTS support.

Definition at line 549 of file adaptor-impl.h.

Referenced by DestroyTtsPlayer(), GetTtsPlayer(), and Stop().

VSyncMonitor* Dali::Internal::Adaptor::Adaptor::mVSyncMonitor
private

Monitors VSync events.

Definition at line 533 of file adaptor-impl.h.

Referenced by GetVSyncMonitorInterface(), Initialize(), SetUseHardwareVSync(), and ~Adaptor().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali