Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryGuiTkIControlListener.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
14 
15 namespace berry {
16 
17 namespace GuiTk {
18 
20 {
21 }
22 
23 void
26 {
27  if (l.IsNull()) return;
28 
29  Types types = l->GetEventTypes();
30 
31  if (types & MOVED)
33  if (types & RESIZED)
35  if (types & ACTIVATED)
37  if (types & DESTROYED)
39 }
40 
41 void
44 {
45  if (l.IsNull()) return;
46 
51 }
52 
53 }
54 
55 }
virtual void ControlDestroyed(ControlEvent::Pointer)
virtual void ControlMoved(ControlEvent::Pointer)
virtual void ControlActivated(ControlEvent::Pointer)
virtual void ControlResized(ControlEvent::Pointer)
void RemoveListener(IControlListener::Pointer listener)
void AddListener(IControlListener::Pointer listener)
ObjectType * GetPointer() const