Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...)



>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]