Re: signal connect on class member objects

On Sat, 2004-11-20 at 12:25 -0600, Rob Benton wrote:
> I want to create a class that is a Gtk::EventBox with a Gtk::DrawingArea 
> inside.  But I also want to connect extra methods of this class to the 
> drawingarea's realize and expose_event signals.  Is this possible or do 
> I need to create a derived class of Gtk::DrawingArea and then use that 
> as a member object?

This should be no problem. In general you can either connect new signal
handlers or derive the class and override the default signal handlers.
Murray Cumming
murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]