From 98abc141c9cb76bc12f8ba10f18fd87e32aae251 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 9 Dec 2024 02:22:17 +1300 Subject: Fl_File_Chooser bound --- doc/fl_file_chooser.html | 740 +++++++++++++++++++++++++++++++++++++++++++++++ doc/index.html | 3 +- 2 files changed, 742 insertions(+), 1 deletion(-) create mode 100644 doc/fl_file_chooser.html (limited to 'doc') diff --git a/doc/fl_file_chooser.html b/doc/fl_file_chooser.html new file mode 100644 index 0000000..f43989d --- /dev/null +++ b/doc/fl_file_chooser.html @@ -0,0 +1,740 @@ + + + + + + Fl_File_Chooser Binding Map + + + + + + +

Fl_File_Chooser Binding Map

+ + +Back to Index + + + + + + + + + + +
Package name
Fl_File_ChooserFLTK.File_Choosers
+ +

Note:

+See Fl_Ask for related symbols that are not members of the Fl_File_Chooser class.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Types
Fl_File_ChooserFile_Chooser
 File_Chooser_Reference
enum {SINGLE=0, MULTI=1, CREATE=2, DIRECTORY=4}Chooser_Kind
void (*cb)(Fl_File_Chooser *, void *)Chooser_Callback
ucharIcon_Size
+ + + + + + + + + + + + + + + + + + + + + +
Attributes
+Fl_Button * newButton;
+
+function New_Button
+       (This : in out File_Chooser)
+    return FLTK.Widgets.Buttons.Button_Reference;
+
+Fl_Check_Button * previewButton;
+
+function Preview_Button
+       (This : in out File_Chooser)
+    return FLTK.Widgets.Buttons.Light.Check.Check_Button_Reference;
+
+Fl_Check_Button * showHiddenButton;
+
+function Show_Hidden_Button
+       (This : in out File_Chooser)
+    return FLTK.Widgets.Buttons.Light.Check.Check_Button_Reference;
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Static Attributes
+static const char * add_favorites_label = "Add to Favorites";
+
+function Get_Add_Favorites_Label
+    return String;
+
+procedure Set_Add_Favorites_Label
+       (Value : in String);
+
+static const char * all_files_label = "All Files (*)";
+
+function Get_All_Files_Label
+    return String;
+
+procedure Set_All_Files_Label
+       (Value : in String);
+
+static const char * custom_filter_label = "Custom Filter";
+
+function Get_Custom_Filter_Label
+    return String;
+
+procedure Set_Custom_Filter_Label
+       (Value : in String);
+
+static const char * existing_file_label =
+    "Please choose an existing file!";
+
+function Get_Existing_File_Label
+    return String;
+
+procedure Set_Existing_File_Label
+       (Value : in String);
+
+static const char * favorites_label = "Favorites";
+
+function Get_Favorites_Label
+    return String;
+
+procedure Set_Favorites_Label
+       (Value : in String);
+
+static const char * filename_label = "Filename:";
+
+function Get_Filename_Label
+    return String;
+
+procedure Set_Filename_Label
+       (Value : in String);
+
+static const char * filesystems_label = "File Systems";
+
+function Get_Filesystems_Label
+    return String;
+
+procedure Set_Filesystems_Label
+       (Value : in String);
+
+static const char * hidden_label = "Show hidden files";
+
+function Get_Hidden_Label
+    return String;
+
+procedure Set_Hidden_Label
+       (Value : in String);
+
+static const char * manage_favorites_label =
+    "Manage Favorites";
+
+function Get_Manage_Favorites_Label
+    return String;
+
+procedure Set_Manage_Favorites_Label
+       (Value : in String);
+
+static const char * new_directory_label = "New Directory?";
+
+function Get_New_Directory_Label
+    return String;
+
+procedure Set_New_Directory_Label
+       (Value : in String);
+
+static const char * new_directory_tooltip =
+    "Create a new directory.";
+
+function Get_New_Directory_Tooltip
+    return String;
+
+procedure Set_New_Directory_Tooltip
+       (Value : in String);
+
+static const char * preview_label = "Preview";
+
+function Get_Preview_Label
+    return String;
+
+procedure Set_Preview_Label
+       (Value : in String);
+
+static const char * save_label = "Save";
+
+function Get_Save_Label
+    return String;
+
+procedure Set_Save_Label
+       (Value : in String);
+
+static const char * show_label = "Show:";
+
+function Get_Show_Label
+    return String;
+
+procedure Set_Show_Label
+       (Value : in String);
+
+static Fl_File_Sort_F * sort = fl_numericsort;
+
TBA
+ + + + + + + + + + + +
Constructors
+Fl_File_Chooser(const char *d, const char *p, int t,
+    const char *title);
+
+function Create
+       (Title    : in String;
+        Pattern  : in String;
+        Pathname : in String;
+        Kind     : in Chooser_Kind := Single)
+    return File_Chooser;
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+Fl_Widget * add_extra(Fl_Widget *gr);
+
+procedure Add_Extra
+       (This : in out File_Chooser;
+        Item : in out Widgets.Widget'Class);
+
+procedure Remove_Extra
+       (This : in out File_Chooser);
+
+function Eject_Extra
+       (This : in out File_Chooser;
+        Item : in out Widgets.Widget'Class)
+    return access Widgets.Widget'Class;
+
+void callback(void(*cb)(Fl_File_Chooser *, void *), void *d=0);
+
+procedure Set_Callback
+       (This : in out File_Chooser;
+        Func : in     Chooser_Callback);
+
+Fl_Color color();
+
+function Get_Background_Color
+       (This : in File_Chooser)
+    return Color;
+
+void color(Fl_Color c);
+
+procedure Set_Background_Color
+       (This  : in out File_Chooser;
+        Value : in     Color);
+
+int count();
+
+function Number_Selected
+       (This : in File_Chooser)
+    return Natural;
+
+char * directory();
+
+function Get_Directory
+       (This : in File_Chooser)
+    return String;
+
+void directory(const char *d);
+
+procedure Set_Directory
+       (This  : in out File_Chooser;
+        Value : in     String);
+
+const char * filter();
+
+function Get_Filter
+       (This : in File_Chooser)
+    return String;
+
+void filter(const char *p);
+
+procedure Set_Filter
+       (This  : in out File_Chooser;
+        Value : in     String);
+
+int filter_value();
+
+function Get_Filter_Index
+       (This : in File_Chooser)
+    return Positive;
+
+void filter_value(int f);
+
+procedure Set_Filter_Index
+       (This  : in out File_Chooser;
+        Value : in     Positive);
+
+void hide();
+
+procedure Hide
+       (This : in out File_Chooser);
+
+uchar iconsize();
+
+function Get_Icon_Size
+       (This : in File_Chooser)
+    return Icon_Size;
+
+void iconsize(uchar s);
+
+procedure Set_Icon_Size
+       (This  : in out File_Chooser;
+        Value : in     Icon_Size);
+
+const char * label();
+
+function Get_Label
+       (This : in File_Chooser)
+    return String;
+
+void label(const char *l);
+
+procedure Set_Label
+       (This : in out File_Chooser;
+        Text : in     String);
+
+const char * ok_label();
+
+function Get_OK_Label
+       (This : in File_Chooser)
+    return String;
+
+void ok_label(const char *l);
+
+procedure Set_OK_Label
+       (This : in out File_Chooser;
+        Text : in     String);
+
+int preview() const;
+
+function Has_Preview
+       (This : in File_Chooser)
+    return Boolean;
+
+void preview(int e);
+
+procedure Set_Preview
+       (This  : in out File_Chooser;
+        Value : in     Boolean);
+
+void rescan();
+
+procedure Rescan
+       (This : in out File_Chooser);
+
+void rescan_keep_filename();
+
+procedure Rescan_Keep_Filename
+       (This : in out File_Chooser);
+
+void show();
+
+procedure Show
+       (This : in out File_Chooser);
+
+int shown();
+
+function Is_Shown
+       (This : in File_Chooser)
+    return Boolean;
+
+Fl_Color textcolor();
+
+function Get_Text_Color
+       (This : in File_Chooser)
+    return Color;
+
+void textcolor(Fl_Color c);
+
+procedure Set_Text_Color
+       (This  : in out File_Chooser;
+        Value : in     Color);
+
+Fl_Font textfont();
+
+function Get_Text_Font
+       (This : in File_Chooser)
+    return Font_Kind;
+
+void textfont(Fl_Font f);
+
+procedure Set_Text_Font
+       (This : in out File_Chooser;
+        Font : in     Font_Kind);
+
+Fl_Fontsize textsize();
+
+function Get_Text_Size
+       (This : in File_Chooser)
+    return Font_Size;
+
+void textsize(Fl_Fontsize s);
+
+procedure Set_Text_Size
+       (This : in out File_Chooser;
+        Size : in     Font_Size);
+
+int type();
+
+function Get_Chooser_Kind
+       (This : in File_Chooser)
+    return Chooser_Kind;
+
+void type(int t);
+
+procedure Set_Chooser_Kind
+       (This : in out File_Chooser;
+        Kind : in     Chooser_Kind);
+
+void * user_data() const;
+
 
+void user_data(void *d);
+
 
+void value(const char *filename);
+
+procedure Set_Selected
+       (This  : in out File_Chooser;
+        Value : in     String);
+
+const char * value(int f=1);
+
+function Get_Selected
+       (This  : in File_Chooser;
+        Index : in Positive := 1)
+    return String
+with Pre => Index <= This.Number_Selected;
+
+int visible();
+
+function Is_Visible
+       (This : in File_Chooser)
+    return Boolean;
+
+ + + + + diff --git a/doc/index.html b/doc/index.html index 8a6d4d8..7e78aba 100644 --- a/doc/index.html +++ b/doc/index.html @@ -42,7 +42,7 @@
  • Fl_Double_Window
  • Fl_Draw
  • Fl_File_Browser
  • -
  • Fl_File_Chooser
  • +
  • Fl_File_Chooser
  • Fl_File_Input
  • Fl_Fill_Dial
  • Fl_Fill_Slider
  • @@ -147,6 +147,7 @@
  • FLTK.Environment
  • FLTK.Errors
  • FLTK.Event
  • +
  • FLTK.File_Choosers
  • FLTK.Help_Dialogs
  • FLTK.Images
  • FLTK.Images.Bitmaps
  • -- cgit