1 #############################################################################
2 ## Name: XS/FontMapper.xs
3 ## Purpose: XS for Wx::FontMapper
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: FontMapper.xs 2299 2007-11-25 17:30:04Z mbarbon $
8 ## Copyright: (c) 2002-2003, 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/fontmap.h>
15 MODULE=Wx PACKAGE=Wx::FontMapper
20 RETVAL = wxFontMapper::Get();
24 wxFontMapper::GetAltForEncoding( encoding, facename = wxEmptyString, interactive = true )
25 wxFontEncoding encoding
29 wxFontEncoding retval;
32 result = THIS->GetAltForEncoding( encoding, &retval, facename,
35 PUSHs( boolSV( result ) );
36 PUSHs( sv_2mortal( newSViv( retval ) ) );
39 wxFontMapper::IsEncodingAvailable( encoding, facename = wxEmptyString )
40 wxFontEncoding encoding
44 wxFontMapper::CharsetToEncoding( charset, interactive = true )
49 GetEncodingName( encoding )
50 wxFontEncoding encoding
52 RETVAL = wxFontMapper::GetEncodingName( encoding );
56 GetEncodingDescription( encoding )
57 wxFontEncoding encoding
59 RETVAL = wxFontMapper::GetEncodingDescription( encoding );
62 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
65 GetAllEncodingNames( encoding )
66 wxFontEncoding encoding
68 const wxChar** encodings = wxFontMapper::GetAllEncodingNames( encoding );
73 XPUSHs( wxPli_wxChar_2_sv( aTHX_ *encodings, sv_newmortal() ) );
80 wxFontMapper::GetEncoding( n )
83 RETVAL = wxFontMapper::GetEncoding( n );
87 wxFontMapper::GetEncodingFromName( encoding )
90 RETVAL = wxFontMapper::GetEncodingFromName( encoding );
94 wxFontMapper::GetSupportedEncodingsCount()
96 RETVAL = wxFontMapper::GetSupportedEncodingsCount();
100 wxFontMapper::SetDialogParent( parent )
104 wxFontMapper::SetDialogTitle( title )
107 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
110 wxFontMapper::SetConfig( config )
116 wxFontMapper::SetConfigPath( path )