These enable DrawLines and DrawPolygons. I disable the wxList one since the WX docs indicate that the list is now ''type-safe'' requiring a derived class to send a wxList of Points. Since we''re unlikely to do this I just blocked it off so it doesn''t interfere with internal functions that may call that one. Note: MemoryDC doesn''t inherit from DC.h. Not sure if we should try fixing it or even if we have an example that uses it. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Roy Sutton wrote:> These enable DrawLines and DrawPolygons.Committed, thanks> Note: MemoryDC doesn''t inherit from DC.h. Not sure if we should try > fixing it or even if we have an example that uses it.It''s used in the controls.rb sample, on the bitmap tab, to draw a green circle round the button bitmap. cheers alex
Roy Sutton wrote:> Note: MemoryDC doesn''t inherit from DC.h. Not sure if we should try > fixing it or even if we have an example that uses it.I''m not sure what you mean by that. On Linux/GTK, wxMemoryDC inherits from wxWindowDC, and indirectly from wxDC. On MSW and Cocoa, it directly inherits from wxDC. I couldn''t find wxMemoryDC on Mac at all, so I''m not sure what is going on there. Our wxMemoryDC.h does have it inheriting from wxDC, currently. MemoryDC is pretty important for apps that need to do a lot of drawing quickly (like SpaceMonkeys). Kevin
Kevin Smith wrote:> Roy Sutton wrote: > >> Note: MemoryDC doesn''t inherit from DC.h. Not sure if we should try >> fixing it or even if we have an example that uses it. >> > > I''m not sure what you mean by that. On Linux/GTK, wxMemoryDC inherits > from wxWindowDC, and indirectly from wxDC. On MSW and Cocoa, it directly > inherits from wxDC. I couldn''t find wxMemoryDC on Mac at all, so I''m not > sure what is going on there. > > Our wxMemoryDC.h does have it inheriting from wxDC, currently. > > MemoryDC is pretty important for apps that need to do a lot of drawing > quickly (like SpaceMonkeys). > > >Sorry, I was unclear. wxDC.h is not %imported into MemoryDC.i Roy
Reasonably Related Threads
- [929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
- [708] trunk/wxruby2/swig/classes/DC.i: Un-ignore get_multi_line_text_extent (Roy Sutton)
- Swig generates bad interface to GetTextExtent
- Adding ScreenDC
- Tracking Mouse motion