From 49f2a539cdc77b504ddef00162625531b659c767 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 6 Jan 2025 23:46:40 +1300 Subject: Revised Browser subhierarchy, mostly protected method bindings --- doc/fl_browser.html | 18 ++--- doc/fl_browser_.html | 4 +- doc/fl_check_browser.html | 193 +++++++++++----------------------------------- doc/fl_file_browser.html | 65 ++++++++++++++++ 4 files changed, 121 insertions(+), 159 deletions(-) (limited to 'doc') diff --git a/doc/fl_browser.html b/doc/fl_browser.html index f4168a9..f06f1e9 100644 --- a/doc/fl_browser.html +++ b/doc/fl_browser.html @@ -169,21 +169,21 @@ procedure Set_Column_Widths
 void * data(int line) const;
 
-Not used +Not used.
 void data(int line, void *d);
 
-Not used +Not used.
 void display(int line, int val=1);
 
-Deprecated, see show / Show_Line and hide / Hide_Line +Deprecated, see show / Show_Line and hide / Hide_Line. @@ -364,7 +364,7 @@ procedure Remove_Icon
 void replace(int a, const char *b);
 
-Deprecated, see text / Set_Line_Text +Deprecated, see text / Set_Line_Text. @@ -428,7 +428,7 @@ function Number_Of_Lines
 void size(int W, int H);
 
-Falls through to Fl_Widget::size(int, int) anyway so binding unnecessary +Falls through to Fl_Widget::size(int, int) anyway so binding unnecessary. @@ -556,14 +556,14 @@ function Is_Visible
 FL_BLINE * _remove(int line);
 
-Intentionally left unbound +Intentionally left unbound.
 FL_BLINE * find_line(int line) const;
 
-Intentionally left unbound +Intentionally left unbound. @@ -592,7 +592,7 @@ function Average_Item_Height
 void insert(int line, FL_BLINE *item);
 
-Intentionally left unbound +Intentionally left unbound. @@ -752,7 +752,7 @@ function Line_Number
 void swap(FL_BLINE *a, FL_BLINE *b);
 
-Intentionally left unbound +Intentionally left unbound. diff --git a/doc/fl_browser_.html b/doc/fl_browser_.html index 0f8c5fa..8eb131a 100644 --- a/doc/fl_browser_.html +++ b/doc/fl_browser_.html @@ -278,14 +278,14 @@ procedure Set_Scrollbar_Size
 int scrollbar_width() const;
 
-Deprecated, see scrollbar_size(); +Deprecated, see scrollbar_size / Get_Scrollbar_Size.
 void scrollbar_width(int width);
 
-Deprecated, see scrollbar_size(int width); +Deprecated, see scrollbar_size / Set_Scrollbar_Size. diff --git a/doc/fl_check_browser.html b/doc/fl_check_browser.html index 016d86b..3c172eb 100644 --- a/doc/fl_check_browser.html +++ b/doc/fl_check_browser.html @@ -176,7 +176,7 @@ procedure Remove
 void set_checked(int item);
 
-See checked(int item, int b); +See checked / Set_Checked. @@ -211,84 +211,6 @@ function Selected_Index
-void bbox(int &X, int &Y, int &W, int &H) const;
-
(Inherited from Fl_Browser_) -
-procedure Bounding_Box
-       (This       : in     Check_Browser;
-        X, Y, W, H :    out Integer);
-
- - - -
-void deleting(void *item);
-
(Inherited from Fl_Browser_) -
-procedure Deleting
-       (This : in out Check_Browser;
-        Item : in     Item_Cursor);
-
- - - -
-int displayed(void *item) const;
-
(Inherited from Fl_Browser_) -
-function Is_Displayed
-       (This : in Check_Browser;
-        Item : in Item_Cursor)
-    return Boolean;
-
- - - -
-void draw();
-
(Inherited from Fl_Browser_) -
-procedure Draw
-       (This : in out Check_Browser);
-
- - - -
-void * find_item(int ypos);
-
(Inherited from Fl_Browser_) -
-function Find_Item
-       (This  : in Check_Browser;
-        Y_Pos : in Integer)
-    return Item_Cursor;
-
- - - -
-virtual int full_height() const;
-
(Inherited from Fl_Browser_) -
-function Full_List_Height
-       (This : in Check_Browser)
-    return Integer;
-
- - - -
-virtual int full_width() const;
-
(Inherited from Fl_Browser_) -
-function Full_List_Width
-       (This : in Check_Browser)
-    return Integer;
-
- - - -
 int handle(int);
 
@@ -301,32 +223,33 @@ function Handle
 
   
 
-virtual int incr_height() const;
-
(Inherited from Fl_Browser_) +void item_draw(void *, int, int, int, int) const; +
(Actually private in 1.3)
-function Average_Item_Height
-       (This : in Check_Browser)
-    return Integer;
+procedure Item_Draw
+       (This       : in Check_Browser;
+        Item       : in Item_Cursor;
+        X, Y, W, H : in Integer);
 
-void inserting(void *a, void *b);
-
(Inherited from Fl_Browser_) +void * item_first() const; +(Actually private in 1.3)
-procedure Inserting
-       (This : in out Check_Browser;
-        A, B : in     Item_Cursor);
+function Item_First
+       (This : in Check_Browser)
+    return Item_Cursor;
 
-virtual int item_quick_height(void *item) const;
-
(Inherited from Fl_Browser_) +int item_height(void *) const; +(Actually private in 1.3)
-function Item_Quick_Height
+function Item_Height
        (This : in Check_Browser;
         Item : in Item_Cursor)
     return Integer;
@@ -335,87 +258,61 @@ function Item_Quick_Height
 
   
 
-int leftedge() const;
-
(Inherited from Fl_Browser_) -
-function Left_Edge
-       (This : in Check_Browser)
-    return Integer;
-
- - - -
-void new_list();
-
(Inherited from Fl_Browser_) -
-procedure New_List
-       (This : in out Check_Browser);
-
- - - -
-void redraw_line(void *item);
-
(Inherited from Fl_Browser_) +void * item_next(void *) const; +
(Actually private in 1.3)
-procedure Redraw_Line
-       (This : in out Check_Browser;
-        Item : in     Item_Cursor);
-
- - - -
-void redraw_lines();
-
(Inherited from Fl_Browser_) -
-procedure Redraw_List
-       (This : in out Check_Browser);
+function Item_Next
+       (This : in Check_Browser;
+        Item : in Item_Cursor)
+    return Item_Cursor;
 
-void replacing(void *a, void *b);
-
(Inherited from Fl_Browser_) +void * item_prev(void *) const; +(Actually private in 1.3)
-procedure Replacing
-       (This : in out Check_Browser;
-        A, B : in     Item_Cursor);
+function Item_Previous
+       (This : in Check_Browser;
+        Item : in Item_Cursor)
+    return Item_Cursor;
 
-void * selection() const;
-
(Inherited from Fl_Browser_) +void item_select(void *, int); +(Actually private in 1.3)
-function Current_Selection
-       (This : in Check_Browser)
-    return Item_Cursor;
+procedure Item_Select
+       (This  : in out Check_Browser;
+        Item  : in     Item_Cursor;
+        State : in     Boolean := True);
 
-void swapping(void *a, void *b);
-
(Inherited from Fl_Browser_) +int item_selected(void *) const; +(Actually private in 1.3)
-procedure Swapping
-       (This : in out Check_Browser;
-        A, B : in     Item_Cursor);
+function Item_Selected
+       (This : in Check_Browser;
+        Item : in Item_Cursor)
+    return Boolean;
 
-void * top() const;
-
(Inherited from Fl_Browser_) +int item_width(void *) const; +(Actually private in 1.3)
-function Top_Item
-       (This : in Check_Browser)
-    return Item_Cursor;
+function Item_Width
+       (This : in Check_Browser;
+        Item : in Item_Cursor)
+    return Integer;
 
diff --git a/doc/fl_file_browser.html b/doc/fl_file_browser.html index 9f9eddb..f90bbea 100644 --- a/doc/fl_file_browser.html +++ b/doc/fl_file_browser.html @@ -189,6 +189,71 @@ procedure Set_Text_Size + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+int full_height() const;
+
(Actually private in 1.3)
+function Full_List_Height
+       (This : in File_Browser)
+    return Integer;
+
+int incr_height() const;
+
(Actually private in 1.3)
+function Average_Item_Height
+       (This : in File_Browser)
+    return Integer;
+
+void item_draw(void *, int, int, int, int) const;
+
(Actually private in 1.3)
+procedure Item_Draw
+       (This       : in File_Browser;
+        Item       : in Item_Cursor;
+        X, Y, W, H : in Integer);
+
+int item_height(void *) const;
+
(Actually private in 1.3)
+function Item_Height
+       (This : in File_Browser;
+        Item : in Item_Cursor)
+    return Integer;
+
+int item_width(void *) const;
+
(Actually private in 1.3)
+function Item_Width
+       (This : in File_Browser;
+        Item : in Item_Cursor)
+    return Integer;
+
+ + -- cgit