g4tools
5.4.0
g4tools
tools
sg
win_action
Go to the documentation of this file.
1
// Copyright (C) 2010, Guy Barrand. All rights reserved.
2
// See the file tools.license for terms.
3
4
#ifndef tools_sg_win_action
5
#define tools_sg_win_action
6
7
#include "
action
"
8
9
namespace
tools
{
10
namespace
sg {
11
12
class
win_action
:
public
action
{
13
TOOLS_ACTION
(
win_action
,
tools::sg::win_action
,
action
)
14
public
:
15
win_action
(std::ostream& a_out,
unsigned
int
a_ww,
unsigned
int
a_wh)
16
:parent(a_out)
17
,
m_ww
(a_ww)
//WARNING : we assume that we receive a not zero value.
18
,
m_wh
(a_wh)
//WARNING : we assume that we receive a not zero value.
19
{}
20
virtual
~win_action
(){}
21
protected
:
22
win_action
(
const
win_action
& a_from)
23
:parent(a_from)
24
,
m_ww
(a_from.
m_ww
)
25
,
m_wh
(a_from.
m_wh
)
26
{}
27
win_action
&
operator=
(
const
win_action
& a_from){
28
parent::operator=(a_from);
29
m_ww
= a_from.
m_ww
;
30
m_wh
= a_from.
m_wh
;
31
return
*
this
;
32
}
33
public
:
34
unsigned
int
ww
()
const
{
return
m_ww
;}
35
unsigned
int
wh
()
const
{
return
m_wh
;}
36
protected
:
37
unsigned
int
m_ww
;
//window width
38
unsigned
int
m_wh
;
//window height
39
};
40
41
}}
42
43
#endif
tools::sg::win_action::~win_action
virtual ~win_action()
Definition:
win_action:20
tools::sg::action
Definition:
action:19
tools::sg::win_action::operator=
win_action & operator=(const win_action &a_from)
Definition:
win_action:27
tools::sg::win_action
Definition:
win_action:12
tools::sg::win_action::ww
unsigned int ww() const
Definition:
win_action:34
tools::sg::win_action::m_wh
unsigned int m_wh
Definition:
win_action:38
tools::sg::win_action::wh
unsigned int wh() const
Definition:
win_action:35
action
tools::sg::win_action::m_ww
unsigned int m_ww
Definition:
win_action:37
tools::sg::win_action::win_action
win_action(const win_action &a_from)
Definition:
win_action:22
tools::sg::win_action::win_action
win_action(std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
Definition:
win_action:15
TOOLS_ACTION
#define TOOLS_ACTION(a__class, a__sclass, a__parent)
Definition:
action:60
tools
inlined C code : ///////////////////////////////////
Definition:
aida_ntuple:26
Generated by
1.8.20