search for: externalleading

Displaying 13 results from an estimated 13 matches for "externalleading".

2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp: void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x, int *y, int *descent, int *externalLeading, wxFont const *font) const { ... if (swig_get_up()) { wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font); return; } obj0 = rb_str_new2((const char *)(&string)->mb_str()); obj1 = SWIG_NewPointerObj(x, SWIGTYPE_p_int, 0); result = rb_funcall(sw...
2005 Sep 10
2
Swig generates bad interface to GetTextExtent
Swig''s bad interface generation strikes again. get_text_extent called with 1 argument maps to WindowDC''s _wrap_wxWindowDC_GetTextExtent__SWIG_0 Since this generates a wxFont that''s not initialized to nil it fails when calling into wxWindows. Anyone have a suggestion?
2006 Apr 23
4
Wx::Window#get_text_extent patch
Here''s a patch to fix Wx::Window#get_text_extent - it requires that the patches from teh last message are applied, to enable *INPUT etc typemaps. Roy - though the function works correctly when called from Ruby, it still causes a crash when called internally when clicking on a Wx::Grid cell. Saw your message on SWIG mailing list, hopefully someone there can help out. alex
2006 Aug 15
0
Problem with directors and Ruby
...guage is Ruby. When SWIG produces the wrapper for this the input parameter''s name and type gets confused with the second parameter''s type (relevant lines from sample.cpp): void SwigDirector_wxWindow::GetTextExtent(wxString const &string, int *x, int *y, int *descent, int *externalLeading, wxFont const *font) const { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE result; if (swig_get_up()) { wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font); return; } obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&string), SWIGTYPE_p_wxString, 0 ); obj1 = SWIG_NewPointe...
2006 Aug 24
4
typemap.i patch
This patch adds %directorout typemaps for the GetTextExtent functions _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Mar 29
0
[929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
...th, wxCoord *height) const; + wxSize GetSizeMM() const; </ins><span class="cx"> const wxColour& GetTextBackground() const; </span><del>- virtual void GetTextExtent(const wxString& string , wxCoord * w , wxCoord * h , wxCoord * descent = NULL, wxCoord * externalLeading = NULL, wxFont * font = NULL) = 0; - virtual void GetMultiLineTextExtent(const wxString& text, - wxCoord *width, - wxCoord *height, - wxCoord *heightLine = NULL, -...
2008 Jan 11
9
[ wxruby-Bugs-17013 ] Notebook#get_current_page
Bugs item #17013, was opened at 2008-01-11 06:00 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=17013&group_id=35 Category: Missing API call Group: None Status: Open Resolution: None Priority: 3 Submitted By: Daniel Brumbaugh Keeney (db-keen) Assigned to: Nobody (None) Summary: Notebook#get_current_page Initial Comment: Notebook#get_current_page
2006 Apr 12
6
*OUTPUT/*INPUT typemaps
...and inout mapping of simple types like int, long etc. It''s attached. I pasted this into our own swig/typemap.i file and recompiled. And it seems to work. For example, with Wx::Window#get_text_extent, I added the directives %apply int *OUTPUT { int* x , int* y , int* descent, int* externalLeading}; %apply wxFont *INPUT { const wxFont* font }; And then the method correctly returns a four-element array containing width, height, descent and leading. I also tried Wx::TextCtrl#position_to_xy. This could help us fix quite a few useful methods, but I''m not sure if this is generally...
2006 Oct 21
0
[699] trunk/wxruby2/doc/textile/window.txtl: Added paint method; corrected ret values for get_text_extent; removed
...ttextextent). Window#get_text_extent </span><span class="cx"> </span><del>- *get_text_extent*(%(arg-type)String% string, %(arg-type)Integer% x, %(arg-type)Integer% y, - %(arg-type)Integer% descent = nil, - %(arg-type)Integer% externalLeading = nil, - %(arg-type)Font% font = nil, - %(arg-type)Boolean% use16 = @false@) </del><ins>+ Integer x, Integer y, Integer descent, Integer external_leading = + *get_text_extent*(%(arg-type)String% string, %(arg-type)Font% font = nil, %(arg-type)Bool...
2006 Apr 23
12
Patches for object tracking
The following patches implement object tracking. Note nasty games I play to make the tracking global. SWIG 1.3.30 won''t need this. I also updated the minimum required SWIG version to 1.3.29. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Mar 27
0
[922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
...h3(#DC_gettextextent). DC#get_text_extent </span><span class="cx"> </span><del>- *get_text_extent*(%(arg-type)String% string, %(arg-type)Coord% w, %(arg-type)Coord% h, - - %(arg-type)Coord% descent = nil, - %(arg-type)Coord% externalLeading = nil, - %(arg-type)Font% font = nil) </del><ins>+ Integer w, Integer h, + Integer descent, + Integer external_leading = *get_text_extent*(%(arg-type)String% string, + &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&amp...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...mp;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param bool -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> virtual void GetTextExtent(const wxString& string , int * x , int * y , int * descent = NULL, int * externalLeading = NULL, wxFont * font = NULL) const; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Gets the window''s title. Applicable only to frames and dialogs. -&am...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
.../span><span class="cx"> wxSize GetSize() const; </span><span class="cx"> wxSizer * GetSizer() const; </span><span class="cx"> virtual void GetTextExtent(const wxString& string , int * x , int * y , int * descent = NULL, int * externalLeading = NULL, wxFont * font = NULL) const; </span><del>- virtual wxString GetTitle() ; </del><span class="cx"> wxToolTip* GetToolTip() const; </span><span class="cx"> wxRegion GetUpdateRegion() const; </span><span class="cx"&...