Re: forward declarations of gtkmm stuff
- From: Murray Cumming <murrayc murrayc com>
- To: Jonathon Jongsma <jonathon quotidian org>
- Cc: gtkmm-list gnome org
- Subject: Re: forward declarations of gtkmm stuff
- Date: Wed, 02 Jan 2008 16:24:13 +0100
On Wed, 2008-01-02 at 08:45 -0600, Jonathon Jongsma wrote:
> On 1/2/08, David L <idht4n gmail com> wrote:
> > Sorry if this is a stupid question, but how can I forward declare
> > gtkmm things so that gtkmm header files don't need to be
> > included before defining a class that has gtkmm pointers?
> >
> > For example, I'd like to get rid of the two includes in this header file:
> > // foo.h
> > #include <gtkmm/window.h>
> > #include <gtkmm/radioaction.h>
>
> namespace Gtk {
> class Window;
> class RadioAction;
> }
You are never going to discover all the things that you need to declare
even just for Gtk::Window. The headers exist for a good reason and I
suggest that you use them.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]