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

This class listens to Drag & Drop events. More...

#include <drag-and-drop-detector-impl.h>

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

Public Types

typedef
Dali::DragAndDropDetector::DragAndDropSignal 
DragAndDropSignal
 

Public Member Functions

const std::string & GetContent () const
  More...
 
Vector2 GetCurrentScreenPosition () const
  More...
 
bool IsEnabled () const
 Queries whether drag & drop behaviour is really required. More...
 
void SetContent (const std::string &content)
 Sets the dragged content. More...
 
void ClearContent ()
 Clears the stored content. More...
 
void SetPosition (Vector2 screenPosition)
 Sets the position the drop occurred. More...
 
void EmitEnteredSignal ()
 Called when a draggable object enters our window. More...
 
void EmitExitedSignal ()
 Called when a draggable object leaves our window. More...
 
void EmitMovedSignal ()
 Called when a draggable object leaves our window. More...
 
void EmitDroppedSignal ()
 Is called when a drop actually occurs. More...
 
DragAndDropSignalEnteredSignal ()
  More...
 
DragAndDropSignalExitedSignal ()
  More...
 
DragAndDropSignalMovedSignal ()
  More...
 
DragAndDropSignalDroppedSignal ()
  More...
 
- 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 Dali::DragAndDropDetector New ()
 Create a DragAndDropDetector. More...
 

Private Member Functions

 DragAndDropDetector ()
 Constructor. More...
 
virtual ~DragAndDropDetector ()
 Destructor. More...
 
 DragAndDropDetector (const DragAndDropDetector &)
 
DragAndDropDetectoroperator= (DragAndDropDetector &)
 

Private Attributes

std::string mContent
 The current Drag & drop content. More...
 
Vector2 mScreenPosition
 The screen position of the drop location. More...
 
DragAndDropSignal mEnteredSignal
 
DragAndDropSignal mExitedSignal
 
DragAndDropSignal mMovedSignal
 
DragAndDropSignal mDroppedSignal
 

Additional Inherited Members

- 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...
 

Detailed Description

This class listens to Drag & Drop events.

Definition at line 44 of file drag-and-drop-detector-impl.h.

Member Typedef Documentation

typedef Dali::DragAndDropDetector::DragAndDropSignal Dali::Internal::Adaptor::DragAndDropDetector::DragAndDropSignal

Definition at line 48 of file drag-and-drop-detector-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::DragAndDropDetector::DragAndDropDetector ( )
private

Constructor.

Definition at line 103 of file drag-and-drop-detector-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Adaptor::DragAndDropDetector::~DragAndDropDetector ( )
privatevirtual

Destructor.

Definition at line 109 of file drag-and-drop-detector-impl.cpp.

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

Member Function Documentation

void Dali::Internal::Adaptor::DragAndDropDetector::ClearContent ( )

Clears the stored content.

Definition at line 57 of file drag-and-drop-detector-impl.cpp.

References mContent.

DragAndDropSignal& Dali::Internal::Adaptor::DragAndDropDetector::DroppedSignal ( )
inline

Definition at line 144 of file drag-and-drop-detector-impl.h.

References mDroppedSignal.

void Dali::Internal::Adaptor::DragAndDropDetector::EmitDroppedSignal ( )

Is called when a drop actually occurs.

Definition at line 94 of file drag-and-drop-detector-impl.cpp.

References mDroppedSignal.

void Dali::Internal::Adaptor::DragAndDropDetector::EmitEnteredSignal ( )

Called when a draggable object enters our window.

Definition at line 67 of file drag-and-drop-detector-impl.cpp.

References mEnteredSignal.

void Dali::Internal::Adaptor::DragAndDropDetector::EmitExitedSignal ( )

Called when a draggable object leaves our window.

Definition at line 76 of file drag-and-drop-detector-impl.cpp.

References mExitedSignal.

void Dali::Internal::Adaptor::DragAndDropDetector::EmitMovedSignal ( )

Called when a draggable object leaves our window.

Definition at line 85 of file drag-and-drop-detector-impl.cpp.

References mMovedSignal.

DragAndDropSignal& Dali::Internal::Adaptor::DragAndDropDetector::EnteredSignal ( )
inline

Definition at line 120 of file drag-and-drop-detector-impl.h.

References mEnteredSignal.

DragAndDropSignal& Dali::Internal::Adaptor::DragAndDropDetector::ExitedSignal ( )
inline

Definition at line 128 of file drag-and-drop-detector-impl.h.

References mExitedSignal.

const std::string & Dali::Internal::Adaptor::DragAndDropDetector::GetContent ( ) const

Definition at line 37 of file drag-and-drop-detector-impl.cpp.

References mContent.

Vector2 Dali::Internal::Adaptor::DragAndDropDetector::GetCurrentScreenPosition ( ) const

Definition at line 42 of file drag-and-drop-detector-impl.cpp.

References mScreenPosition.

bool Dali::Internal::Adaptor::DragAndDropDetector::IsEnabled ( ) const

Queries whether drag & drop behaviour is really required.

Returns
true if drag & drop required, false otherwise.

Definition at line 47 of file drag-and-drop-detector-impl.cpp.

References mDroppedSignal, mEnteredSignal, mExitedSignal, and mMovedSignal.

DragAndDropSignal& Dali::Internal::Adaptor::DragAndDropDetector::MovedSignal ( )
inline

Definition at line 136 of file drag-and-drop-detector-impl.h.

References mMovedSignal.

Dali::DragAndDropDetector Dali::Internal::Adaptor::DragAndDropDetector::New ( )
static

Create a DragAndDropDetector.

This should only be called once by the Window class.

Returns
A newly allocated drag-and-drop-detector.

Definition at line 30 of file drag-and-drop-detector-impl.cpp.

References DragAndDropDetector().

Here is the call graph for this function:

DragAndDropDetector& Dali::Internal::Adaptor::DragAndDropDetector::operator= ( DragAndDropDetector )
private
void Dali::Internal::Adaptor::DragAndDropDetector::SetContent ( const std::string &  content)

Sets the dragged content.

Parameters
[in]contentA string that represents the content that has been dropped.

Definition at line 52 of file drag-and-drop-detector-impl.cpp.

References mContent.

void Dali::Internal::Adaptor::DragAndDropDetector::SetPosition ( Vector2  screenPosition)

Sets the position the drop occurred.

Definition at line 62 of file drag-and-drop-detector-impl.cpp.

References mScreenPosition.

Member Data Documentation

std::string Dali::Internal::Adaptor::DragAndDropDetector::mContent
private

The current Drag & drop content.

Definition at line 169 of file drag-and-drop-detector-impl.h.

Referenced by ClearContent(), GetContent(), and SetContent().

DragAndDropSignal Dali::Internal::Adaptor::DragAndDropDetector::mDroppedSignal
private

Definition at line 175 of file drag-and-drop-detector-impl.h.

Referenced by DroppedSignal(), EmitDroppedSignal(), and IsEnabled().

DragAndDropSignal Dali::Internal::Adaptor::DragAndDropDetector::mEnteredSignal
private

Definition at line 172 of file drag-and-drop-detector-impl.h.

Referenced by EmitEnteredSignal(), EnteredSignal(), and IsEnabled().

DragAndDropSignal Dali::Internal::Adaptor::DragAndDropDetector::mExitedSignal
private

Definition at line 173 of file drag-and-drop-detector-impl.h.

Referenced by EmitExitedSignal(), ExitedSignal(), and IsEnabled().

DragAndDropSignal Dali::Internal::Adaptor::DragAndDropDetector::mMovedSignal
private

Definition at line 174 of file drag-and-drop-detector-impl.h.

Referenced by EmitMovedSignal(), IsEnabled(), and MovedSignal().

Vector2 Dali::Internal::Adaptor::DragAndDropDetector::mScreenPosition
private

The screen position of the drop location.

Definition at line 170 of file drag-and-drop-detector-impl.h.

Referenced by GetCurrentScreenPosition(), and SetPosition().


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