Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::GuiTk::Event Class Reference

#include <berryGuiTkEvent.h>

Inheritance diagram for berry::GuiTk::Event:
Collaboration diagram for berry::GuiTk::Event:

Public Member Functions

 berryObjectMacro (Event) Event()
 
QString ToString () const override
 
- 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 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
 

Public Attributes

QWidget * item
 
int detail
 
int x
 
int y
 
int width
 
int height
 
int button
 
char character
 
int keyCode
 
int stateMask
 
QString text
 
bool doit
 

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

Instances of this class are sent as a result of GUI events.

Note: The fields that are filled in depend on the widget.

Definition at line 41 of file berryGuiTkEvent.h.

Member Function Documentation

berry::GuiTk::Event::berryObjectMacro ( Event  )
QString berry::GuiTk::Event::ToString ( ) const
overridevirtual

Returns a string representation of this object. The default implementation returns an empty string.

Reimplemented from berry::Object.

Definition at line 34 of file berryGuiTkEvent.cpp.

References detail, doit, height, item, stateMask, text, width, x, and y.

Member Data Documentation

int berry::GuiTk::Event::button

the button that was pressed or released; 1 for the first button, 2 for the second button, and 3 for the third button, etc.

Definition at line 94 of file berryGuiTkEvent.h.

char berry::GuiTk::Event::character

depending on the event, the character represented by the key that was typed. This is the final character that results after all modifiers have been applied. For example, when the user types Ctrl+A, the character value is 0x01 (ASCII SOH). It is important that applications do not attempt to modify the character value based on a stateMask (such as SWT.CTRL) or the resulting character will not be correct.

Definition at line 105 of file berryGuiTkEvent.h.

int berry::GuiTk::Event::detail

the event specific detail field, as defined by the detail constants in class Constants

Definition at line 59 of file berryGuiTkEvent.h.

Referenced by ToString().

bool berry::GuiTk::Event::doit

depending on the event, a flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation.

Definition at line 136 of file berryGuiTkEvent.h.

Referenced by ToString().

int berry::GuiTk::Event::height

the height of the bounding rectangle of the region that requires painting

Definition at line 87 of file berryGuiTkEvent.h.

Referenced by ToString().

QWidget* berry::GuiTk::Event::item

the widget that issued the event

Definition at line 53 of file berryGuiTkEvent.h.

Referenced by berry::GuiTk::SelectionEvent::SelectionEvent(), and ToString().

int berry::GuiTk::Event::keyCode

depending on the event, the key code of the key that was typed, as defined by the key code constants in class SWT. When the character field of the event is ambiguous, this field contains the unaffected value of the original character. For example, typing Ctrl+M or Enter both result in the character '' but the keyCode field will also contain '' when Enter was typed and 'm' when Ctrl+M was typed.

Definition at line 116 of file berryGuiTkEvent.h.

int berry::GuiTk::Event::stateMask

depending on the event, the state of the keyboard modifier keys and mouse masks at the time the event was generated.

Definition at line 122 of file berryGuiTkEvent.h.

Referenced by ToString().

QString berry::GuiTk::Event::text

depending on the event, the new text that will be inserted. Setting this field will change the text that is about to be inserted or deleted.

Definition at line 129 of file berryGuiTkEvent.h.

Referenced by ToString().

int berry::GuiTk::Event::width

the width of the bounding rectangle of the region that requires painting

Definition at line 81 of file berryGuiTkEvent.h.

Referenced by ToString().

int berry::GuiTk::Event::x

depending on the event type, the x offset of the bounding rectangle of the region that requires painting or the widget-relative, x coordinate of the pointer at the time the mouse button was pressed or released

Definition at line 67 of file berryGuiTkEvent.h.

Referenced by ToString().

int berry::GuiTk::Event::y

depending on the event type, the y offset of the bounding rectangle of the region that requires painting or the widget-relative, y coordinate of the pointer at the time the mouse button was pressed or released

Definition at line 75 of file berryGuiTkEvent.h.

Referenced by ToString().


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