g4tools  5.4.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tools::sg::size_event Class Reference
Inheritance diagram for tools::sg::size_event:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::size_event:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 size_event (unsigned int a_ow, unsigned int a_oh, unsigned int a_w, unsigned int a_h)
 
virtual ~size_event ()
 
 size_event (const size_event &a_from)
 
size_eventoperator= (const size_event &a_from)
 
unsigned int old_width () const
 
unsigned int old_height () const
 
unsigned int width () const
 
unsigned int height () const
 
- Public Member Functions inherited from tools::sg::event
 event ()
 
virtual ~event ()
 
 event (const event &)
 
eventoperator= (const event &)
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::sg::event
static cid id_class ()
 

Protected Attributes

unsigned int m_ow
 
unsigned int m_oh
 
unsigned int m_w
 
unsigned int m_h
 

Detailed Description

Definition at line 53 of file event.

Constructor & Destructor Documentation

◆ size_event() [1/2]

tools::sg::size_event::size_event ( unsigned int  a_ow,
unsigned int  a_oh,
unsigned int  a_w,
unsigned int  a_h 
)
inline

Definition at line 71 of file event.

73  :m_ow(a_ow)
74  ,m_oh(a_oh)
75  ,m_w(a_w)
76  ,m_h(a_h)
77  {}

◆ ~size_event()

virtual tools::sg::size_event::~size_event ( )
inlinevirtual

Definition at line 78 of file event.

78 {}

◆ size_event() [2/2]

tools::sg::size_event::size_event ( const size_event a_from)
inline

Definition at line 80 of file event.

81  :event(a_from)
82  ,m_ow(a_from.m_ow)
83  ,m_oh(a_from.m_oh)
84  ,m_w(a_from.m_w)
85  ,m_h(a_from.m_h)
86  {}

Member Function Documentation

◆ cast()

virtual void* tools::sg::size_event::cast ( cid  a_class) const
inlinevirtual

Implements tools::sg::event.

Definition at line 58 of file event.

58  {
59  if(void* p = cmp_cast<size_event>(this,a_class)) return p;
60  return 0;
61  }

◆ copy()

virtual event* tools::sg::size_event::copy ( ) const
inlinevirtual

Implements tools::sg::event.

Definition at line 69 of file event.

69 {return new size_event(*this);}

◆ height()

unsigned int tools::sg::size_event::height ( ) const
inline

Definition at line 99 of file event.

99 {return m_h;}

◆ id_class()

static cid tools::sg::size_event::id_class ( )
inlinestatic

Definition at line 57 of file event.

57 {return parent::id_class()+1;}

◆ old_height()

unsigned int tools::sg::size_event::old_height ( ) const
inline

Definition at line 97 of file event.

97 {return m_oh;}

◆ old_width()

unsigned int tools::sg::size_event::old_width ( ) const
inline

Definition at line 96 of file event.

96 {return m_ow;}

◆ operator=()

size_event& tools::sg::size_event::operator= ( const size_event a_from)
inline

Definition at line 87 of file event.

87  {
88  event::operator=(a_from);
89  m_ow = a_from.m_ow;
90  m_oh = a_from.m_oh;
91  m_w = a_from.m_w;
92  m_h = a_from.m_h;
93  return *this;
94  }

◆ width()

unsigned int tools::sg::size_event::width ( ) const
inline

Definition at line 98 of file event.

98 {return m_w;}

Member Data Documentation

◆ m_h

unsigned int tools::sg::size_event::m_h
protected

Definition at line 104 of file event.

◆ m_oh

unsigned int tools::sg::size_event::m_oh
protected

Definition at line 102 of file event.

◆ m_ow

unsigned int tools::sg::size_event::m_ow
protected

Definition at line 101 of file event.

◆ m_w

unsigned int tools::sg::size_event::m_w
protected

Definition at line 103 of file event.


The documentation for this class was generated from the following file:
tools::sg::size_event::m_h
unsigned int m_h
Definition: event:104
tools::sg::size_event::m_ow
unsigned int m_ow
Definition: event:101
tools::sg::size_event::m_w
unsigned int m_w
Definition: event:103
tools::sg::event::operator=
event & operator=(const event &)
Definition: event:50
tools::sg::event::event
event()
Definition: event:34
tools::sg::size_event::size_event
size_event(unsigned int a_ow, unsigned int a_oh, unsigned int a_w, unsigned int a_h)
Definition: event:71
tools::sg::event::id_class
static cid id_class()
Definition: event:23
tools::sg::size_event::m_oh
unsigned int m_oh
Definition: event:102