reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -372,6 +372,8 @@ DOT_DASH = _core_.DOT_DASH
|
||||
USER_DASH = _core_.USER_DASH
|
||||
TRANSPARENT = _core_.TRANSPARENT
|
||||
STIPPLE = _core_.STIPPLE
|
||||
STIPPLE_MASK = _core_.STIPPLE_MASK
|
||||
STIPPLE_MASK_OPAQUE = _core_.STIPPLE_MASK_OPAQUE
|
||||
BDIAGONAL_HATCH = _core_.BDIAGONAL_HATCH
|
||||
CROSSDIAG_HATCH = _core_.CROSSDIAG_HATCH
|
||||
FDIAGONAL_HATCH = _core_.FDIAGONAL_HATCH
|
||||
|
@@ -48620,6 +48620,12 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
{
|
||||
PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)(wxSTIPPLE)));
|
||||
}
|
||||
{
|
||||
PyDict_SetItemString(d,"STIPPLE_MASK", SWIG_From_int((int)(wxSTIPPLE_MASK)));
|
||||
}
|
||||
{
|
||||
PyDict_SetItemString(d,"STIPPLE_MASK_OPAQUE", SWIG_From_int((int)(wxSTIPPLE_MASK_OPAQUE)));
|
||||
}
|
||||
{
|
||||
PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)(wxBDIAGONAL_HATCH)));
|
||||
}
|
||||
|
@@ -512,6 +512,16 @@ class BrushPtr(Brush):
|
||||
self.__class__ = Brush
|
||||
_gdi_.Brush_swigregister(BrushPtr)
|
||||
|
||||
def BrushFromBitmap(*args, **kwargs):
|
||||
"""
|
||||
BrushFromBitmap(Bitmap stippleBitmap) -> Brush
|
||||
|
||||
Constructs a stippled brush using a bitmap.
|
||||
"""
|
||||
val = _gdi_.new_BrushFromBitmap(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class Bitmap(GDIObject):
|
||||
"""
|
||||
The wx.Bitmap class encapsulates the concept of a platform-dependent
|
||||
|
@@ -3663,6 +3663,39 @@ static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBitmap *arg1 = 0 ;
|
||||
wxBrush *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "stippleBitmap", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
if (arg1 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
}
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxBrush *arg1 = (wxBrush *) 0 ;
|
||||
@@ -20528,6 +20561,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
@@ -554,6 +554,16 @@ def GetTopLevelParent(*args, **kwargs):
|
||||
"""GetTopLevelParent(Window win) -> Window"""
|
||||
return _misc_.GetTopLevelParent(*args, **kwargs)
|
||||
|
||||
def LaunchDefaultBrowser(*args, **kwargs):
|
||||
"""
|
||||
LaunchDefaultBrowser(String url) -> bool
|
||||
|
||||
Launches the user's default browser and tells it to open the location
|
||||
at ``url``. Returns ``True`` if the application was successfully
|
||||
launched.
|
||||
"""
|
||||
return _misc_.LaunchDefaultBrowser(*args, **kwargs)
|
||||
|
||||
def GetKeyState(*args, **kwargs):
|
||||
"""
|
||||
GetKeyState(int key) -> bool
|
||||
|
@@ -6016,6 +6016,46 @@ static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *k
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_LaunchDefaultBrowser(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxString *arg1 = 0 ;
|
||||
bool result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "url", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) goto fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxKeyCode arg1 ;
|
||||
@@ -31498,6 +31538,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
Reference in New Issue
Block a user