From 75c56f8e6927018e3098fe012bb699b72ad0f1f8 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 18 Dec 2024 17:52:21 +1300 Subject: Added Fl_Browser --- doc/fl_browser.html | 763 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 763 insertions(+) create mode 100644 doc/fl_browser.html (limited to 'doc/fl_browser.html') diff --git a/doc/fl_browser.html b/doc/fl_browser.html new file mode 100644 index 0000000..f4168a9 --- /dev/null +++ b/doc/fl_browser.html @@ -0,0 +1,763 @@ + + + + + + Fl_Browser Binding Map + + + + + + +

Fl_Browser Binding Map

+ + +Back to Index + + + + + + + + + + +
Package name
Fl_BrowserFLTK.Widgets.Groups.Browsers.Textline
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Types
Fl_BrowserTextline_Browser
 Textline_Browser_Reference
Fl_Line_PositionLine_Position
const int *Column_Widths
+ + + + + + + + + + + +
Errors
intBrowser_Load_Error
+ + + + + + + + + + + +
Constructors
+Fl_Browser(int X, int Y, int W, int H, const char *L=0);
+
+function Create
+       (X, Y, W, H : in Integer;
+        Text       : in String := "")
+    return Textline_Browser;
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+void add(const char *newtext, void *d=0);
+
+procedure Add
+       (This : in out Textline_Browser;
+        Text : in     String);
+
+void bottomline(int line);
+
+procedure Set_Bottom_Line
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+void clear();
+
+procedure Clear
+       (This : in out Textline_Browser);
+
+char column_char() const;
+
+function Get_Column_Character
+       (This : in Textline_Browser)
+    return Character;
+
+void column_char(char c);
+
+procedure Set_Column_Character
+       (This  : in out Textline_Browser;
+        Value : in     Character);
+
+const int * column_widths() const;
+
+function Get_Column_Widths
+       (This : in Textline_Browser)
+    return Column_Widths;
+
+void column_widths(const int *arr);
+
+procedure Set_Column_Widths
+       (This   : in out Textline_Browser;
+        Widths : in     Column_Widths);
+
+void * data(int line) const;
+
Not used
+void data(int line, void *d);
+
Not used
+void display(int line, int val=1);
+
Deprecated, see show / Show_Line and hide / Hide_Line
+int displayed(int line) const;
+
+function Is_Displayed
+       (This : in Textline_Browser;
+        Line : in Positive)
+    return Boolean;
+
+char format_char() const;
+
+function Get_Format_Character
+       (This : in Textline_Browser)
+    return Character;
+
+void format_char(char c);
+
+procedure Set_Format_Character
+       (This  : in out Textline_Browser;
+        Value : in     Character);
+
+void hide();
+
+procedure Hide
+       (This : in out Textline_Browser);
+
+void hide(int line);
+
+procedure Hide_Line
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+Fl_Image * icon(int line) const;
+
+function Has_Icon
+       (This : in Textline_Browser;
+        Line : in Positive)
+    return Boolean;
+
+function Get_Icon
+       (This : in Textline_Browser;
+        Line : in Positive)
+    return FLTK.Images.Image_Reference;
+
+void icon(int line, Fl_Image *icon);
+
+procedure Set_Icon
+       (This : in out Textline_Browser;
+        Line : in     Positive;
+        Icon : in     FLTK.Images.Image'Class);
+
+void insert(int line, const char *newtext, void *d=0);
+
+procedure Insert
+       (This  : in out Textline_Browser;
+        Above : in     Positive;
+        Text  : in     String);
+
+void lineposition(int line, Fl_Line_Position pos);
+
+procedure Set_Line_Position
+       (This  : in out Textline_Browser;
+        Line  : in     Positive;
+        Place : in     Line_Position);
+
+int load(const char *filename);
+
+procedure Load
+       (This : in out Textline_Browser;
+        File : in     String);
+
+void make_visible(int line);
+
+procedure Make_Visible
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+void middleline(int line);
+
+procedure Set_Middle_Line
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+void move(int to, int from);
+
+procedure Move
+       (This     : in out Textline_Browser;
+        From, To : in     Positive);
+
+void remove(int line);
+
+procedure Remove
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+void remove_icon(int line);
+
+procedure Remove_Icon
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+void replace(int a, const char *b);
+
Deprecated, see text / Set_Line_Text
+int select(int line, int val=1);
+
+function Set_Select
+       (This  : in out Textline_Browser;
+        Line  : in     Positive;
+        State : in     Boolean := True)
+    return Boolean;
+
+int selected(int line) const;
+
+function Is_Selected
+       (This : in Textline_Browser;
+        Line : in Positive)
+    return Boolean;
+
+void show();
+
+procedure Show
+       (This : in out Textline_Browser);
+
+void show(int line);
+
+procedure Show_Line
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+int size() const;
+
+function Number_Of_Lines
+       (This : in Textline_Browser)
+    return Natural;
+
+void size(int W, int H);
+
Falls through to Fl_Widget::size(int, int) anyway so binding unnecessary
+void swap(int a, int b);
+
+procedure Swap
+       (This : in out Textline_Browser;
+        A, B : in     Positive);
+
+const char * text(int line) const;
+
+function Get_Line_Text
+       (This : in Textline_Browser;
+        Line : in Positive)
+    return String;
+
+void text(int line, const char *newtext);
+
+procedure Set_Line_Text
+       (This : in out Textline_Browser;
+        Line : in     Positive;
+        Text : in     String);
+
+Fl_Fontsize textsize() const;
+
+function Get_Text_Size
+       (This : in Textline_Browser)
+    return Font_Size;
+
+void textsize(Fl_Fontsize newSize);
+
+procedure Set_Text_Size
+       (This : in out Textline_Browser;
+        Size : in     Font_Size);
+
+int topline() const;
+
+function Get_Top_Line
+       (This : in Textline_Browser)
+    return Positive;
+
+void topline(int line);
+
+procedure Set_Top_Line
+       (This : in out Textline_Browser;
+        Line : in     Positive);
+
+int value() const;
+
+function Selected_Index
+       (This : in Textline_Browser)
+    return Natural;
+
+void value(int line);
+
+procedure Set_Select
+       (This  : in out Textline_Browser;
+        Line  : in     Positive;
+        State : in     Boolean := True);
+
+int visible(int line) const;
+
+function Is_Visible
+       (This : in Textline_Browser;
+        Line : in Positive)
+    return Boolean;
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+FL_BLINE * _remove(int line);
+
Intentionally left unbound
+FL_BLINE * find_line(int line) const;
+
Intentionally left unbound
+int full_height() const;
+
+function Full_List_Height
+       (This : in Textline_Browser)
+    return Integer;
+
+int incr_height() const;
+
+function Average_Item_Height
+       (This : in Textline_Browser)
+    return Integer;
+
+void insert(int line, FL_BLINE *item);
+
Intentionally left unbound
+void * item_at(int line) const;
+
+function Item_At
+       (This  : in Textline_Browser;
+        Index : in Positive)
+    return Item_Cursor;
+
+void item_draw(void *item, int X, int Y, int W, int H) const;
+
+procedure Item_Draw
+       (This       : in Textline_Browser;
+        Item       : in Item_Cursor;
+        X, Y, W, H : in Integer);
+
+void * item_first() const;
+
+function Item_First
+       (This : in Textline_Browser)
+    return Item_Cursor;
+
+int item_height(void *item) const;
+
+function Item_Height
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return Integer;
+
+void * item_last() const;
+
+function Item_Last
+       (This : in Textline_Browser)
+    return Item_Cursor;
+
+void * item_next(void *item) const;
+
+function Item_Next
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return Item_Cursor;
+
+void * item_prev(void *item) const;
+
+function Item_Previous
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return Item_Cursor;
+
+void item_select(void *item, int val);
+
+procedure Item_Select
+       (This  : in out Textline_Browser;
+        Item  : in     Item_Cursor;
+        State : in     Boolean := True);
+
+int item_selected(void *item) const;
+
+function Item_Selected
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return Boolean;
+
+void item_swap(void *a, void *b);
+
+procedure Item_Swap
+       (This : in out Textline_Browser;
+        A, B : in     Item_Cursor);
+
+const char * item_text(void *item) const;
+
+function Item_Text
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return String;
+
+int item_width(void *item) const;
+
+function Item_Width
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return Integer;
+
+int lineno(void *item) const;
+
+function Line_Number
+       (This : in Textline_Browser;
+        Item : in Item_Cursor)
+    return Natural;
+
+void swap(FL_BLINE *a, FL_BLINE *b);
+
Intentionally left unbound
+ + + + + -- cgit