Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...)
- From: Paul Davis <pbd Op Net>
- To: Chris Seberino <seberino spawar navy mil>
- Cc: gtk-list gnome org
- Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...)
- Date: Thu, 21 Feb 2002 06:29:44 -0500
>Configure and Expose events will use a callback with
>the first argument being a widget that has nice
>info about pixmap to be redrawn like width, height,
>style & "window".
>
>How can I access this widget on my own???
>Or, how can I get at this
>info for a pixmap some other way???
its the widget that *is* the pixmap. that is, if you did:
GtkWidget *pixmap = gtk_pixmap_new (...);
and then connected to configure_event and expose_event on that pixmap,
the widget passed as the first argument is precisely that widget.
you can use it yourself anywhere else, except that its allocation
(width, height), style and window may not be set until certain events
have occured.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]