Skip to content

Commit 9123aaf

Browse files
committed
Add back _pixels_address to docs
1 parent 43c55c9 commit 9123aaf

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

buildconfig/stubs/pygame/surface.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,8 @@ class Surface:
772772
example would be ``mysurf.get_frect(center=(100.5, 100.5))`` to create a
773773
rectangle for the Surface centered at a given position. Size attributes
774774
such as ``size`` or ``w`` can also be applied to resize the FRect.
775+
776+
..versionadded:: 2.3.0
775777
"""
776778

777779
def get_bitsize(self) -> int:

docs/reST/ref/surface.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77

88
.. autopgclass:: Surface
99
:members:
10+
:private-members: +_pixels_address

src_c/doc/surface_doc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#define DOC_SURFACE_GETBOUNDINGRECT "get_bounding_rect(min_alpha=1) -> Rect\nFind the smallest rect containing data."
5151
#define DOC_SURFACE_GETVIEW "get_view(kind='2', /) -> BufferProxy\nReturn a buffer view of the Surface's pixels."
5252
#define DOC_SURFACE_GETBUFFER "get_buffer() -> BufferProxy\nAcquires a buffer object for the pixels of the Surface."
53+
#define DOC_SURFACE_PIXELSADDRESS "_pixels_address -> int\nPixel buffer address."
5354
#define DOC_SURFACE_PREMULALPHA "premul_alpha() -> Surface\nReturns a copy of the surface with the RGB channels pre-multiplied by the alpha channel."
5455
#define DOC_SURFACE_PREMULALPHAIP "premul_alpha_ip() -> Surface\nMultiplies the RGB channels by the surface alpha channel."
5556
#define DOC_SURFACE_WIDTH "width -> int\nSurface width in pixels (read-only)."

0 commit comments

Comments
 (0)