GVnc.Framebuffer¶
- Implementations:
 
Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class GVnc.Framebuffer¶
 - Bases:
 - Structure:
 
- blt(src, rowstride, x, y, width, height)¶
 
- copyrect(srcx, srcy, dstx, dsty, width, height)¶
 - Parameters:
 
Copies data from the range (srcx, srcy) to (srcx+`width`, srcy+`height`) over to the range starting at (dstx, dsty).
- fill(src, x, y, width, height)¶
 - Parameters:
 
Fill all the pixels in the range (x, y) to (x + width, y + height) to the value in src. The number of bytes in src is determined by the remote pixel format
- get_buffer()¶
 - Returns:
 the framebuffer data
- Return type:
 
Get a pointer to the framebuffer contents
- get_height()¶
 - Returns:
 the frambuffer height
- Return type:
 
Query the height of the remote framebuffer
- get_local_format()¶
 - Returns:
 the local pixel format
- Return type:
 
Get the pixel format used to store the framebuffer locally
- get_remote_format()¶
 - Return type:
 
- get_rowstride()¶
 - Returns:
 the framebuffer row stride
- Return type:
 
Get the number of bytes per line of the framebuffer
- get_width()¶
 - Returns:
 the framebuffer width
- Return type:
 
Query the width of the remote framebuffer
- perfect_format_match()¶
 - 
Determine if the local and remote pixel formats match
 
- rgb24_blt(src, rowstride, x, y, width, height)¶
 - Parameters:
 
Fill all the pixels in the range (x, y) to (x + width, y + height) to the value in src. The number of bytes in src is always 3 as it must be in plain RGB24 format.
- set_color_map(map)¶
 - Parameters:
 map (
GVnc.ColorMap) – the new color map
Set the color map to use for the framebuffer
- set_pixel_at(src, x, y)¶
 - Parameters:
 
Sets a pixel in the framebuffer at (x, y) to the value in src. The number of bytes in src is determined by the remote pixel format
- do_blt(src, rowstride, x, y, width, height) virtual¶
 
- do_copyrect(srcx, srcy, dstx, dsty, width, height) virtual¶
 - Parameters:
 
Copies data from the range (srcx, srcy) to (srcx+`width`, srcy+`height`) over to the range starting at (dstx, dsty).
- do_fill(src, x, y, width, height) virtual¶
 - Parameters:
 
Fill all the pixels in the range (x, y) to (x + width, y + height) to the value in src. The number of bytes in src is determined by the remote pixel format
- do_get_height() virtual¶
 - Returns:
 the frambuffer height
- Return type:
 
Query the height of the remote framebuffer
- do_get_local_format() virtual¶
 - Returns:
 the local pixel format
- Return type:
 
Get the pixel format used to store the framebuffer locally
- do_get_remote_format() virtual¶
 - Return type:
 
- do_get_rowstride() virtual¶
 - Returns:
 the framebuffer row stride
- Return type:
 
Get the number of bytes per line of the framebuffer
- do_get_width() virtual¶
 - Returns:
 the framebuffer width
- Return type:
 
Query the width of the remote framebuffer
- do_perfect_format_match() virtual¶
 - 
Determine if the local and remote pixel formats match
 
- do_rgb24_blt(src, rowstride, x, y, width, height) virtual¶
 - Parameters:
 
Fill all the pixels in the range (x, y) to (x + width, y + height) to the value in src. The number of bytes in src is always 3 as it must be in plain RGB24 format.
- do_set_color_map(map) virtual¶
 - Parameters:
 map (
GVnc.ColorMap) – the new color map
Set the color map to use for the framebuffer