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

Stub for the Orientation. More...

#include <orientation-impl.h>

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

Public Types

typedef
Dali::Orientation::OrientationSignalType 
OrientationSignalType
 

Public Member Functions

 Orientation (Window *window)
 Constructor. More...
 
void SetAdaptor (Dali::Adaptor &adaptor)
 Set the adaptor for basic setup. More...
 
int GetDegrees () const
 Returns the actual orientation in degrees. More...
 
float GetRadians () const
 Returns the actual orientation in radians. More...
 
OrientationSignalTypeChangedSignal ()
  More...
 
 Orientation ()
 
 Orientation (ToolkitOrientation *orientation)
 
 ~Orientation ()
 
void SetDegrees (int degrees)
 
int GetDegrees () const
 
float GetRadians () const
 
Dali::Orientation::OrientationSignalType & ChangedSignal ()
 
void EmitChangedSignal ()
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static OrientationNew (Window *window)
 

Protected Member Functions

virtual ~Orientation ()
 Destructor. More...
 
- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::RotationObserver
 RotationObserver ()
 Protected Constructor. More...
 
virtual ~RotationObserver ()
 Protected virtual destructor. More...
 

Private Member Functions

virtual void OnRotationPrepare (const RotationEvent &rotation)
 Deriving classes should override this to be notified when we receive a RotationPrepare event. More...
 
virtual void OnRotationRequest ()
 Deriving classes should override this to be notifed when a RotationRequest event is received. More...
 
 Orientation (const Orientation &)
 
Orientationoperator= (Orientation &)
 
void EmitOrientationChange ()
 Signals and sends event of orientation change. More...
 

Private Attributes

WindowmWindow
 
OrientationSignalType mChangedSignal
 
int mOrientation
 
int mWindowWidth
 
int mWindowHeight
 
Dali::Orientation::OrientationSignalType mChangedSignal
 
ToolkitOrientationmToolkitOrientation
 

Detailed Description

Stub for the Orientation.

Definition at line 44 of file orientation-impl.h.

Member Typedef Documentation

typedef Dali::Orientation::OrientationSignalType Dali::Internal::Adaptor::Orientation::OrientationSignalType

Definition at line 48 of file orientation-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::Orientation::Orientation ( Window window)

Constructor.

Definition at line 42 of file orientation-impl.cpp.

Dali::Internal::Adaptor::Orientation::~Orientation ( )
protectedvirtual

Destructor.

Definition at line 50 of file orientation-impl.cpp.

Dali::Internal::Adaptor::Orientation::Orientation ( const Orientation )
private
Dali::Internal::Adaptor::Orientation::Orientation ( )

Definition at line 77 of file toolkit-orientation.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Adaptor::Orientation::Orientation ( ToolkitOrientation orientation)

Definition at line 83 of file toolkit-orientation.cpp.

Dali::Internal::Adaptor::Orientation::~Orientation ( )

Member Function Documentation

Dali::Orientation::OrientationSignalType& Dali::Internal::Adaptor::Orientation::ChangedSignal ( )
Dali::Orientation::OrientationSignalType & Dali::Internal::Adaptor::Orientation::ChangedSignal ( )

Definition at line 72 of file orientation-impl.cpp.

References mChangedSignal.

void Dali::Internal::Adaptor::Orientation::EmitChangedSignal ( )
inline

Definition at line 63 of file toolkit-orientation.cpp.

References mChangedSignal.

Referenced by Dali::ToolkitOrientation::EmitChangedSignal().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Orientation::EmitOrientationChange ( )
private

Signals and sends event of orientation change.

int Dali::Internal::Adaptor::Orientation::GetDegrees ( ) const
int Dali::Internal::Adaptor::Orientation::GetDegrees ( ) const

Returns the actual orientation in degrees.

Returns
The device's orientation

Definition at line 62 of file orientation-impl.cpp.

References mOrientation.

float Dali::Internal::Adaptor::Orientation::GetRadians ( ) const
float Dali::Internal::Adaptor::Orientation::GetRadians ( ) const

Returns the actual orientation in radians.

Returns
The device's orientation

Definition at line 67 of file orientation-impl.cpp.

References mOrientation, and Dali::Math::PI.

Orientation * Dali::Internal::Adaptor::Orientation::New ( Window window)
static

Definition at line 35 of file orientation-impl.cpp.

References Orientation().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Orientation::OnRotationPrepare ( const RotationEvent rotation)
privatevirtual

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

Parameters
[in]areaThe area that has been rotationd.

Implements Dali::Internal::Adaptor::RotationObserver.

Definition at line 77 of file orientation-impl.cpp.

References Dali::Internal::Adaptor::RotationEvent::angle, Dali::Internal::Adaptor::RotationEvent::height, mOrientation, mWindowHeight, mWindowWidth, and Dali::Internal::Adaptor::RotationEvent::width.

void Dali::Internal::Adaptor::Orientation::OnRotationRequest ( )
privatevirtual

Deriving classes should override this to be notifed when a RotationRequest event is received.

Implements Dali::Internal::Adaptor::RotationObserver.

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

References mChangedSignal, mOrientation, mWindow, mWindowHeight, mWindowWidth, and Dali::Internal::Adaptor::Window::RotationDone().

Here is the call graph for this function:

Orientation& Dali::Internal::Adaptor::Orientation::operator= ( Orientation )
private
void Dali::Internal::Adaptor::Orientation::SetAdaptor ( Dali::Adaptor &  adaptor)

Set the adaptor for basic setup.

Parameters
[in]adaptorThe adaptor

Definition at line 56 of file orientation-impl.cpp.

References Dali::Internal::Adaptor::Adaptor::GetImplementation().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Orientation::SetDegrees ( int  degrees)
inline

Definition at line 51 of file toolkit-orientation.cpp.

References mOrientation.

Referenced by Dali::ToolkitOrientation::SetDegrees().

Here is the caller graph for this function:

Member Data Documentation

Dali::Orientation::OrientationSignalType Dali::Internal::Adaptor::Orientation::mChangedSignal
private

Definition at line 70 of file toolkit-orientation.cpp.

OrientationSignalType Dali::Internal::Adaptor::Orientation::mChangedSignal
private

Definition at line 114 of file orientation-impl.h.

Referenced by ChangedSignal(), EmitChangedSignal(), and OnRotationRequest().

int Dali::Internal::Adaptor::Orientation::mOrientation
private
ToolkitOrientation* Dali::Internal::Adaptor::Orientation::mToolkitOrientation
private

Definition at line 72 of file toolkit-orientation.cpp.

Window* Dali::Internal::Adaptor::Orientation::mWindow
private

Definition at line 112 of file orientation-impl.h.

Referenced by OnRotationRequest().

int Dali::Internal::Adaptor::Orientation::mWindowHeight
private

Definition at line 118 of file orientation-impl.h.

Referenced by OnRotationPrepare(), and OnRotationRequest().

int Dali::Internal::Adaptor::Orientation::mWindowWidth
private

Definition at line 117 of file orientation-impl.h.

Referenced by OnRotationPrepare(), and OnRotationRequest().


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