Home · All Namespaces · All Classes
Public Member Functions | Static Public Member Functions | Static Public Attributes

WindowInfo Class Reference

#include <windowinfo.h>

List of all members.

Public Member Functions

 WindowInfo (Window window)
 WindowInfo (const WindowInfo &other)
 ~WindowInfo ()
WindowInfooperator= (const WindowInfo &rhs)
const QString & title () const
QList< Atom > types () const
QList< Atom > states () const
Window window () const
Window transientFor () const
bool updateWindowTitle ()
void updateWindowProperties ()

Static Public Member Functions

static void initializeAtoms ()

Static Public Attributes

static Atom TypeAtom
static Atom StateAtom
static Atom NormalAtom
static Atom DesktopAtom
static Atom NotificationAtom
static Atom DialogAtom
static Atom CallAtom
static Atom DockAtom
static Atom MenuAtom
static Atom SkipTaskbarAtom
static Atom InputWindowAtom
static Atom NameAtom

Detailed Description

WindowInfo is a helper class for storing information about an open window.


Constructor & Destructor Documentation

WindowInfo::WindowInfo ( Window  window  )  [explicit]

Constructs a WindowInfo that contains information about an open window.

Parameters:
window The X window id
WindowInfo::WindowInfo ( const WindowInfo other  ) 

Copy constructor.

WindowInfo::~WindowInfo (  ) 

Destroys a WindowInfo object.


Member Function Documentation

void WindowInfo::initializeAtoms (  )  [static]

Initializes the X11 atoms

WindowInfo & WindowInfo::operator= ( const WindowInfo rhs  ) 

Assignment operator.

QList< Atom > WindowInfo::states (  )  const

Gets the states for this window WindowType

Returns:
the states
const QString & WindowInfo::title (  )  const

Gets the title of the window.

Returns:
the title of the window
Window WindowInfo::transientFor (  )  const

Gets the window ID of the window this window is transient for.

Returns:
the ID of the window this window is transient for
QList< Atom > WindowInfo::types (  )  const

Gets the types for this window WindowType

Returns:
the types
void WindowInfo::updateWindowProperties (  ) 

Updates the window types and window states from the window manager

bool WindowInfo::updateWindowTitle (  ) 

Retrieves the window title. First the title is retrieved with atom _NET_WM_NAME, if this failes then XGetWMName will be used.

Window WindowInfo::window (  )  const

Gets the window ID.

Returns:
the Window

Member Data Documentation

Atom WindowInfo::CallAtom [static]
Atom WindowInfo::DesktopAtom [static]
Atom WindowInfo::DialogAtom [static]
Atom WindowInfo::DockAtom [static]
Atom WindowInfo::MenuAtom [static]
Atom WindowInfo::NameAtom [static]
Atom WindowInfo::NormalAtom [static]
Atom WindowInfo::StateAtom [static]
Atom WindowInfo::TypeAtom [static]

The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Thu Jul 7 2011 22:14:51
Doxygen 1.7.1
MeeGo Touch