RE: [gtkmm] gdk_x11_drawable_get_xid ???
- From: Murray Cumming Comneon com
- To: i kuten sam-solutions net
- Cc: gtkmm-list gnome org
- Subject: RE: [gtkmm] gdk_x11_drawable_get_xid ???
- Date: Fri, 28 Feb 2003 18:45:47 +0100
You can get a C instance from a gtkmm instance with gobj().
The gtkmm equivalent of some_gtk_window->window is
Gtk::Widget::get_window().
Murray Cumming
murrayc usa net
www.murrayc.com
> -----Original Message-----
> From: I.S.Kuten [mailto:i kuten sam-solutions net]
> Sent: Freitag, 28. Februar 2003 18:44
> To: Cumming Murray (COMNEON Linz)
> Cc: gtkmm-list gnome org
> Subject: Re: [gtkmm] gdk_x11_drawable_get_xid ???
>
>
> So how can I move to gtkmm following piece of code :
>
> GtkWindow *w;
> GtkDrawingArea *area;
>
> printf( "################## 0x%x - 0x%x -- -x %d -y %d\n",
> gdk_x11_drawable_get_xid( GTK_WIDGET( w )->window ),
> gdk_x11_drawable_get_xid( GTK_WIDGET( area )->window ),
> GTK_WIDGET( area )->allocation.width,
> GTK_WIDGET( area )->allocation.height,
> );
>
>
> thanks for your answers.
>
>
>
>
> On Fri, 28 Feb 2003 10:21:46 +0100
> Murray Cumming Comneon com wrote:
>
> > > In gtk2+ I used function gdk_x11_drawable_get_xid(GdkDrawable
> > > * drawable)
> > >
> > > I couldn't find approriate method in gtkmm . Is there any ?
> >
> > Maybe we wanted to avoid the complication of conditional
> compilation
> > for different platforms.
> >
> > But you can use
> > gdk_x11_drawable_get_xid( refDrawable->gobj() )
> >
> > Murray Cumming
> > murrayc usa net
> > www.murrayc.com
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]