1 /* -*- c-basic-offset: 8 -*-
2 rdesktop: A Remote Desktop Protocol client.
3 Generics backingstore operations
4 Copyright (C) Jay Sorg 2005-2006
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 int bs_get_pixel(int x
, int y
);
24 void bs_set_pixel(int x
, int y
, int pixel
, int rop
, int use_clip
);
25 int bs_do_rop(int rop
, int src
, int dst
);
26 void bs_init(int width
, int height
, int bpp
);
28 void bs_set_clip(int x
, int y
, int cx
, int cy
);
29 void bs_reset_clip(void);
30 void bs_set_pixel_on(char * data
, int x
, int y
, int width
, int bpp
,
32 int bs_is_pixel_on(char * data
, int x
, int y
, int width
, int bpp
);
33 void bs_copy_mem(char * d
, char * s
, int n
);
34 void bs_copy_memb(char * d
, char * s
, int n
);
35 int bs_warp_coords(int * x
, int * y
, int * cx
, int * cy
,
36 int * srcx
, int * srcy
);
37 void bs_rect(int x
, int y
, int cx
, int cy
, int colour
, int rop
);
38 void bs_screenblt(int opcode
, int x
, int y
, int cx
, int cy
,
40 void bs_memblt(int opcode
, int x
, int y
, int cx
, int cy
,
41 void * srcdata
, int srcwidth
, int srcheight
,
43 void bs_copy_box(char * dst
, int x
, int y
, int cx
, int cy
, int line_size
);
44 void bs_draw_glyph(int x
, int y
, char * glyph_data
, int glyph_width
,
45 int glyph_height
, int fgcolour
);
46 void bs_line(int opcode
, int startx
, int starty
, int endx
, int endy
,
47 int pen_width
, int pen_style
, int pen_colour
);
48 void bs_patblt(int opcode
, int x
, int y
, int cx
, int cy
,
49 int brush_style
, char * brush_pattern
,
50 int brush_x_org
, int brush_y_org
,
51 int bgcolour
, int fgcolour
);