Loading [MathJax]/extensions/tex2jax.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
gui
gui
src
TGIdleHandler.cxx
Go to the documentation of this file.
1
// @(#)root/gui:$Id$
2
// Author: Fons Rademakers 2/8/2004
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
//////////////////////////////////////////////////////////////////////////
13
// //
14
// TGIdleHandler //
15
// //
16
// Handle idle events, i.e. process GUI actions when there is nothing //
17
// else anymore to do. //
18
// //
19
//////////////////////////////////////////////////////////////////////////
20
21
#include "
TGIdleHandler.h
"
22
#include "
TGWindow.h
"
23
24
25
ClassImp
(
TGIdleHandler
)
26
27
////////////////////////////////////////////////////////////////////////////////
28
/// Create idle handler.
29
30
TGIdleHandler
::
TGIdleHandler
(
TGWindow
*w) : fWindow(0)
31
{
32
if
(w) {
33
fWindow = w;
34
if
(fWindow->GetClient())
35
fWindow->GetClient()->AddIdleHandler(
this
);
36
}
else
37
Error
(
"TGIdleHandler"
,
"window cannot be 0"
);
38
}
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Delete idle handler.
42
43
TGIdleHandler::~TGIdleHandler
()
44
{
45
if
(
fWindow
&&
fWindow
->
GetClient
())
46
fWindow
->
GetClient
()->
RemoveIdleHandler
(
this
);
47
}
48
49
////////////////////////////////////////////////////////////////////////////////
50
/// Handle the idle event. Returns true if the event has been handled,
51
/// false otherwise.
52
53
Bool_t
TGIdleHandler::HandleEvent
()
54
{
55
return
(
fWindow
) ?
fWindow
->
HandleIdleEvent
(
this
) :
kFALSE
;
56
}
TGWindow::HandleIdleEvent
virtual Bool_t HandleIdleEvent(TGIdleHandler *)
Definition:
TGWindow.h:111
TGClient::RemoveIdleHandler
void RemoveIdleHandler(TGIdleHandler *h)
Remove handler for idle events.
Definition:
TGClient.cxx:583
TGIdleHandler::HandleEvent
virtual Bool_t HandleEvent()
Handle the idle event.
Definition:
TGIdleHandler.cxx:53
TGWindow.h
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
kFALSE
const Bool_t kFALSE
Definition:
Rtypes.h:92
TGIdleHandler::fWindow
TGWindow * fWindow
Definition:
TGIdleHandler.h:34
TGIdleHandler.h
Error
void Error(const char *location, const char *msgfmt,...)
TGWindow
Definition:
TGWindow.h:38
TGObject::GetClient
TGClient * GetClient() const
Definition:
TGObject.h:53
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:279
TGIdleHandler::~TGIdleHandler
virtual ~TGIdleHandler()
Delete idle handler.
Definition:
TGIdleHandler.cxx:43
TGIdleHandler
Definition:
TGIdleHandler.h:31