File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 77
88.. autopgclass :: Surface
99 :members:
10+ :private-members: +_pixels_address
Original file line number Diff line number Diff line change 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)."
You can’t perform that action at this time.
0 commit comments