Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <berryStackDropResult.h>
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::TypeInfo > | GetSuperclasses () 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< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
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 |
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.
berry::StackDropResult::StackDropResult | ( | const QRect & | snapRectangle, |
Object::Pointer | cookie | ||
) |
Creates a drop result
snapRectangle | region that should be highlighted by the tracking rectangle (display coordinates) |
cookie | the 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. |
berry::StackDropResult::berryObjectMacro | ( | StackDropResult | ) |
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.
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.