1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
|
/* Auto generated file: with makeref.py . Docs go in docs/reST/ref/ . */
#define DOC_PYGAMESURFACE "Surface((width, height), flags=0, depth=0, masks=None) -> Surface\nSurface((width, height), flags=0, Surface) -> Surface\npygame object for representing images"
#define DOC_SURFACEBLIT "blit(source, dest, area=None, special_flags=0) -> Rect\ndraw one image onto another"
#define DOC_SURFACEBLITS "blits(blit_sequence=((source, dest), ...), doreturn=1) -> [Rect, ...] or None\nblits(((source, dest, area), ...)) -> [Rect, ...]\nblits(((source, dest, area, special_flags), ...)) -> [Rect, ...]\ndraw many images onto another"
#define DOC_SURFACECONVERT "convert(Surface=None) -> Surface\nconvert(depth, flags=0) -> Surface\nconvert(masks, flags=0) -> Surface\nchange the pixel format of an image"
#define DOC_SURFACECONVERTALPHA "convert_alpha(Surface) -> Surface\nconvert_alpha() -> Surface\nchange the pixel format of an image including per pixel alphas"
#define DOC_SURFACECOPY "copy() -> Surface\ncreate a new copy of a Surface"
#define DOC_SURFACEFILL "fill(color, rect=None, special_flags=0) -> Rect\nfill Surface with a solid color"
#define DOC_SURFACESCROLL "scroll(dx=0, dy=0) -> None\nShift the surface image in place"
#define DOC_SURFACESETCOLORKEY "set_colorkey(Color, flags=0) -> None\nset_colorkey(None) -> None\nSet the transparent colorkey"
#define DOC_SURFACEGETCOLORKEY "get_colorkey() -> RGB or None\nGet the current transparent colorkey"
#define DOC_SURFACESETALPHA "set_alpha(value, flags=0) -> None\nset_alpha(None) -> None\nset the alpha value for the full Surface image"
#define DOC_SURFACEGETALPHA "get_alpha() -> int_value\nget the current Surface transparency value"
#define DOC_SURFACELOCK "lock() -> None\nlock the Surface memory for pixel access"
#define DOC_SURFACEUNLOCK "unlock() -> None\nunlock the Surface memory from pixel access"
#define DOC_SURFACEMUSTLOCK "mustlock() -> bool\ntest if the Surface requires locking"
#define DOC_SURFACEGETLOCKED "get_locked() -> bool\ntest if the Surface is current locked"
#define DOC_SURFACEGETLOCKS "get_locks() -> tuple\nGets the locks for the Surface"
#define DOC_SURFACEGETAT "get_at((x, y)) -> Color\nget the color value at a single pixel"
#define DOC_SURFACESETAT "set_at((x, y), Color) -> None\nset the color value for a single pixel"
#define DOC_SURFACEGETATMAPPED "get_at_mapped((x, y)) -> Color\nget the mapped color value at a single pixel"
#define DOC_SURFACEGETPALETTE "get_palette() -> [RGB, RGB, RGB, ...]\nget the color index palette for an 8-bit Surface"
#define DOC_SURFACEGETPALETTEAT "get_palette_at(index) -> RGB\nget the color for a single entry in a palette"
#define DOC_SURFACESETPALETTE "set_palette([RGB, RGB, RGB, ...]) -> None\nset the color palette for an 8-bit Surface"
#define DOC_SURFACESETPALETTEAT "set_palette_at(index, RGB) -> None\nset the color for a single index in an 8-bit Surface palette"
#define DOC_SURFACEMAPRGB "map_rgb(Color) -> mapped_int\nconvert a color into a mapped color value"
#define DOC_SURFACEUNMAPRGB "unmap_rgb(mapped_int) -> Color\nconvert a mapped integer color value into a Color"
#define DOC_SURFACESETCLIP "set_clip(rect) -> None\nset_clip(None) -> None\nset the current clipping area of the Surface"
#define DOC_SURFACEGETCLIP "get_clip() -> Rect\nget the current clipping area of the Surface"
#define DOC_SURFACESUBSURFACE "subsurface(Rect) -> Surface\ncreate a new surface that references its parent"
#define DOC_SURFACEGETPARENT "get_parent() -> Surface\nfind the parent of a subsurface"
#define DOC_SURFACEGETABSPARENT "get_abs_parent() -> Surface\nfind the top level parent of a subsurface"
#define DOC_SURFACEGETOFFSET "get_offset() -> (x, y)\nfind the position of a child subsurface inside a parent"
#define DOC_SURFACEGETABSOFFSET "get_abs_offset() -> (x, y)\nfind the absolute position of a child subsurface inside its top level parent"
#define DOC_SURFACEGETSIZE "get_size() -> (width, height)\nget the dimensions of the Surface"
#define DOC_SURFACEGETWIDTH "get_width() -> width\nget the width of the Surface"
#define DOC_SURFACEGETHEIGHT "get_height() -> height\nget the height of the Surface"
#define DOC_SURFACEGETRECT "get_rect(**kwargs) -> Rect\nget the rectangular area of the Surface"
#define DOC_SURFACEGETBITSIZE "get_bitsize() -> int\nget the bit depth of the Surface pixel format"
#define DOC_SURFACEGETBYTESIZE "get_bytesize() -> int\nget the bytes used per Surface pixel"
#define DOC_SURFACEGETFLAGS "get_flags() -> int\nget the additional flags used for the Surface"
#define DOC_SURFACEGETPITCH "get_pitch() -> int\nget the number of bytes used per Surface row"
#define DOC_SURFACEGETMASKS "get_masks() -> (R, G, B, A)\nthe bitmasks needed to convert between a color and a mapped integer"
#define DOC_SURFACESETMASKS "set_masks((r,g,b,a)) -> None\nset the bitmasks needed to convert between a color and a mapped integer"
#define DOC_SURFACEGETSHIFTS "get_shifts() -> (R, G, B, A)\nthe bit shifts needed to convert between a color and a mapped integer"
#define DOC_SURFACESETSHIFTS "set_shifts((r,g,b,a)) -> None\nsets the bit shifts needed to convert between a color and a mapped integer"
#define DOC_SURFACEGETLOSSES "get_losses() -> (R, G, B, A)\nthe significant bits used to convert between a color and a mapped integer"
#define DOC_SURFACEGETBOUNDINGRECT "get_bounding_rect(min_alpha = 1) -> Rect\nfind the smallest rect containing data"
#define DOC_SURFACEGETVIEW "get_view(<kind>='2') -> BufferProxy\nreturn a buffer view of the Surface's pixels."
#define DOC_SURFACEGETBUFFER "get_buffer() -> BufferProxy\nacquires a buffer object for the pixels of the Surface."
#define DOC_SURFACEPIXELSADDRESS "_pixels_address -> int\npixel buffer address"
#define DOC_SURFACEPREMULALPHA "premul_alpha() -> Surface\nreturns a copy of the surface with the RGB channels pre-multiplied by the alpha channel."
/* Docs in a comment... slightly easier to read. */
/*
pygame.Surface
Surface((width, height), flags=0, depth=0, masks=None) -> Surface
Surface((width, height), flags=0, Surface) -> Surface
pygame object for representing images
pygame.Surface.blit
blit(source, dest, area=None, special_flags=0) -> Rect
draw one image onto another
pygame.Surface.blits
blits(blit_sequence=((source, dest), ...), doreturn=1) -> [Rect, ...] or None
blits(((source, dest, area), ...)) -> [Rect, ...]
blits(((source, dest, area, special_flags), ...)) -> [Rect, ...]
draw many images onto another
pygame.Surface.convert
convert(Surface=None) -> Surface
convert(depth, flags=0) -> Surface
convert(masks, flags=0) -> Surface
change the pixel format of an image
pygame.Surface.convert_alpha
convert_alpha(Surface) -> Surface
convert_alpha() -> Surface
change the pixel format of an image including per pixel alphas
pygame.Surface.copy
copy() -> Surface
create a new copy of a Surface
pygame.Surface.fill
fill(color, rect=None, special_flags=0) -> Rect
fill Surface with a solid color
pygame.Surface.scroll
scroll(dx=0, dy=0) -> None
Shift the surface image in place
pygame.Surface.set_colorkey
set_colorkey(Color, flags=0) -> None
set_colorkey(None) -> None
Set the transparent colorkey
pygame.Surface.get_colorkey
get_colorkey() -> RGB or None
Get the current transparent colorkey
pygame.Surface.set_alpha
set_alpha(value, flags=0) -> None
set_alpha(None) -> None
set the alpha value for the full Surface image
pygame.Surface.get_alpha
get_alpha() -> int_value
get the current Surface transparency value
pygame.Surface.lock
lock() -> None
lock the Surface memory for pixel access
pygame.Surface.unlock
unlock() -> None
unlock the Surface memory from pixel access
pygame.Surface.mustlock
mustlock() -> bool
test if the Surface requires locking
pygame.Surface.get_locked
get_locked() -> bool
test if the Surface is current locked
pygame.Surface.get_locks
get_locks() -> tuple
Gets the locks for the Surface
pygame.Surface.get_at
get_at((x, y)) -> Color
get the color value at a single pixel
pygame.Surface.set_at
set_at((x, y), Color) -> None
set the color value for a single pixel
pygame.Surface.get_at_mapped
get_at_mapped((x, y)) -> Color
get the mapped color value at a single pixel
pygame.Surface.get_palette
get_palette() -> [RGB, RGB, RGB, ...]
get the color index palette for an 8-bit Surface
pygame.Surface.get_palette_at
get_palette_at(index) -> RGB
get the color for a single entry in a palette
pygame.Surface.set_palette
set_palette([RGB, RGB, RGB, ...]) -> None
set the color palette for an 8-bit Surface
pygame.Surface.set_palette_at
set_palette_at(index, RGB) -> None
set the color for a single index in an 8-bit Surface palette
pygame.Surface.map_rgb
map_rgb(Color) -> mapped_int
convert a color into a mapped color value
pygame.Surface.unmap_rgb
unmap_rgb(mapped_int) -> Color
convert a mapped integer color value into a Color
pygame.Surface.set_clip
set_clip(rect) -> None
set_clip(None) -> None
set the current clipping area of the Surface
pygame.Surface.get_clip
get_clip() -> Rect
get the current clipping area of the Surface
pygame.Surface.subsurface
subsurface(Rect) -> Surface
create a new surface that references its parent
pygame.Surface.get_parent
get_parent() -> Surface
find the parent of a subsurface
pygame.Surface.get_abs_parent
get_abs_parent() -> Surface
find the top level parent of a subsurface
pygame.Surface.get_offset
get_offset() -> (x, y)
find the position of a child subsurface inside a parent
pygame.Surface.get_abs_offset
get_abs_offset() -> (x, y)
find the absolute position of a child subsurface inside its top level parent
pygame.Surface.get_size
get_size() -> (width, height)
get the dimensions of the Surface
pygame.Surface.get_width
get_width() -> width
get the width of the Surface
pygame.Surface.get_height
get_height() -> height
get the height of the Surface
pygame.Surface.get_rect
get_rect(**kwargs) -> Rect
get the rectangular area of the Surface
pygame.Surface.get_bitsize
get_bitsize() -> int
get the bit depth of the Surface pixel format
pygame.Surface.get_bytesize
get_bytesize() -> int
get the bytes used per Surface pixel
pygame.Surface.get_flags
get_flags() -> int
get the additional flags used for the Surface
pygame.Surface.get_pitch
get_pitch() -> int
get the number of bytes used per Surface row
pygame.Surface.get_masks
get_masks() -> (R, G, B, A)
the bitmasks needed to convert between a color and a mapped integer
pygame.Surface.set_masks
set_masks((r,g,b,a)) -> None
set the bitmasks needed to convert between a color and a mapped integer
pygame.Surface.get_shifts
get_shifts() -> (R, G, B, A)
the bit shifts needed to convert between a color and a mapped integer
pygame.Surface.set_shifts
set_shifts((r,g,b,a)) -> None
sets the bit shifts needed to convert between a color and a mapped integer
pygame.Surface.get_losses
get_losses() -> (R, G, B, A)
the significant bits used to convert between a color and a mapped integer
pygame.Surface.get_bounding_rect
get_bounding_rect(min_alpha = 1) -> Rect
find the smallest rect containing data
pygame.Surface.get_view
get_view(<kind>='2') -> BufferProxy
return a buffer view of the Surface's pixels.
pygame.Surface.get_buffer
get_buffer() -> BufferProxy
acquires a buffer object for the pixels of the Surface.
pygame.Surface._pixels_address
_pixels_address -> int
pixel buffer address
pygame.Surface.premul_alpha
premul_alpha() -> Surface
returns a copy of the surface with the RGB channels pre-multiplied by the alpha channel.
*/
|