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
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __BSOPS_MSTSC_H
22 #define __BSOPS_MSTSC_H
24 int bs_get_pixel(int x
, int y
);
25 void bs_set_pixel(int x
, int y
, int pixel
, int rop
, int use_clip
);
26 int bs_do_rop(int rop
, int src
, int dst
);
27 void bs_init(int width
, int height
, int bpp
);
29 void bs_set_clip(int x
, int y
, int cx
, int cy
);
30 void bs_reset_clip(void);
31 void bs_set_pixel_on(char * data
, int x
, int y
, int width
, int bpp
,
33 int bs_is_pixel_on(char * data
, int x
, int y
, int width
, int bpp
);
34 void bs_copy_mem(char * d
, char * s
, int n
);
35 void bs_copy_memb(char * d
, char * s
, int n
);
36 int bs_warp_coords(int * x
, int * y
, int * cx
, int * cy
,
37 int * srcx
, int * srcy
);
38 void bs_rect(int x
, int y
, int cx
, int cy
, int colour
, int rop
);
39 void bs_screenblt(int opcode
, int x
, int y
, int cx
, int cy
,
41 void bs_memblt(int opcode
, int x
, int y
, int cx
, int cy
,
42 void * srcdata
, int srcwidth
, int srcheight
,
44 void bs_copy_box(char * dst
, int x
, int y
, int cx
, int cy
, int line_size
);
45 void bs_draw_glyph(int x
, int y
, char * glyph_data
, int glyph_width
,
46 int glyph_height
, int fgcolour
);
47 void bs_line(int opcode
, int startx
, int starty
, int endx
, int endy
,
48 int pen_width
, int pen_style
, int pen_colour
);
49 void bs_patblt(int opcode
, int x
, int y
, int cx
, int cy
,
50 int brush_style
, char * brush_pattern
,
51 int brush_x_org
, int brush_y_org
,
52 int bgcolour
, int fgcolour
);
54 #endif /* __BSOPS_MSTSC_H */