Re: [gtkmm] Getting notfified when window opens on display?



Toralf Lund writes:
 >
 > (Question: Is this necessary, or is there already a GdkWindow or
 > Gdk_Window for the root), and all works rather well now.

if root window on default screen, on default display is good enough:

Gdk::Display::get_default()->get_default_screen()->get_root_window()

here are the prototypes (Display, Screen, and Window are all in
Gdk namespace):

Glib::RefPtr<Display> Display::get_default()
Glib::RefPtr<Screen> Display::get_default_screen()
Glib::RefPtr<Window> Screen::get_root_window()

where Display::get_default() is a static, public method.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]