From 03a462143211b327374eaf3549c46dd7241a262a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 29 Apr 2004 02:47:09 +0000 Subject: Documentation updates (STR #365) The value(const Fl_Menu_Item*) method was not implemented for Fl_Choice (STR #366) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 3 +++ FL/Fl_Choice.H | 5 +++-- documentation/drawing.html | 19 +++++++++++++++++++ src/Fl_Choice.cxx | 11 +++++++++-- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 08b5dad29..bdade702f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ CHANGES IN FLTK 1.1.5rc2 + - Documentation updates (STR #365) + - The value(const Fl_Menu_Item*) method was not + implemented for Fl_Choice (STR #366) - Fl_Pack didn't draw child widget labels the same way as Fl_Group, causing display problems (STR #360) - fl_read_image() didn't work when reading from an diff --git a/FL/Fl_Choice.H b/FL/Fl_Choice.H index 6be746134..926713ea5 100644 --- a/FL/Fl_Choice.H +++ b/FL/Fl_Choice.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Choice.H,v 1.5.2.3.2.4 2004/04/11 04:38:54 easysw Exp $" +// "$Id: Fl_Choice.H,v 1.5.2.3.2.5 2004/04/29 02:47:09 easysw Exp $" // // Choice header file for the Fast Light Tool Kit (FLTK). // @@ -34,6 +34,7 @@ protected: public: int handle(int); Fl_Choice(int,int,int,int,const char * = 0); + int value(const Fl_Menu_Item*); int value(int i); int value() const {return Fl_Menu_::value();} }; @@ -41,5 +42,5 @@ public: #endif // -// End of "$Id: Fl_Choice.H,v 1.5.2.3.2.4 2004/04/11 04:38:54 easysw Exp $". +// End of "$Id: Fl_Choice.H,v 1.5.2.3.2.5 2004/04/29 02:47:09 easysw Exp $". // diff --git a/documentation/drawing.html b/documentation/drawing.html index 375649af6..d8be83f6c 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -746,6 +746,25 @@ function finds and returns the width and height. The return value is non-zero if the dimensions were parsed ok and zero if there was any problem. +

Direct Image Reading

+ +

FLTK provides a single function for reading from the current +window or off-screen buffer into a RGB(A) image buffer.

+ +

uchar *fl_read_image(uchar *p, int +X, int Y, int W, int H, int alpha = 0);

+ +

Read a RGB(A) image from the current window or off-screen +buffer. The p argument points to a buffer that can hold +the image and must be at least W*H*3 bytes when reading +RGB images and W*H*4 bytes when reading RGBA images. If +NULL, fl_read_image() will create an array of +the proper size which can be freed using delete[].

+ +

The alpha parameter controls whether an alpha +channel is created and the value that is placed in the alpha +channel. If 0, no alpha channel is generated.

+

Image Classes

FLTK provides a base image class called = (size() - 1)) return 0; if (!Fl_Menu_::value(v)) return 0; @@ -152,5 +159,5 @@ int Fl_Choice::handle(int e) { } // -// End of "$Id: Fl_Choice.cxx,v 1.10.2.5.2.16 2004/04/11 04:38:57 easysw Exp $". +// End of "$Id: Fl_Choice.cxx,v 1.10.2.5.2.17 2004/04/29 02:47:09 easysw Exp $". // -- cgit v1.2.3