Re: [gtkmm] how to access the underlying object of a Glib::RefPtr ?



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]