P
Pito Salas
I was trying to figure out what the correct parameters are for
ScrolledWindow.new.
In the doc I saw some detrails
(http://wxruby.rubyforge.org/doc/scrolledwindow.html#ScrolledWindow_new)
but I still couldnt see what I was doing wrong.
So I looked at the sources for the gem, and found no explicit definition
of the class and methods, but a mention of wxruby2, the 'binary
library'. What's that?
Then looking deeper I found the wxruby2 gem's sources, where again no
explicit mention about ScrolledWindow.new. It looks to me like wxruby2
is a ruby "api" to the underlying c library. There's mention of Swig,
what's that?
And then within wxruby2/swig/classes/scrolledwindow.i I find this
inscrutable stuff (see below).... Does that somehow explain what the
RUBY parameters are for ScrolledWindow?
I think I am almost but not grasping the mapping. Can anyone clarify or
point me to a clarification? Thanks!
Pito
----- Referenced above -----
// Copyright 2004-2008, wxRuby development team
// released under the MIT-like wxRuby2 license
%include "../common.i"
%{
#include <wx/scrolwin.h>
%}
%module(directors="1") wxScrolledWindow
GC_MANAGE_AS_WINDOW(wxScrolledWindow);
SWIG_WXWINDOW_NO_USELESS_VIRTUALS(wxScrolledWindow);
%apply int * OUTPUT { int * }
%import "include/wxObject.h"
%import "include/wxEvtHandler.h"
%import "include/wxWindow.h"
%import "include/wxPanel.h"
%include "include/wxScrolledWindow.h"
ScrolledWindow.new.
In the doc I saw some detrails
(http://wxruby.rubyforge.org/doc/scrolledwindow.html#ScrolledWindow_new)
but I still couldnt see what I was doing wrong.
So I looked at the sources for the gem, and found no explicit definition
of the class and methods, but a mention of wxruby2, the 'binary
library'. What's that?
Then looking deeper I found the wxruby2 gem's sources, where again no
explicit mention about ScrolledWindow.new. It looks to me like wxruby2
is a ruby "api" to the underlying c library. There's mention of Swig,
what's that?
And then within wxruby2/swig/classes/scrolledwindow.i I find this
inscrutable stuff (see below).... Does that somehow explain what the
RUBY parameters are for ScrolledWindow?
I think I am almost but not grasping the mapping. Can anyone clarify or
point me to a clarification? Thanks!
Pito
----- Referenced above -----
// Copyright 2004-2008, wxRuby development team
// released under the MIT-like wxRuby2 license
%include "../common.i"
%{
#include <wx/scrolwin.h>
%}
%module(directors="1") wxScrolledWindow
GC_MANAGE_AS_WINDOW(wxScrolledWindow);
SWIG_WXWINDOW_NO_USELESS_VIRTUALS(wxScrolledWindow);
%apply int * OUTPUT { int * }
%import "include/wxObject.h"
%import "include/wxEvtHandler.h"
%import "include/wxWindow.h"
%import "include/wxPanel.h"
%include "include/wxScrolledWindow.h"