1 #############################################################################
2 ## Name: XS/FontEnumerator.xs
3 ## Purpose: XS for Wx::FontEnumerator
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: FontEnumerator.xs 2274 2007-11-10 22:37:30Z mbarbon $
8 ## Copyright: (c) 2002, 2006-2007 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
13 #include <wx/fontenum.h>
15 MODULE=Wx PACKAGE=Wx::FontEnumerator
18 wxFontEnumerator::new()
21 wxFontEnumerator::CLONE()
23 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
27 wxFontEnumerator::DESTROY()
29 wxPli_thread_sv_unregister( aTHX_ "Wx::FontEnumerator", THIS, ST(0) );
33 wxFontEnumerator::EnumerateFacenames( encoding = wxFONTENCODING_SYSTEM, fixedWidth = false )
34 wxFontEncoding encoding
38 wxFontEnumerator::EnumerateEncodings( font = wxEmptyString )
42 wxFontEnumerator::GetEncodings()
44 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
50 enc = THIS->GetEncodings();
51 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
56 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
57 wxPli_stringarray_push( aTHX_ enc );
59 wxPli_stringarray_push( aTHX_ *enc );
65 wxFontEnumerator::GetFacenames()
67 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
73 enc = THIS->GetFacenames();
74 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
79 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
80 wxPli_stringarray_push( aTHX_ enc );
82 wxPli_stringarray_push( aTHX_ *enc );
87 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
90 IsValidFacename( facename )
93 RETVAL = wxFontEnumerator::IsValidFacename( facename );