Gizmod::X11FocusEvent Class Reference

Data structure that holds information about X11 Focus events. More...

#include <X11FocusWatcher.hpp>

Inheritance diagram for Gizmod::X11FocusEvent:

Inheritance graph
[legend]
Collaboration diagram for Gizmod::X11FocusEvent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isNull ()
 Check if the event is a useless event.
bool operator!= (X11FocusEvent const &Event)
 != operator
bool operator== (X11FocusEvent const &Event)
 == operator
 X11FocusEvent ()
 X11FocusEvent Default Constructor.
 X11FocusEvent (X11FocusEventType eventType, std::string windowName, std::string windowNameFormal, std::string windowClass)
 X11FocusEvent Init Constructor.
 X11FocusEvent (X11FocusEvent const &Event)
 X11FocusEvent Init Constructor.
virtual ~X11FocusEvent ()
 X11FocusEvent Destructor.

Public Attributes

X11FocusEventType EventType
 The type of event.
std::string WindowName
 Name of the Window as displayed in title bar.
std::string WindowNameFormal
 Strict Name of the Window.
std::string WindowClass
 Class of the Window.

Friends

class boost::serialization::access


Detailed Description

Data structure that holds information about X11 Focus events.

Note that there is NO GUARANTEE that event orders are logical For example, FOCUS_IN events might occur BEFORE a FOCUS_OUT event, however, the events are true -- The current focus will always be the last event with a FOCUS_IN type.

This is due to the way X (and your WM's focus stealing prevention) works (or perhaps doesn't work).

Definition at line 82 of file X11FocusWatcher.hpp.


Member Function Documentation

bool X11FocusEvent::isNull (  ) 

Check if the event is a useless event.

Returns:
Check if the event is a null event

Definition at line 350 of file X11FocusWatcher.cpp.

References TITLE_UNKNOWN, and WINDOW_UNKNOWN.

bool X11FocusEvent::operator!= ( X11FocusEvent const &  Event  ) 

!= operator

Parameters:
Event The test event

Definition at line 409 of file X11FocusWatcher.cpp.

References EventType, WindowClass, WindowName, and WindowNameFormal.

bool X11FocusEvent::operator== ( X11FocusEvent const &  Event  ) 

== operator

Parameters:
Event The test event

Definition at line 422 of file X11FocusWatcher.cpp.

References EventType, WindowClass, WindowName, and WindowNameFormal.


The documentation for this class was generated from the following files:
Generated on Wed Nov 7 10:07:09 2007 for gizmod by  doxygen 1.5.3