Ardour  9.0-pre0-582-g084a23a80d
Gdk::DisplayManager Class Reference

#include <displaymanager.h>

Inheritance diagram for Gdk::DisplayManager:
[legend]

Public Member Functions

virtual ~DisplayManager ()
 
GdkDisplayManagergobj ()
 Provides access to the underlying C GObject. More...
 
const GdkDisplayManagergobj () const
 Provides access to the underlying C GObject. More...
 
GdkDisplayManagergobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
Glib::RefPtr< Displayget_default_display ()
 
Glib::RefPtr< const Displayget_default_display () const
 
void set_default_display (const Glib::RefPtr< Display > &display)
 
Glib::SListHandle< Glib::RefPtr< Display > > list_displays ()
 
Glib::PropertyProxy< Glib::RefPtr< Display > > property_default_display ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Display > > property_default_display () const
 
Glib::SignalProxy1< void, const Glib::RefPtr< Display > & > signal_display_opened ()
 

Static Public Member Functions

static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< DisplayManagerget ()
 

Protected Member Functions

virtual void on_display_opened (const Glib::RefPtr< Display > &display)
 This is a default handler for the signal signal_display_opened(). More...
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::DisplayManagerwrap (GdkDisplayManager *object, bool take_copy=false)
 

Detailed Description

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

Definition at line 53 of file displaymanager.h.

Constructor & Destructor Documentation

◆ ~DisplayManager()

virtual Gdk::DisplayManager::~DisplayManager ( )
virtual

Member Function Documentation

◆ get()

static Glib::RefPtr<DisplayManager> Gdk::DisplayManager::get ( )
static

Gets the singleton Gdk::DisplayManager object.

Returns
The global Gdk::DisplayManager singleton; gdk_parse_pargs(), gdk_init(), or gdk_init_check() must have been called first.

◆ get_default_display() [1/2]

Glib::RefPtr<Display> Gdk::DisplayManager::get_default_display ( )

Gets the default Gdk::Display.

Returns
A Gdk::Display, or 0 if there is no default display.

◆ get_default_display() [2/2]

Glib::RefPtr<const Display> Gdk::DisplayManager::get_default_display ( ) const

Gets the default Gdk::Display.

Returns
A Gdk::Display, or 0 if there is no default display.

◆ get_type()

static GType Gdk::DisplayManager::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ gobj() [1/2]

GdkDisplayManager* Gdk::DisplayManager::gobj ( )
inline

Provides access to the underlying C GObject.

Definition at line 92 of file displaymanager.h.

◆ gobj() [2/2]

const GdkDisplayManager* Gdk::DisplayManager::gobj ( ) const
inline

Provides access to the underlying C GObject.

Definition at line 95 of file displaymanager.h.

◆ gobj_copy()

GdkDisplayManager* Gdk::DisplayManager::gobj_copy ( )

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

◆ list_displays()

Glib::SListHandle< Glib::RefPtr<Display> > Gdk::DisplayManager::list_displays ( )

List all currently open displays.

Returns
A list of Gdk::Display objects.

◆ on_display_opened()

virtual void Gdk::DisplayManager::on_display_opened ( const Glib::RefPtr< Display > &  display)
protectedvirtual

This is a default handler for the signal signal_display_opened().

◆ property_default_display() [1/2]

Glib::PropertyProxy< Glib::RefPtr<Display> > Gdk::DisplayManager::property_default_display ( )

The default display for GDK.

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_default_display() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Display> > Gdk::DisplayManager::property_default_display ( ) const

The default display for GDK.

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ set_default_display()

void Gdk::DisplayManager::set_default_display ( const Glib::RefPtr< Display > &  display)

Sets display as the default display.

Parameters
displayA Gdk::Display.

◆ signal_display_opened()

Glib::SignalProxy1< void,const Glib::RefPtr<Display>& > Gdk::DisplayManager::signal_display_opened ( )

The display_opened signal is emitted when a display is opened.

Parameters
displaythe opened display
Slot Prototype:
void on_my_display_opened(const Glib::RefPtr<Display>& display)

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gdk::DisplayManager > wrap ( GdkDisplayManager object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

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