g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::X11::dispatcher Class Referenceabstract
Inheritance diagram for tools::X11::dispatcher:
Inheritance graph
[legend]

Public Member Functions

virtual bool dispatch (XEvent &)=0
 
virtual Window window () const =0
 
virtual dispatchercopy () const =0
 
 dispatcher ()
 
virtual ~dispatcher ()
 
 dispatcher (const dispatcher &a_from)
 
dispatcheroperator= (const dispatcher &a_from)
 
bool is_valid () const
 
void invalidate ()
 

Protected Attributes

bool m_is_valid
 

Detailed Description

Definition at line 16 of file dispatcher.

Constructor & Destructor Documentation

◆ dispatcher() [1/2]

tools::X11::dispatcher::dispatcher ( )
inline

Definition at line 29 of file dispatcher.

29  :m_is_valid(true){
30 #ifdef TOOLS_MEM
31  tools::mem::increment(s_class().c_str());
32 #endif
33  }

◆ ~dispatcher()

virtual tools::X11::dispatcher::~dispatcher ( )
inlinevirtual

Definition at line 34 of file dispatcher.

34  {
35 #ifdef TOOLS_MEM
36  tools::mem::decrement(s_class().c_str());
37 #endif
38  }

◆ dispatcher() [2/2]

tools::X11::dispatcher::dispatcher ( const dispatcher a_from)
inline

Definition at line 40 of file dispatcher.

40  :m_is_valid(a_from.m_is_valid){
41 #ifdef TOOLS_MEM
42  tools::mem::increment(s_class().c_str());
43 #endif
44  }

Member Function Documentation

◆ copy()

virtual dispatcher* tools::X11::dispatcher::copy ( ) const
pure virtual

◆ dispatch()

virtual bool tools::X11::dispatcher::dispatch ( XEvent &  )
pure virtual

◆ invalidate()

void tools::X11::dispatcher::invalidate ( )
inline

Definition at line 48 of file dispatcher.

48 {m_is_valid = false;}

◆ is_valid()

bool tools::X11::dispatcher::is_valid ( ) const
inline

Definition at line 47 of file dispatcher.

47 {return m_is_valid;}

◆ operator=()

dispatcher& tools::X11::dispatcher::operator= ( const dispatcher a_from)
inline

Definition at line 45 of file dispatcher.

45 { m_is_valid = a_from.m_is_valid;return *this;}

◆ window()

virtual Window tools::X11::dispatcher::window ( ) const
pure virtual

Member Data Documentation

◆ m_is_valid

bool tools::X11::dispatcher::m_is_valid
protected

Definition at line 50 of file dispatcher.


The documentation for this class was generated from the following file:
tools::X11::dispatcher::m_is_valid
bool m_is_valid
Definition: dispatcher:50