search for: wxfont

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

Did you mean: xfont
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
2003 Nov 06
2
MinGW build (static linking) problem
Hi! I am trying to build wxruby with statically linked wxWindows library, but so far - no luck - bunch of unresolved references during the linking phase. I''ve seen on the list that Curt was being able to build it, so any hint would be helpful. gcc 3.2.3 (MinGW 3.1.0) & MSYS 1.0.10rc2. Sincerely, Gour -- Gour gour@mail.inet.hr Registered Linux User #278493
2007 Mar 29
0
[929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
...harHeight() = 0; - virtual wxCoord GetCharWidth() = 0; </del><ins>+ wxCoord GetCharHeight(); + wxCoord GetCharWidth(); </ins><span class="cx"> void GetClippingBox(wxCoord *x , wxCoord *y , wxCoord *width , wxCoord *height ) ; </span><del>- //wxFont& GetFont(); </del><span class="cx"> const wxFont& GetFont() const; </span><span class="cx"> wxLayoutDirection GetLayoutDirection() const; </span><span class="cx"> int GetLogicalFunction() ; </span><span class=&...
2007 Mar 30
1
wxWidgets 2.8.3
...8.3 was released on 03/24/2007, should we change over to that right away? The changes are: All: - Shut down the sockets gracefully (Sergio Aguayo) - Fix extra indentation in wxHTML_ALIGN_JUSTIFY display (Chacal) wxMac - Corrected top border size for wxStaticBox with empty label (nusi). - Fixed wxFont, wxPen and wxBrush accessor bugs introduced in 2.8.2. wxMSW: - Fixed wxFileName::GetSize() for large files. - Fixed wxFont and wxPen accessor bugs introduced in 2.8.2. My vote is to switch because it only looks like minor fixes (which a 2.8.x release should be). Sean
2007 Mar 30
0
[933] branches/wxruby2/wxwidgets_282: Font API 2.6 -> 2.8, corrections to Event doc
...ent doc</pre> <h3>Modified Paths</h3> <ul> <li><a href="#brancheswxruby2wxwidgets_282doctextilefonttxtl">branches/wxruby2/wxwidgets_282/doc/textile/font.txtl</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxFonth">branches/wxruby2/wxwidgets_282/swig/classes/include/wxFont.h</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="brancheswxruby2wxwidgets_282doctextilefonttxtl"></a> <div class="modfile">&lt...
2007 Mar 23
0
[917] branches/wxruby2/wxwidgets_282/swig/classes/include/wxAuiDockArt.h: Fix spelling mistake from wxWidgets headers
...s_282/swig/classes/include/wxAuiDockArt.h&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-03-23 16:59:10 UTC (rev 917) </span><span class="lines">@@ -15,7 +15,7 @@ </span><span class="cx"> virtual void SetFont(int id, const wxFont& font) = 0; </span><span class="cx"> virtual wxFont GetFont(int id) = 0; </span><span class="cx"> virtual wxColour GetColour(int id) = 0; </span><del>- virtual void SetColour(int id, const wxColor& colour) = 0; </del>&...
2007 Jan 05
0
[827] trunk/wxruby2/swig: Moved NULL objects into constants so they can be used for default args
..._BITMAP = wxNullBitmap; +%constant wxIcon const NULL_ICON = wxNullIcon; +%constant wxCursor const NULL_CURSOR = wxNullCursor; +%constant wxPen const NULL_PEN = wxNullPen; +%constant wxBrush const NULL_BRUSH = wxNullBrush; +%constant wxPalette const NULL_PALETTE = wxNullPalette; +%constant wxFont const NULL_FONT = wxNullFont; +%constant wxColour const NULL_COLOUR = wxNullColour; + </ins><span class="cx"> // Text font families </span><span class="cx"> %constant int FONTFAMILY_DEFAULT = wxDEFAULT; </span><span class="cx&quot...
2006 Nov 26
0
[758] trunk/wxruby2: i18n support: added Locale class, methods for get/set languages & encodings
...t;<a href="#trunkwxruby2samplestextunicoderb">trunk/wxruby2/samples/text/unicode.rb</a></li> <li><a href="#trunkwxruby2swigclassesFonti">trunk/wxruby2/swig/classes/Font.i</a></li> <li><a href="#trunkwxruby2swigclassesincludewxFonth">trunk/wxruby2/swig/classes/include/wxFont.h</a></li> <li><a href="#trunkwxruby2swigclassesincludewxLocaleh">trunk/wxruby2/swig/classes/include/wxLocale.h</a></li> <li><a href="#trunkwxruby2swigtypedefsi">trunk/wxruby2/swi...
2006 Apr 12
6
*OUTPUT/*INPUT typemaps
...le 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 the right approa...
2007 Mar 27
0
[922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
...x"> //wxBrush& GetBackground(); </span><span class="lines">@@ -59,6 +57,7 @@ </span><span class="cx"> void GetClippingBox(wxCoord *x , wxCoord *y , wxCoord *width , wxCoord *height ) ; </span><span class="cx"> //wxFont& GetFont(); </span><span class="cx"> const wxFont& GetFont() const; </span><ins>+ wxLayoutDirection GetLayoutDirection() const; </ins><span class="cx"> int GetLogicalFunction() ; </span><span class="cx"> in...
2006 Aug 15
0
Problem with directors and Ruby
...hen 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_NewPointerObj(SWI...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...p&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Returns a reference to the font for this window. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> wxFont GetFont() const; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Returns the foreground colour of the window. -&nbsp&nbsp&nbsp&nbsp&nbsp&n...
2007 Feb 14
0
[874] trunk/wxruby2/swig/classes/include/wxGridCellAttr.h: Add missing and useful default ctor
...l><ins>+ wxGridCellAttr(); </ins><span class="cx"> wxGridCellAttr(const wxColour& colText, </span><span class="cx"> const wxColour& colBack, </span><span class="cx"> const wxFont& font, </span></span></pre> </div> </div> </body> </html>
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...clude/wxDirDialog.h</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxFileDialogh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxFileDialog.h</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxFontDatah">branches/wxruby2/wxwidgets_282/swig/classes/include/wxFontData.h</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxFontDialogh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxFontDialog.h</a></li> <li><...
2007 Mar 21
0
[907] branches/wxruby2/wxwidgets_282: Wx::Control API 2.6 -> 2.8
...nst; </span><ins>+ wxString GetLabelText() const; + static wxString GetLabelText(wxString& label) const; </ins><span class="cx"> virtual void SetLabel(const wxString& label ) ; </span><span class="cx"> virtual bool SetFont(const wxFont& font); </span><span class="cx"> }; </span></span></pre> </div> </div> </body> </html>
2003 Dec 29
5
Font support, MS Windows binaries, Mac status (?)
Wx::Font now supports almost all the methods of wxFont, which should be good news for anyone interested in rich text editing (FreeRIDE anyone?). These changes are checked in to CVS and my darcs repository. Thanks to Nobuaki Arima for submitting font support code. Although I didn''t actually use that font code, I did directly use the include...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...uby2 license + +#if !defined(_wxAuiDockArt_h_) +#define _wxAuiDockArt_h_ + +class wxAuiDockArt +{ +public: + wxAuiDockArt() { } + virtual ~wxAuiDockArt() { } + + virtual int GetMetric(int id) = 0; + virtual void SetMetric(int id, int new_val) = 0; + virtual void SetFont(int id, const wxFont& font) = 0; + virtual wxFont GetFont(int id) = 0; + virtual wxColour GetColour(int id) = 0; + virtual void SetColour(int id, const wxColor& colour) = 0; + wxColour GetColor(int id) { return GetColour(id); } + void SetColor(int id, const wxColour& color) { SetColour(id, co...
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(swig_get_s...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...t;> bool IsTopLevel() const; </span><span class="cx"> void Layout() ; </span><span class="cx"> void Lower() ; </span><span class="lines">@@ -141,7 +152,8 @@ </span><span class="cx"> void SetFont(const wxFont& font ) ; </span><span class="cx"> virtual bool SetForegroundColour(const wxColour& colour ); </span><span class="cx"> virtual void SetHelpText(const wxString& helpText ) ; </span><del>- void SetId(int id ) ; </del>&...