1 /* -*- c-basic-offset: 8 -*- 2 rdesktop: A Remote Desktop Protocol client. 3 Generics backingstore operations 4 Copyright (C) Jay Sorg 2005-2006 5 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. 10 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. 15 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. 19 */ 20 21 #ifndef __BSOPS_MSTSC_H 22 #define __BSOPS_MSTSC_H 23 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); 28 void bs_exit(void); 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, 32 int pixel); 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, 40 int srcx, int srcy); 41 void bs_memblt(int opcode, int x, int y, int cx, int cy, 42 void * srcdata, int srcwidth, int srcheight, 43 int srcx, int srcy); 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); 53 54 #endif /* __BSOPS_MSTSC_H */ 55