Interface
GVncFramebuffer
Prerequisite
In order to implement Framebuffer, your type must inherit from
GObject.
Instance methods
vnc_framebuffer_blt
vnc_framebuffer_copyrect
Copies data from the range (srcx, srcy) to (srcx+width, srcy+height) over to the
range starting at (dstx, dsty).
vnc_framebuffer_fill
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.
vnc_framebuffer_get_buffer
Get a pointer to the framebuffer contents.
vnc_framebuffer_get_height
Query the height of the remote framebuffer.
vnc_framebuffer_get_local_format
Get the pixel format used to store the framebuffer locally.
vnc_framebuffer_get_remote_format
vnc_framebuffer_get_rowstride
Get the number of bytes per line of the framebuffer.
vnc_framebuffer_get_width
Query the width of the remote framebuffer.
vnc_framebuffer_perfect_format_match
Determine if the local and remote pixel formats match.
vnc_framebuffer_rgb24_blt
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.
vnc_framebuffer_set_color_map
Set the color map to use for the framebuffer.
vnc_framebuffer_set_pixel_at
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.
Interface structure
struct GVncFramebufferInterface {
GTypeInterface parent;
guint16 (* get_width) (
VncFramebuffer* fb
);
guint16 (* get_height) (
VncFramebuffer* fb
);
int (* get_rowstride) (
VncFramebuffer* fb
);
guint8* (* get_buffer) (
VncFramebuffer* fb
);
const VncPixelFormat* (* get_local_format) (
VncFramebuffer* fb
);
const VncPixelFormat* (* get_remote_format) (
VncFramebuffer* fb
);
gboolean (* perfect_format_match) (
VncFramebuffer* fb
);
void (* set_pixel_at) (
VncFramebuffer* fb,
guint8* src,
guint16 x,
guint16 y
);
void (* fill) (
VncFramebuffer* fb,
guint8* src,
guint16 x,
guint16 y,
guint16 width,
guint16 height
);
void (* copyrect) (
VncFramebuffer* fb,
guint16 srcx,
guint16 srcy,
guint16 dstx,
guint16 dsty,
guint16 width,
guint16 height
);
void (* blt) (
VncFramebuffer* fb,
guint8* src,
int rowstride,
guint16 x,
guint16 y,
guint16 width,
guint16 height
);
void (* rgb24_blt) (
VncFramebuffer* fb,
guint8* src,
int rowstride,
guint16 x,
guint16 y,
guint16 width,
guint16 height
);
void (* set_color_map) (
VncFramebuffer* fb,
VncColorMap* map
);
}
Interface members
parent |
|
| No description available. | |
get_width |
|
| No description available. | |
get_height |
|
| No description available. | |
get_rowstride |
|
| No description available. | |
get_buffer |
|
| No description available. | |
get_local_format |
|
| No description available. | |
get_remote_format |
|
| No description available. | |
perfect_format_match |
|
| No description available. | |
set_pixel_at |
|
| No description available. | |
fill |
|
| No description available. | |
copyrect |
|
| No description available. | |
blt |
|
| No description available. | |
rgb24_blt |
|
| No description available. | |
set_color_map |
|
| No description available. |
Virtual methods
GVnc.Framebuffer.blt
GVnc.Framebuffer.copyrect
Copies data from the range (srcx, srcy) to (srcx+width, srcy+height) over to the
range starting at (dstx, dsty).
GVnc.Framebuffer.fill
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.
GVnc.Framebuffer.get_buffer
GVnc.Framebuffer.get_height
Query the height of the remote framebuffer.
GVnc.Framebuffer.get_local_format
Get the pixel format used to store the framebuffer locally.
GVnc.Framebuffer.get_remote_format
GVnc.Framebuffer.get_rowstride
Get the number of bytes per line of the framebuffer.
GVnc.Framebuffer.get_width
Query the width of the remote framebuffer.
GVnc.Framebuffer.perfect_format_match
Determine if the local and remote pixel formats match.
GVnc.Framebuffer.rgb24_blt
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.
GVnc.Framebuffer.set_color_map
Set the color map to use for the framebuffer.
GVnc.Framebuffer.set_pixel_at
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.