|
|
|
@@ -93,6 +93,32 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
|
|
|
|
// Put some wx default wxChar* values into wxStrings.
|
|
|
|
|
static const wxString wxPyEmptyString(wxT(""));
|
|
|
|
|
|
|
|
|
|
// Fix some link errors... Remove this when these methods get real implementations...
|
|
|
|
|
#if defined(__WXGTK__) || defined(__WXX11__)
|
|
|
|
|
#if wxUSE_PANGO
|
|
|
|
|
void wxNativeFontInfo::SetPointSize(int pointsize)
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
|
|
|
|
|
void wxNativeFontInfo::SetStyle(wxFontStyle style)
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
|
|
|
|
|
void wxNativeFontInfo::SetWeight(wxFontWeight weight)
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
|
|
|
|
|
void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined))
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
|
|
|
|
|
void wxNativeFontInfo::SetFaceName(wxString facename)
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
|
|
|
|
|
void wxNativeFontInfo::SetFamily(wxFontFamily family)
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
|
|
|
|
|
void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding)
|
|
|
|
|
{ wxFAIL_MSG( _T("not implemented") ); }
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
class wxPyFontEnumerator : public wxFontEnumerator {
|
|
|
|
|
public:
|
|
|
|
|
wxPyFontEnumerator() {}
|
|
|
|
@@ -173,149 +199,6 @@ static PyObject *_wrap_wxGetTranslation(PyObject *self, PyObject *args, PyObject
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
bool _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxString * _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
PyObject * _obj1 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","xFontName", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
_arg1 = wxString_in_helper(_obj1);
|
|
|
|
|
if (_arg1 == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
{
|
|
|
|
|
if (_obj1)
|
|
|
|
|
delete _arg1;
|
|
|
|
|
}
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
bool _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (bool )wxNativeFontInfo_IsDefault(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxString * _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = new wxString (wxNativeFontInfo_GetXFontName(_arg0));
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
}{
|
|
|
|
|
#if wxUSE_UNICODE
|
|
|
|
|
_resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
|
|
|
|
|
#else
|
|
|
|
|
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
delete _result;
|
|
|
|
|
}
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxString * _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
PyObject * _obj1 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","xFontName", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
_arg1 = wxString_in_helper(_obj1);
|
|
|
|
|
if (_arg1 == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetXFontName(_arg0,*_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
{
|
|
|
|
|
if (_obj1)
|
|
|
|
|
delete _arg1;
|
|
|
|
|
}
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define new_wxNativeFontInfo() (new wxNativeFontInfo())
|
|
|
|
|
static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
@@ -370,6 +253,426 @@ static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyO
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
int _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (int )wxNativeFontInfo_GetPointSize(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxFontStyle _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxFontWeight _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
bool _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (bool )wxNativeFontInfo_GetUnderlined(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxString * _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = new wxString (wxNativeFontInfo_GetFaceName(_arg0));
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
}{
|
|
|
|
|
#if wxUSE_UNICODE
|
|
|
|
|
_resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
|
|
|
|
|
#else
|
|
|
|
|
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
delete _result;
|
|
|
|
|
}
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxFontFamily _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxFontEncoding _result;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
_result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} _resultobj = Py_BuildValue("i",_result);
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
int _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","pointsize", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetPointSize(_arg0,_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxFontStyle _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","style", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetStyle(_arg0,_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxFontWeight _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","weight", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetWeight(_arg0,_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
bool _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
int tempbool1;
|
|
|
|
|
char *_kwnames[] = { "self","underlined", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_arg1 = (bool ) tempbool1;
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetUnderlined(_arg0,_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxString * _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
PyObject * _obj1 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","facename", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
_arg1 = wxString_in_helper(_obj1);
|
|
|
|
|
if (_arg1 == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetFaceName(_arg0,*_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
{
|
|
|
|
|
if (_obj1)
|
|
|
|
|
delete _arg1;
|
|
|
|
|
}
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxFontFamily _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","family", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetFamily(_arg0,_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
|
wxNativeFontInfo * _arg0;
|
|
|
|
|
wxFontEncoding _arg1;
|
|
|
|
|
PyObject * _argo0 = 0;
|
|
|
|
|
char *_kwnames[] = { "self","encoding", NULL };
|
|
|
|
|
|
|
|
|
|
self = self;
|
|
|
|
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1))
|
|
|
|
|
return NULL;
|
|
|
|
|
if (_argo0) {
|
|
|
|
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
|
|
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
|
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
|
|
|
wxNativeFontInfo_SetEncoding(_arg0,_arg1);
|
|
|
|
|
|
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
|
|
|
if (PyErr_Occurred()) return NULL;
|
|
|
|
|
} Py_INCREF(Py_None);
|
|
|
|
|
_resultobj = Py_None;
|
|
|
|
|
return _resultobj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
|
|
|
|
|
static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
|
|
|
PyObject * _resultobj;
|
|
|
|
@@ -3474,12 +3777,22 @@ static PyMethodDef fontscMethods[] = {
|
|
|
|
|
{ "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxGetTranslation", (PyCFunction) _wrap_wxGetTranslation, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ "wxGetLocale", (PyCFunction) _wrap_wxGetLocale, METH_VARARGS | METH_KEYWORDS },
|
|
|
|
|
{ NULL, NULL }
|
|
|
|
|