From d4ad141d4d95cb38bb49fb49856184b577146368 Mon Sep 17 00:00:00 2001
From: Manolo Gouy
The second form is a protected method that sets the current - image width. + Sets the current image width in pixels. */ void w(int W) {w_ = W;} /** - The first form of the h() method returns the current - image height in pixels.
- -The second form is a protected method that sets the current - image height. + Sets the current image height in pixels. */ void h(int H) {h_ = H;} /** - The first form of the d() method returns the current - image depth. The return value will be 0 for bitmaps, 1 for - pixmaps, and 1 to 4 for color images.
- -The second form is a protected method that sets the current - image depth. + Sets the current image depth. */ void d(int D) {d_ = D;} - /** See int ld() */ + /** + Sets the current line data size in bytes. + */ void ld(int LD) {ld_ = LD;} - /** See const char * const *data() */ + /** + Sets the current array pointer and count of pointers in the array. + */ void data(const char * const *p, int c) {data_ = p; count_ = c;} void draw_empty(int X, int Y); @@ -94,26 +85,23 @@ class FL_EXPORT Fl_Image { public: - /** See void Fl_Image::w(int) */ + /** + Returns the current image width in pixels. + */ int w() const {return w_;} - /** See void Fl_Image::h(int) */ + /** Returns the current image height in pixels. + */ int h() const {return h_;} /** - The first form of the d() method returns the current - image depth. The return value will be 0 for bitmaps, 1 for + Returns the current image depth. + The return value will be 0 for bitmaps, 1 for pixmaps, and 1 to 4 for color images.
- -The second form is a protected method that sets the current - image depth. */ int d() const {return d_;} /** - The first form of the ld() method returns the current - line data size in bytes. Line data is extra data that is included - after each line of color image data and is normally not present.
- -The second form is a protected method that sets the current - line data size in bytes. + Returns the current line data size in bytes. + Line data is extra data that is included + after each line of color image data and is normally not present. */ int ld() const {return ld_;} /** @@ -124,12 +112,8 @@ class FL_EXPORT Fl_Image { */ int count() const {return count_;} /** - The first form of the data() method returns a - pointer to the current image data array. Use the - count() method to find the size of the data array.
- -The second form is a protected method that sets the current - array pointer and count of pointers in the array. + Returns a pointer to the current image data array. + Use the count() method to find the size of the data array. */ const char * const *data() const {return data_;} @@ -162,15 +146,16 @@ class FL_EXPORT Fl_Image { virtual void label(Fl_Widget*w); virtual void label(Fl_Menu_Item*m); /** - The draw() methods draw the image. This form specifies + Draws the image with a bounding box. + This form specifies a bounding box for the image, with the origin (upper-lefthand corner) of the image offset by the cx and cy arguments. */ virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0); // platform dependent /** - The draw() methods draw the image. This form - specifies the upper-lefthand corner of the image + Draws the image. + This form specifies the upper-lefthand corner of the image. */ void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);} // platform dependent virtual void uncache();