Re: gdk_window_set_background?
- From: Helmethead <hoshem mel comcen com au>
- To: Vicki Stanfield <vicki dialupnet com>
- Cc: GTK-List <gtk-list gnome org>
- Subject: Re: gdk_window_set_background?
- Date: Sat, 19 May 2001 13:59:51 +1000
On Fri, May 18, 2001 at 08:50:25PM -0500, Vicki Stanfield wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> What is the function gdk_window_set_background used for? I have used
> gtk_windows, but I don't understand how a gdk_window fits into the
> scheme. Can someone explain it to me (as if I were a six year old)?
>
> Have a good day!
> - -Vicki
A GdkWindow is just a device for clipping drawing and capturing events. Most widgets create their own GdkWindows to work in, and every "application window" contains lots of GdkWindows. A GtkWindow is a widget used for a top level "application window", it creates a GdkWindow as well as handling app window stuff like whether the app window is resizable, which widget has focus, accelerator keys etc.
gdk_window_set_background sets the background pixel on a GdkWindow..
You can test if a widget has it's own GdkWindow, or if it uses the one the parent widget has by using GTK_WIDGET_NO_WINDOW (widget)
You can get the GdkWindow used by a widget by accessing widget->window (the widget has to be realized)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]