File tree 3 files changed +4
-0
lines changed
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -772,6 +772,8 @@ class Surface:
772
772
example would be ``mysurf.get_frect(center=(100.5, 100.5))`` to create a
773
773
rectangle for the Surface centered at a given position. Size attributes
774
774
such as ``size`` or ``w`` can also be applied to resize the FRect.
775
+
776
+ ..versionadded:: 2.3.0
775
777
"""
776
778
777
779
def get_bitsize (self ) -> int :
Original file line number Diff line number Diff line change 7
7
8
8
.. autopgclass :: Surface
9
9
:members:
10
+ :private-members: +_pixels_address
Original file line number Diff line number Diff line change 50
50
#define DOC_SURFACE_GETBOUNDINGRECT "get_bounding_rect(min_alpha=1) -> Rect\nFind the smallest rect containing data."
51
51
#define DOC_SURFACE_GETVIEW "get_view(kind='2', /) -> BufferProxy\nReturn a buffer view of the Surface's pixels."
52
52
#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."
53
54
#define DOC_SURFACE_PREMULALPHA "premul_alpha() -> Surface\nReturns a copy of the surface with the RGB channels pre-multiplied by the alpha channel."
54
55
#define DOC_SURFACE_PREMULALPHAIP "premul_alpha_ip() -> Surface\nMultiplies the RGB channels by the surface alpha channel."
55
56
#define DOC_SURFACE_WIDTH "width -> int\nSurface width in pixels (read-only)."
You can’t perform that action at this time.
0 commit comments