#include <imagebuf.h>
Inheritance diagram for Image_buffer:
Public Member Functions | |
virtual | ~Image_buffer () |
unsigned char * | get_bits () |
unsigned int | get_width () |
unsigned int | get_height () |
unsigned int | get_line_width () |
void | clear_clip () |
void | set_clip (int x, int y, int w, int h) |
int | is_visible (int x, int y, int w, int h) |
virtual void | fill16 (unsigned short pix) |
virtual void | fill16 (unsigned short pix, int srcw, int srch, int destx, int desty) |
virtual void | copy16 (unsigned short *src_pixels, int srcw, int srch, int destx, int desty) |
virtual void | copy_transparent16 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty) |
virtual void | fill8 (unsigned char val)=0 |
virtual void | fill8 (unsigned char val, int srcw, int srch, int destx, int desty)=0 |
virtual void | fill_line8 (unsigned char val, int srcw, int destx, int desty)=0 |
virtual void | copy8 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty)=0 |
virtual void | copy_line8 (unsigned char *src_pixels, int srcw, int destx, int desty)=0 |
virtual void | copy_line_translucent8 (unsigned char *src_pixels, int srcw, int destx, int desty, int first_translucent, int last_translucent, Xform_palette *xforms)=0 |
virtual void | fill_line_translucent8 (unsigned char val, int srcw, int destx, int desty, Xform_palette &xform)=0 |
virtual void | fill_translucent8 (unsigned char val, int srcw, int srch, int destx, int desty, Xform_palette &xform)=0 |
virtual void | copy_transparent8 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty)=0 |
virtual Image_buffer * | create_another (int w, int h)=0 |
virtual void | copy (int srcx, int srcy, int srcw, int srch, int destx, int desty)=0 |
virtual void | get (Image_buffer *dest, int srcx, int srcy)=0 |
virtual void | put (Image_buffer *src, int destx, int desty)=0 |
virtual void | fill_static (int black, int gray, int white)=0 |
Protected Member Functions | |
int | clip_x (int &srcx, int &srcw, int &destx, int desty) |
int | clip (int &srcx, int &srcy, int &srcw, int &srch, int &destx, int &desty) |
Image_buffer (unsigned int w, unsigned int h, int dpth) | |
Imagebuf.cc - A window to blit images into. | |
Protected Attributes | |
unsigned int | width |
unsigned int | height |
int | depth |
int | pixel_size |
unsigned char * | bits |
unsigned int | line_width |
Private Member Functions | |
int | clip_internal (int &srcx, int &srcw, int &destx, int clips, int clipl) |
Private Attributes | |
int | clipx |
int | clipy |
int | clipw |
int | cliph |
Friends | |
class | Image_buffer8 |
class | Image_buffer16 |
class | Image_window |
Definition at line 52 of file imagebuf.h.
Image_buffer::Image_buffer | ( | unsigned int | w, | |
unsigned int | h, | |||
int | dpth | |||
) | [protected] |
Imagebuf.cc - A window to blit images into.
Written: 8/13/98 - JSF
Definition at line 37 of file imagebuf.cc.
virtual Image_buffer::~Image_buffer | ( | ) | [inline, virtual] |
int Image_buffer::clip_internal | ( | int & | srcx, | |
int & | srcw, | |||
int & | destx, | |||
int | clips, | |||
int | clipl | |||
) | [inline, private] |
int Image_buffer::clip_x | ( | int & | srcx, | |
int & | srcw, | |||
int & | destx, | |||
int | desty | |||
) | [inline, protected] |
Definition at line 79 of file imagebuf.h.
References clip_internal(), cliph, clipw, clipx, and clipy.
Here is the call graph for this function:
int Image_buffer::clip | ( | int & | srcx, | |
int & | srcy, | |||
int & | srcw, | |||
int & | srch, | |||
int & | destx, | |||
int & | desty | |||
) | [inline, protected] |
Definition at line 82 of file imagebuf.h.
References clip_internal(), cliph, clipw, clipx, and clipy.
Here is the call graph for this function:
unsigned char* Image_buffer::get_bits | ( | ) | [inline] |
Definition at line 98 of file imagebuf.h.
References bits.
Referenced by Shape_chooser::create_new_shape(), Chunk_chooser::drag_begin(), Shape_chooser::export_png(), Image_window8::mini_screenshot(), Shape_chooser::new_frame(), Game_render::paint_chunk_flats(), Shape_frame::reflect(), Shape_draw::set_drag_icon(), Write_frame(), and Write_tiled_frames().
unsigned int Image_buffer::get_width | ( | ) | [inline] |
Definition at line 100 of file imagebuf.h.
References width.
Referenced by Shape_chooser::export_png(), Image_buffer16::get(), Image_buffer8::put(), and Image_buffer16::put().
unsigned int Image_buffer::get_height | ( | ) | [inline] |
Definition at line 102 of file imagebuf.h.
References height.
Referenced by Shape_chooser::export_png(), Image_buffer16::get(), Image_buffer8::put(), and Image_buffer16::put().
unsigned int Image_buffer::get_line_width | ( | ) | [inline] |
Definition at line 104 of file imagebuf.h.
References line_width.
Referenced by Chunk_chooser::drag_begin(), Image_window8::mini_screenshot(), and Shape_draw::set_drag_icon().
void Image_buffer::clear_clip | ( | ) | [inline] |
Definition at line 106 of file imagebuf.h.
References cliph, clipw, clipx, clipy, height, and width.
Referenced by Image_window::clear_clip(), Font::paint_text_box(), Font::paint_text_box_fixedwidth(), and Shape_chooser::render_frames().
void Image_buffer::set_clip | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [inline] |
Definition at line 109 of file imagebuf.h.
References cliph, clipw, clipx, and clipy.
Referenced by Font::paint_text_box(), Font::paint_text_box_fixedwidth(), Shape_chooser::render_frames(), and Image_window::set_clip().
int Image_buffer::is_visible | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [inline] |
Definition at line 117 of file imagebuf.h.
References cliph, clipw, clipx, and clipy.
Referenced by Image_window::is_visible(), Shape_frame::paint_rle(), Shape_frame::paint_rle_outline(), Shape_frame::paint_rle_transformed(), and Shape_frame::paint_rle_translucent().
virtual void Image_buffer::fill16 | ( | unsigned short | pix | ) | [inline, virtual] |
Reimplemented in Image_buffer16.
Definition at line 124 of file imagebuf.h.
Referenced by Image_window::fill16().
virtual void Image_buffer::fill16 | ( | unsigned short | pix, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [inline, virtual] |
virtual void Image_buffer::copy16 | ( | unsigned short * | src_pixels, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [inline, virtual] |
Reimplemented in Image_buffer16.
Definition at line 131 of file imagebuf.h.
Referenced by Image_window::copy16().
virtual void Image_buffer::copy_transparent16 | ( | unsigned char * | src_pixels, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [inline, virtual] |
virtual void Image_buffer::fill8 | ( | unsigned char | val | ) | [pure virtual] |
virtual void Image_buffer::fill8 | ( | unsigned char | val, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [pure virtual] |
Implemented in Image_buffer16, and Image_buffer8.
virtual void Image_buffer::fill_line8 | ( | unsigned char | val, | |
int | srcw, | |||
int | destx, | |||
int | desty | |||
) | [pure virtual] |
virtual void Image_buffer::copy8 | ( | unsigned char * | src_pixels, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [pure virtual] |
Implemented in Image_buffer16, and Image_buffer8.
Referenced by Image_window::copy8(), and playfli::play().
virtual void Image_buffer::copy_line8 | ( | unsigned char * | src_pixels, | |
int | srcw, | |||
int | destx, | |||
int | desty | |||
) | [pure virtual] |
virtual void Image_buffer::copy_line_translucent8 | ( | unsigned char * | src_pixels, | |
int | srcw, | |||
int | destx, | |||
int | desty, | |||
int | first_translucent, | |||
int | last_translucent, | |||
Xform_palette * | xforms | |||
) | [pure virtual] |
Implemented in Image_buffer16, and Image_buffer8.
Referenced by Image_window::copy_line_translucent8().
virtual void Image_buffer::fill_line_translucent8 | ( | unsigned char | val, | |
int | srcw, | |||
int | destx, | |||
int | desty, | |||
Xform_palette & | xform | |||
) | [pure virtual] |
Implemented in Image_buffer16, and Image_buffer8.
Referenced by Image_window::fill_line_translucent8().
virtual void Image_buffer::fill_translucent8 | ( | unsigned char | val, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty, | |||
Xform_palette & | xform | |||
) | [pure virtual] |
virtual void Image_buffer::copy_transparent8 | ( | unsigned char * | src_pixels, | |
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [pure virtual] |
virtual Image_buffer* Image_buffer::create_another | ( | int | w, | |
int | h | |||
) | [pure virtual] |
virtual void Image_buffer::copy | ( | int | srcx, | |
int | srcy, | |||
int | srcw, | |||
int | srch, | |||
int | destx, | |||
int | desty | |||
) | [pure virtual] |
virtual void Image_buffer::get | ( | Image_buffer * | dest, | |
int | srcx, | |||
int | srcy | |||
) | [pure virtual] |
virtual void Image_buffer::put | ( | Image_buffer * | src, | |
int | destx, | |||
int | desty | |||
) | [pure virtual] |
virtual void Image_buffer::fill_static | ( | int | black, | |
int | gray, | |||
int | white | |||
) | [pure virtual] |
friend class Image_buffer8 [friend] |
Definition at line 91 of file imagebuf.h.
friend class Image_buffer16 [friend] |
Definition at line 92 of file imagebuf.h.
friend class Image_window [friend] |
Definition at line 97 of file imagebuf.h.
unsigned int Image_buffer::width [protected] |
Definition at line 55 of file imagebuf.h.
Referenced by clear_clip(), Image_buffer8::fill_static(), Image_buffer16::fill_static(), Image_buffer8::get(), Image_window::get_width(), get_width(), and Image_window::Image_window().
unsigned int Image_buffer::height [protected] |
Definition at line 55 of file imagebuf.h.
Referenced by clear_clip(), Image_buffer8::fill_static(), Image_buffer16::fill_static(), Image_buffer8::get(), Image_window::get_height(), get_height(), and Image_window::Image_window().
int Image_buffer::depth [protected] |
Definition at line 56 of file imagebuf.h.
Referenced by Image_buffer16::create_another(), and Image_window::try_scaler().
int Image_buffer::pixel_size [protected] |
unsigned char* Image_buffer::bits [protected] |
Definition at line 58 of file imagebuf.h.
Referenced by Image_buffer8::fill_static(), Image_buffer8::get(), Image_buffer16::get(), get_bits(), Image_buffer8::get_pixel8(), Image_buffer16::get_pixels(), Image_buffer16::Image_buffer16(), Image_buffer8::Image_buffer8(), Image_buffer8::paint_rle(), Image_buffer8::put(), Image_buffer16::put(), Image_buffer8::put_pixel8(), Image_window::ready(), Image_window::try_scaler(), and ~Image_buffer().
unsigned int Image_buffer::line_width [protected] |
Definition at line 59 of file imagebuf.h.
Referenced by Image_buffer8::get(), Image_buffer16::get(), get_line_width(), Image_buffer8::get_pixel8(), Image_buffer8::paint_rle(), Image_buffer8::put_pixel8(), and Image_window::try_scaler().
int Image_buffer::clipx [private] |
Definition at line 61 of file imagebuf.h.
Referenced by clear_clip(), clip(), clip_x(), is_visible(), Image_buffer8::paint_rle(), Image_buffer8::put_pixel8(), and set_clip().
int Image_buffer::clipy [private] |
Definition at line 61 of file imagebuf.h.
Referenced by clear_clip(), clip(), clip_x(), is_visible(), Image_buffer8::paint_rle(), Image_buffer8::put_pixel8(), and set_clip().
int Image_buffer::clipw [private] |
Definition at line 61 of file imagebuf.h.
Referenced by clear_clip(), clip(), clip_x(), is_visible(), Image_buffer8::paint_rle(), Image_buffer8::put_pixel8(), and set_clip().
int Image_buffer::cliph [private] |
Definition at line 61 of file imagebuf.h.
Referenced by clear_clip(), clip(), clip_x(), is_visible(), Image_buffer8::paint_rle(), Image_buffer8::put_pixel8(), and set_clip().