Re: [gtkmm] how to access the underlying object of a Glib::RefPtr ?
- From: Murray Cumming <murrayc murrayc com>
- To: cedric <cedric probesys com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] how to access the underlying object of a Glib::RefPtr ?
- Date: Sat, 26 Jun 2004 15:08:00 +0200
On Fri, 2004-06-25 at 11:17 +0200, cedric wrote:
> hi
> how to access the underlying object of a Glib::RefPtr ?
>
> cause i'd like to copy an object to a refPtr like so :
>
> Glib::RefPtr<Gdk::Bitmap> refBitmap = Gdk::Bitmap::create(window,
> data, width, height);
> Gdk::Bitmap* underlying = *refBitmap; //Syntax error - will not compile.
This is not allowed because it should never be done. If you have an
actual example where this might really be necessary, then we might
reconsider it.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]