Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berry::StackDropResult Class Reference

#include <berryStackDropResult.h>

Inheritance diagram for berry::StackDropResult:
Collaboration diagram for berry::StackDropResult:

Public Member Functions

 berryObjectMacro (StackDropResult)
 
 StackDropResult (const QRect &snapRectangle, Object::Pointer cookie)
 
QRect GetSnapRectangle ()
 
Object::Pointer GetCookie ()
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Additional Inherited Members

- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

This structure describes a drop event that will cause a dragged part to be stacked in a position currently occupied by another part.

Definition at line 31 of file berryStackDropResult.h.

Constructor & Destructor Documentation

◆ StackDropResult()

berry::StackDropResult::StackDropResult ( const QRect &  snapRectangle,
Object::Pointer  cookie 
)

Creates a drop result

Parameters
snapRectangleregion that should be highlighted by the tracking rectangle (display coordinates)
cookiethe presentation may attach an object to this drop result in order to identify the drop location. This object will be passed back into the presentation's add method.

Member Function Documentation

◆ berryObjectMacro()

berry::StackDropResult::berryObjectMacro ( StackDropResult  )

◆ GetCookie()

Object::Pointer berry::StackDropResult::GetCookie ( )

Returns the cookie for this drop result. This object provided by the presentation, but is remembered by the workbench. It will be given back to the presentation's add method to indicate that a part is being added as a result of a drop operation.

Returns
the drop cookie for this drop result

◆ GetSnapRectangle()

QRect berry::StackDropResult::GetSnapRectangle ( )

Returns a rectangle (screen coordinates) describing the target location for this drop operation. While dragging, the tracking rectangle will snap to this position.

Returns
a snap rectangle (not null)

The documentation for this class was generated from the following file: