search for: gettextextent

Displaying 20 results from an estimated 20 matches for "gettextextent".

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 =...
2006 Jul 19
8
small patch for wxWindow::GetTextExtent
I have not worked on wxRuby2 for awhile and decided to download the latest CVS HEAD and saw that it still had a problem with wxWindow::GetTextExtent (in my case showing up when editing Grid cells). So I copied the method signature from the wxDC::GetTextExtent which seems to be working, changed 2 variable names and made the typemap the same as used for wxDC. Well in my program editing grid cells does not crash anymore. This patch also has the g...
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 Aug 15
0
Problem with directors and Ruby
...ich are output only, except the last one, which is input only. My target language 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(...
2006 Sep 26
1
WindowDC.i.patch
unignores GetTextExtent (fixes problem with new SWIG 1.3.30 builds) _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Sep 11
1
Patch for typemap.i and Window.i
Added typemap for the differently-prototyped GetTextExtent. It was %ignored in Window.i. Since I added the typemap it doesn''t seem like we''ll need to %ignore it. Again, the patch for typemap.i is since the last check-in. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rub...
2006 Apr 23
4
*INPUT/*OUTPUT params patches
Hi The attached patches enable the use of SWIG''s *INPUT *OUTPUT and *INOUT typemaps as described in the manual. It''s done by including SWIG''s own ''typemaps.i'' file so it''ll allow us to benefit from future upgrades to that. The problem was a collision between a Ruby macro _ (fixing for old compilers) and a WxWidgets macro _ (for text
2006 Apr 23
2
Bigdemo Menu Demo
...e for object tracking o Object tracking enabled o Fix to the Bigdemo Combo Box demo (fixed append to work (hopefully)) o Other minor changes Some other problems I''m looking at: o The gauge example crashes after running for some time o The MDI sample doesn''t work at all anymore o GetTextExtent problem (double click on grid cell with text in it) o Why don''t drop down lists open up? o The get_view_start problem (any bigdemo that uses the scrolled window) For those interested I have made a Visual C++ 6.0 workspace/project file for wxRuby2. Whether this was necessary or not I don...
2007 Mar 29
0
[929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
...pan><span class="cx"> </span><span class="cx"> </span><ins>+%rename(GetDimensions) wxDC::GetSize(wxCoord * width , wxCoord * height); +%rename(GetDimensionsMM) wxDC::GetSizeMM(wxCoord *width , wxCoord *height) const; +%rename(GetTextSize) wxDC::GetTextExtent(const wxString& string) const; +%rename(GetMultiLineTextSize) wxDC::GetMultiLineTextExtent(const wxString& string) const; + + </ins><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> </span><span class=&quo...
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
2001 Apr 10
2
Stars! kills X-Server
...nated tail -f $log_name | Wine exited with a successful status | erwin:~# dpkg -l wine | ii wine 0.20010223.034024 Windows Emulator (Binary Emulator) tail -n 100 winedebug_20010410.txt Ret GDI.9: SETTEXTCOLOR() retval=0x00007f00 ret=029f:24f0 ds=039f Call GDI.91: GETTEXTEXTENT(0x0048,039f:0429,0x0009) ret=02b7:21fd ds=039f Ret GDI.91: GETTEXTEXTENT() retval=0x000e0039 ret=02b7:21fd ds=039f Call GDI.33: TEXTOUT(0x0048,0x0004,0x0071,0x039f0429 "Germanium",0x0009) ret=02b7:22a9 ds=039f Ret GDI.33: TEXTOUT() retval=0x0001 ret=02b7:22a9 ds=039f Call USER.72: SETRE...
2005 Nov 25
2
Wx::SystemSettings mark II
...colours, fonts and metrics (eg cursor size, display size) in a Grid. Incidentally, there seems to be a bug in Wx::Grid - when I double-click on a grid cell, I get samples/system_settings/system_settings.rb:245:in `get_text_extent'': No matching function for overloaded ''wxWindow_GetTextExtent'' (ArgumentError) from samples/system_settings/system_settings.rb:245:in `main_loop'' from samples/system_settings/system_settings.rb:245 There''s no explicit call to get_text_extent, so maybe something getting called by Wx that isn''t wrapped as expected?...
2005 Sep 03
1
Whole lotta stuff
...re the patch for wxMouseEvent.h. Including this causes the build to fail. 2) Attached are several files to patch some things to get the bigdemo working (better): Added a generic typemap for converting ruby arrays into point arrays. Added a typedef for wxDash Corrected/expanded the typemap for GetTextExtent Added GetMultiLineTextExtent prototype (there are some others missing I didn''t add. I added this one because the typemap was so close to the other) Added typemap for SetDashes 3) It''s very late (just flew out to the West Coast) and I''m not thinking straight. But I s...
2006 Aug 02
13
wxruby2 alpha release goals
Hi We''re all keen to get a release out, for lots of reasons: getting more people testing, showing people the progress we''ve made, etc. So I suggest that we now look to release an alpha version very soon, based pretty much on the current state of CVS plus pending check-ins. Sure, it has some bugs, some missing features and segfaults occasionally - but my experience on OS X
2007 Dec 03
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_gradient_pattern.c libswfdec/swfdec_gradient_pattern.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_pattern.c
...ec/swfdec_as_strings.c b/libswfdec/swfdec_as_strings.c index 7f0aeba..89896ce 100644 --- a/libswfdec/swfdec_as_strings.c +++ b/libswfdec/swfdec_as_strings.c @@ -466,5 +466,22 @@ const char swfdec_as_strings[] = SWFDEC_AS_CONSTANT_STRING ("hardlight") SWFDEC_AS_CONSTANT_STRING ("getTextExtent") SWFDEC_AS_CONSTANT_STRING ("domain") + SWFDEC_AS_CONSTANT_STRING ("linear") + SWFDEC_AS_CONSTANT_STRING ("radial") + SWFDEC_AS_CONSTANT_STRING ("matrixType") + SWFDEC_AS_CONSTANT_STRING ("box") + SWFDEC_AS_CONSTANT_STRING ("a&quo...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...e notice that the given font is not automatically used for +"PaintDC":paintdc.html objects associated with this window, you need to +call "DC::SetFont()":dcsetfont.html too. However this font is used by +any standard controls for drawing their text as well as by +"Window::GetTextExtent()":windowgettextextent.html. + </ins><span class="cx"> h4. Parameters </span><span class="cx"> </span><span class="cx"> * _font_ Font to associate with this window, pass </span><span class="lines">@@ -2299...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...amp;nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxFont* -&nbsp&nbsp&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&am...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...* GetCaret() const; </span><span class="lines">@@ -81,7 +83,6 @@ </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=&quo...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...gs.c index 98e5f82..7f0aeba 100644 --- a/libswfdec/swfdec_as_strings.c +++ b/libswfdec/swfdec_as_strings.c @@ -465,5 +465,6 @@ const char swfdec_as_strings[] = SWFDEC_AS_CONSTANT_STRING ("overlay") SWFDEC_AS_CONSTANT_STRING ("hardlight") SWFDEC_AS_CONSTANT_STRING ("getTextExtent") + SWFDEC_AS_CONSTANT_STRING ("domain") /* add more here */ ; diff --git a/libswfdec/swfdec_policy_loader.c b/libswfdec/swfdec_policy_loader.c index 318388d..1c785c7 100644 --- a/libswfdec/swfdec_policy_loader.c +++ b/libswfdec/swfdec_policy_loader.c @@ -34,6 +34,8 @@ #include...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...arsing function Merge branch 'master' into policy Initialize ASSetPropFlags with ASnative Add ASnative numbers for Video's methods Implement ASnew ActionScript function. It only has ASnative number, no name Add a test for ASnew Add stub for TextFormat.getTextExtent, add a test for TextFormat's properties Clean up the code to read arguments in TextFormat's constructor Run init scripts in the correct version Add previously disabled version 6 versions of few tests Don't accept arguments when using Date in non-construct mode, a...