Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Member Functions | Static Public Member Functions | Static Protected Attributes
Xfc::Gdk::DisplayManager Class Reference

A GdkDisplayManager C++ wrapper class. More...

#include <xfc/gdk/displaymanager.hh>

Inheritance diagram for Xfc::Gdk::DisplayManager:
Xfc::G::Object Xfc::G::TypeInstance Xfc::Trackable

List of all members.

Public Member Functions

Static Public Member Functions

Static Protected Attributes

Constructors


Detailed Description

A GdkDisplayManager C++ wrapper class.

The purpose of the DisplayManager singleton object is to offer notification when displays appear or disappear or the default display changes.


Constructor & Destructor Documentation

Xfc::Gdk::DisplayManager::DisplayManager ( GdkDisplayManager *  display_manager,
bool  owns_reference = true 
) [explicit, protected]

Construct a new DisplayManager from an existing GdkDisplayManager.

Parameters:
display_managerA pointer to a GdkDisplayManager.
owns_referenceSet false if the initial reference count is floating, set true if it's not.

The display_manager can be a newly created GdkDisplayManager or an existing GdkDisplayManager. (see G::Object::Object).


Member Function Documentation

Gets the default Display.

Returns:
A Display, or null if there is no default display.
bool Xfc::Gdk::DisplayManager::list_displays ( std::vector< Display * > &  displays) const

List all currently open displays.

Parameters:
displaysA reference to a vector of Display* to hold the list of opened displays.
Returns:
true if the vector is not empty.

Sets display as the default display.

Parameters:
displayA Display.

Member Data Documentation

Display opened signal (see signal_display_opened()).

Calls a slot with the signature:

< void function(Display& display);
< // display: The Display being opened.
<

The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC