Re: [gtkmm] Getting notfified when window opens on display?
- From: pks timing com
- To: Toralf Lund <toralf procaptura com>
- Cc: GTK-- Mailing List <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Getting notfified when window opens on display?
- Date: Thu, 5 Feb 2004 12:48:16 -0700
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]