/dports/devel/py-game/pygame-2.1.0/src_c/ |
H A D | surflock.c | 46 pgSurface_Prep(pgSurfaceObject *surfobj) in pgSurface_Prep() argument 58 pgSurface_Unprep(pgSurfaceObject *surfobj) in pgSurface_Unprep() argument 68 pgSurface_Lock(pgSurfaceObject *surfobj) in pgSurface_Lock() argument 70 return pgSurface_LockBy(surfobj, (PyObject *)surfobj); in pgSurface_Lock() 74 pgSurface_Unlock(pgSurfaceObject *surfobj) in pgSurface_Unlock() argument 76 return pgSurface_UnlockBy(surfobj, (PyObject *)surfobj); in pgSurface_Unlock() 106 pgSurface_Prep(surfobj); in pgSurface_LockBy() 164 pgSurface_Unprep(surfobj); in pgSurface_UnlockBy() 241 if (surfobj == NULL) { in pgSurface_LockLifetime() 247 life->surface = surfobj; in pgSurface_LockLifetime() [all …]
|
H A D | pixelcopy.c | 461 pgSurfaceObject *surfobj; in array_to_surface() local 756 pgSurfaceObject *surfobj; in surface_to_array() local 776 pgSurface_Unlock(surfobj); in surface_to_array() 781 pgSurface_Unlock(surfobj); in surface_to_array() 817 pgSurface_Unlock(surfobj); in surface_to_array() 1123 pgSurfaceObject *surfobj; in make_surface() local 1174 surfobj = pgSurface_New(surf); in make_surface() 1175 if (!surfobj) { in make_surface() 1184 Py_DECREF(surfobj); in make_surface() 1193 Py_DECREF(surfobj); in make_surface() [all …]
|
H A D | mouse.c | 234 pgSurfaceObject *surfobj; member 347 _set_color_cursor(int spotx, int spoty, pgSurfaceObject *surfobj) { in _set_color_cursor() argument 350 surf = pgSurface_AsSurface(surfobj); in _set_color_cursor() 362 Py_XDECREF(cursor_data.surfobj); in _set_color_cursor() 363 Py_INCREF(surfobj); in _set_color_cursor() 368 cursor_data.surfobj = surfobj; in _set_color_cursor() 404 pgSurfaceObject *surfobj = NULL; in mouse_set_cursor() local 412 &pgSurface_Type, &surfobj)) { in mouse_set_cursor() 422 else if (surfobj) { in mouse_set_cursor() 423 return _set_color_cursor(spotx, spoty, surfobj); in mouse_set_cursor() [all …]
|
H A D | draw.c | 99 pgSurfaceObject *surfobj = NULL; in aaline() local 145 if (!pgSurface_Lock(surfobj)) { in aaline() 156 if (!pgSurface_Unlock(surfobj)) { in aaline() 176 pgSurfaceObject *surfobj = NULL; in line() local 216 if (!pgSurface_Lock(surfobj)) { in line() 243 pgSurfaceObject *surfobj = NULL; in aalines() local 339 if (!pgSurface_Lock(surfobj)) { in aalines() 473 if (!pgSurface_Lock(surfobj)) { in lines() 556 if (!pgSurface_Lock(surfobj)) { in arc() 622 if (!pgSurface_Lock(surfobj)) { in ellipse() [all …]
|
H A D | transform.c | 509 pgSurfaceObject *surfobj; in surf_scale() local 630 pgSurfaceObject *surfobj; in surf_rotate() local 645 Py_INCREF(surfobj); in surf_rotate() 646 return surfobj; in surf_rotate() 715 pgSurface_Lock(surfobj); in surf_rotate() 721 pgSurface_Unlock(surfobj); in surf_rotate() 730 pgSurfaceObject *surfobj; in surf_flip() local 752 pgSurface_Lock(surfobj); in surf_flip() 883 pgSurfaceObject *surfobj; in surf_rotozoom() local 1403 pgSurfaceObject *surfobj; in surf_scalesmooth() local [all …]
|
H A D | image.c | 141 pgSurfaceObject *surfobj; in image_save() local 155 pgSurface_Prep(surfobj); in image_save() 215 pgSurface_Unprep(surfobj); in image_save() 532 pgSurface_Lock(surfobj); in image_tostring() 546 pgSurface_Lock(surfobj); in image_tostring() 621 pgSurface_Lock(surfobj); in image_tostring() 698 pgSurface_Lock(surfobj); in image_tostring() 773 pgSurface_Lock(surfobj); in image_tostring() 866 pgSurface_Lock(surfobj); in image_tostring() 1105 pgSurfaceObject *surfobj; in image_frombuffer() local [all …]
|
H A D | mask.c | 825 pgSurfaceObject *surfobj = NULL; in mask_from_surface() local 855 if (!pgSurface_Lock(surfobj)) { in mask_from_surface() 873 if (!pgSurface_Unlock(surfobj)) { in mask_from_surface() 1049 pgSurfaceObject *surfobj = NULL; in mask_from_threshold() local 1111 pgSurface_Lock(surfobj); in mask_from_threshold() 1121 pgSurface_Unlock(surfobj); in mask_from_threshold() 2135 if (Py_None == surfobj) { in mask_to_surface() 2141 if (NULL == surfobj) { in mask_to_surface() 2295 Py_INCREF(surfobj); in mask_to_surface() 2298 return surfobj; in mask_to_surface() [all …]
|
H A D | _camera.c | 128 pgSurface_Lock(surfobj); in surf_colorspace() 134 pgSurface_Unlock(surfobj); in surf_colorspace() 361 pgSurfaceObject *surfobj = NULL; in camera_get_image() local 366 if (!surfobj) { in camera_get_image() 390 if (surfobj) { in camera_get_image() 391 Py_INCREF(surfobj); in camera_get_image() 392 return (PyObject *)surfobj; in camera_get_image() 407 if (!surfobj) { in camera_get_image() 429 if (surfobj) { in camera_get_image() 430 Py_INCREF(surfobj); in camera_get_image() [all …]
|
H A D | imageext.c | 582 pgSurfaceObject *surfobj; in image_save_ext() local 591 if (!PyArg_ParseTuple(arg, "O!O|s", &pgSurface_Type, &surfobj, in image_save_ext() 596 surf = pgSurface_AsSurface(surfobj); in image_save_ext() 597 pgSurface_Prep(surfobj); in image_save_ext() 689 pgSurface_Unprep(surfobj); in image_save_ext()
|
H A D | pixelarray.c | 385 pgSurfaceObject *surfobj; in _pxarray_new() local 393 if (!PyArg_ParseTuple(args, "O!", &pgSurface_Type, &surfobj)) { in _pxarray_new() 397 surf = pgSurface_AsSurface(surfobj); in _pxarray_new() 408 return (PyObject *)_pxarray_new_internal(type, surfobj, 0, pixels, dim0, in _pxarray_new() 1901 pgPixelArray_New(PyObject *surfobj) in pgPixelArray_New() argument 1910 if (!pgSurface_Check(surfobj)) { in pgPixelArray_New() 1914 surf = pgSurface_AsSurface(surfobj); in pgPixelArray_New() 1926 &pgPixelArray_Type, (pgSurfaceObject *)surfobj, 0, pixels, dim0, dim1, stride0, stride1); in pgPixelArray_New()
|
/dports/devel/py-game/pygame-2.1.0/docs/reST/c_api/ |
H A D | surflock.rst | 45 .. c:function:: void pgSurface_Prep(pgSurfaceObject *surfobj) 47 If *surfobj* is a subsurface, then lock the parent surface with *surfobj* 50 .. c:function:: void pgSurface_Unprep(pgSurfaceObject *surfobj) 52 If *surfobj* is a subsurface, then release its lock on the parent surface. 54 .. c:function:: int pgSurface_Lock(pgSurfaceObject *surfobj) 56 Lock pygame surface *surfobj*, with *surfobj* owning its own lock. 58 .. c:function:: int pgSurface_LockBy(pgSurfaceObject *surfobj, PyObject *lockobj) 60 Lock pygame surface *surfobj* with Python object *lockobj* the owning 68 .. c:function:: int pgSurface_UnLock(pgSurfaceObject *surfobj) 70 Remove the pygame surface *surfobj* object's lock on itself. [all …]
|