[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/include paragui.h,1.3.6.2,1.3.6.3 paragui_typ
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/include paragui.h,1.3.6.2,1.3.6.3 paragui_types.h,1.3.6.1,1.3.6.2 pgbutton.h,1.3,1.3.6.1 pglabel.h,1.3,1.3.6.1 pglayout.h,1.3.6.4,1.3.6.5 pglistboxbaseitem.h,1.3,1.3.6.1 pgmenubar.h,1.3,1.3.6.1 pgmessageobject.h,1.3.6.1,1.3.6.2 pgnotebook.h,1.3,1.3.6.1 |
Date: |
Fri, 01 Nov 2002 10:01:01 -0500 |
Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv2475/include
Modified Files:
Tag: devel-1-0
paragui.h paragui_types.h pgbutton.h pglabel.h pglayout.h
pglistboxbaseitem.h pgmenubar.h pgmessageobject.h pgnotebook.h
Log Message:
added Ruby bindings. Thanks Leon <address@hidden>
Index: paragui.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/paragui.h,v
retrieving revision 1.3.6.2
retrieving revision 1.3.6.3
diff -C2 -r1.3.6.2 -r1.3.6.3
*** paragui.h 18 Jun 2002 11:03:36 -0000 1.3.6.2
--- paragui.h 1 Nov 2002 15:00:59 -0000 1.3.6.3
***************
*** 50,53 ****
--- 50,54 ----
%include "pgwidget.h"
%include "pgthemewidget.h"
+ %include "pglayout.h"
%include "pgwidgetdnd.h"
%include "pgwidgetlist.h"
***************
*** 74,77 ****
--- 75,80 ----
%include "pgimage.h"
%include "pgpopupmenu.h"
+ %include "pgdropdown.h"
+ %include "pgmenubar.h"
#endif
Index: paragui_types.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/paragui_types.h,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** paragui_types.h 17 Jun 2002 11:32:59 -0000 1.3.6.1
--- paragui_types.h 1 Nov 2002 15:00:59 -0000 1.3.6.2
***************
*** 198,203 ****
typedef struct {
PG_MSG_TYPE type;
! PG_MessageObject* from;
! PG_MessageObject* to;
unsigned long widget_id;
unsigned long data;
--- 198,203 ----
typedef struct {
PG_MSG_TYPE type;
! PG_MessageObject* _from;
! PG_MessageObject* _to;
unsigned long widget_id;
unsigned long data;
Index: pgbutton.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgbutton.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pgbutton.h 15 Apr 2002 13:35:35 -0000 1.3
--- pgbutton.h 1 Nov 2002 15:00:59 -0000 1.3.6.1
***************
*** 201,206 ****
// 1.0.1 versions (surface)
!
bool SetIcon(SDL_Surface* icon_up, SDL_Surface* icon_down = NULL);
/**
--- 201,207 ----
// 1.0.1 versions (surface)
! #ifndef SWIG
bool SetIcon(SDL_Surface* icon_up, SDL_Surface* icon_down = NULL);
+ #endif
/**
Index: pglabel.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pglabel.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pglabel.h 15 Apr 2002 13:35:35 -0000 1.3
--- pglabel.h 1 Nov 2002 15:00:59 -0000 1.3.6.1
***************
*** 35,39 ****
%{
#include "pglabel.h"
! %}
#endif
--- 35,39 ----
%{
#include "pglabel.h"
! %}
#endif
Index: pglayout.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pglayout.h,v
retrieving revision 1.3.6.4
retrieving revision 1.3.6.5
diff -C2 -r1.3.6.4 -r1.3.6.5
*** pglayout.h 17 Jun 2002 13:20:03 -0000 1.3.6.4
--- pglayout.h 1 Nov 2002 15:00:59 -0000 1.3.6.5
***************
*** 30,33 ****
--- 30,40 ----
#define PG_LAYOUT_H
+ #ifdef SWIG
+ %include "swigcommon.h"
+ %module pglayout
+ %{
+ #include "pglayout.h"
+ %}
+ #endif
#include "pgwidget.h"
#include "pgapplication.h"
Index: pglistboxbaseitem.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pglistboxbaseitem.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pglistboxbaseitem.h 15 Apr 2002 13:35:35 -0000 1.3
--- pglistboxbaseitem.h 1 Nov 2002 15:00:59 -0000 1.3.6.1
***************
*** 30,33 ****
--- 30,40 ----
#define PG_LISTBOXBASEITEM_H
+ #ifdef SWIG
+ %include "swigcommon.h"
+ %module pglistboxbaseitem
+ %{
+ #include "pglistboxbaseitem.h"
+ %}
+ #endif
#include "pglabel.h"
Index: pgmenubar.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgmenubar.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pgmenubar.h 15 Apr 2002 13:35:35 -0000 1.3
--- pgmenubar.h 1 Nov 2002 15:00:59 -0000 1.3.6.1
***************
*** 30,33 ****
--- 30,40 ----
#define PG_MENUBAR_H
+ #ifdef SWIG
+ %include "swigcommon.h"
+ %module pgmenubar
+ %{
+ #include "pgmenubar.h"
+ %}
+ #endif
#include "pgthemewidget.h"
#include "pgbutton.h"
Index: pgmessageobject.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgmessageobject.h,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** pgmessageobject.h 2 May 2002 08:45:36 -0000 1.3.6.1
--- pgmessageobject.h 1 Nov 2002 15:00:59 -0000 1.3.6.2
***************
*** 334,382 ****
};
-
- #ifdef SWIG
-
- // Grab a Python function object as a Python object.
- %typemap(python,in) PyObject *pyfunc {
- if (!PyCallable_Check($source)) {
- PyErr_SetString(PyExc_TypeError, "Need a callable object!");
- return NULL;
- }
- $target = $source;
- }
-
- %addmethods PG_MessageObject {
-
- // This function matches the prototype of the normal C callback
- // function for our widget. However, we use the clientdata pointer
- // for holding a reference to a Python callable object.
-
- static bool PythonCallBack(int id, PG_Widget *widget, unsigned long
data, void *clientdata) {
- PyObject *func, *arglist;
- PyObject *result;
- bool res = 0;
-
- func = (PyObject *) clientdata; // Get Python
function
- arglist = Py_BuildValue("(ill)",id,widget,data);// Build
argument list
- result = PyEval_CallObject(func,arglist); // Call Python
- Py_DECREF(arglist); // Trash arglist
- if (result) { // If no errors,
return double
- res = PyInt_AsLong(result);
- }
- Py_XDECREF(result);
- return res;
- }
-
- // Attach a new method to our plot widget for adding Python functions
- // Set a Python function object as a callback function
- // Note : PyObject *pyfunc is remapped with a typempap
-
- void set_pymethod(PG_MSG_TYPE type, PyObject *pyfunc) {
- self->SetEventCallback(type, PG_MessageObject_PythonCallBack,
(void *) pyfunc);
- Py_INCREF(pyfunc);
- }
- }
-
- #endif
-
#endif // PG_MESSAGEOBJECT_H
--- 334,336 ----
Index: pgnotebook.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgnotebook.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pgnotebook.h 15 Apr 2002 13:35:35 -0000 1.3
--- pgnotebook.h 1 Nov 2002 15:00:59 -0000 1.3.6.1
***************
*** 35,38 ****
--- 35,45 ----
#endif
+ #ifdef SWIG
+ %include "swigcommon.h"
+ %module pgnotebook
+ %{
+ #include "pgnotebook.h"
+ %}
+ #endif
#include "pgwidget.h"
#include "pgbutton.h"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/include paragui.h,1.3.6.2,1.3.6.3 paragui_types.h,1.3.6.1,1.3.6.2 pgbutton.h,1.3,1.3.6.1 pglabel.h,1.3,1.3.6.1 pglayout.h,1.3.6.4,1.3.6.5 pglistboxbaseitem.h,1.3,1.3.6.1 pgmenubar.h,1.3,1.3.6.1 pgmessageobject.h,1.3.6.1,1.3.6.2 pgnotebook.h,1.3,1.3.6.1,
Alexander Pipelka <address@hidden> <=