Hi all
Please find attached files to implement (much of) Wx::SystemSettings for
wxruby2. I really just wanted to be able to get screen width and screen
height, but there''s lots of other stuff there too; the sample file
provides a listing of what''s avaiable, with descriptions. With this
email
* patch to typemap.i
* patch to RubyConstants.i
* new SystemSettings.i file for swig/classes
* new sample file for samples/system_settings/
There''s a few wrinkles that are beyond me:
1) The wx header file in wxruby2 CVS tree seems to be missing some
methods listed elsewhere: SystemSettings::GetScreenType (listed in 2.6
docs & my wx header file, settings.h), and SystemSettings::HasFeature
(in header files, not in docs though)
2) Wx::SystemSettings.get_colour(xxx) segfaults for me (OS X 10.3) on a
few of the constants listed in the docs. I have commented these out in
the sample file for now, and the rest work as expected. For reference,
running this in gdb I get the following error with the bad colours:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x02da4c04 in wxColour::wxColour(wxColour const&) ()
3) Wx::SystemSettings.get_font(xxx) segfaults for me for any value, so I
have %ignored it for now in the .i file. For reference, gdb reports:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x02d83d68 in wxObject::Ref(wxObject const&) ()
all the best
alex
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users