Medical Imaging Interaction Toolkit  2024.06.00
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 37 of file berryGuiTkEvent.h.

Constructor & Destructor Documentation

◆ Event()

berry::GuiTk::Event::Event ( )

Member Function Documentation

◆ berryObjectMacro()

berry::GuiTk::Event::berryObjectMacro ( Event  )

◆ ToString()

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.

Member Data Documentation

◆ button

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 90 of file berryGuiTkEvent.h.

◆ character

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 101 of file berryGuiTkEvent.h.

◆ detail

int berry::GuiTk::Event::detail

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

Definition at line 55 of file berryGuiTkEvent.h.

◆ doit

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 132 of file berryGuiTkEvent.h.

◆ height

int berry::GuiTk::Event::height

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

Definition at line 83 of file berryGuiTkEvent.h.

◆ item

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

the widget that issued the event

Definition at line 49 of file berryGuiTkEvent.h.

◆ keyCode

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 '\r' but the keyCode field will also contain '\r' when Enter was typed and 'm' when Ctrl+M was typed.

Definition at line 112 of file berryGuiTkEvent.h.

◆ stateMask

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 118 of file berryGuiTkEvent.h.

◆ text

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 125 of file berryGuiTkEvent.h.

◆ width

int berry::GuiTk::Event::width

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

Definition at line 77 of file berryGuiTkEvent.h.

◆ x

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 63 of file berryGuiTkEvent.h.

◆ y

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 71 of file berryGuiTkEvent.h.


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