From 71c1c5bb789f315239a64cb22002088ddcb353b1 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 30 Apr 2018 01:33:49 +1000 Subject: Text_Displays finished, more things polished --- doc/fl_color_chooser.html | 238 ++++++++++++++ doc/fl_input_choice.html | 297 +++++++++++++++++ doc/fl_printer.html | 250 ++++++++++++++ doc/fl_text_display.html | 822 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1607 insertions(+) create mode 100644 doc/fl_color_chooser.html create mode 100644 doc/fl_input_choice.html create mode 100644 doc/fl_printer.html create mode 100644 doc/fl_text_display.html (limited to 'doc') diff --git a/doc/fl_color_chooser.html b/doc/fl_color_chooser.html new file mode 100644 index 0000000..66a14a7 --- /dev/null +++ b/doc/fl_color_chooser.html @@ -0,0 +1,238 @@ + + + + + + + Fl_Color_Chooser Binding Map + + + + + + +

Fl_Color_Chooser Binding Map

+ + + + + + + + + + +
Package name
Fl_Color_ChooserFLTK.Widgets.Groups.Color_Choosers
+ + + + + + + + + + + + + + + + + + + + + +
Types
Fl_Color_ChooserColor_Chooser
 Color_Chooser_Reference
 Color_Mode
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+Fl_Color_Chooser(int X, int Y, int W, int H, const char *L=0);
+
+function Create
+       (X, Y, W, H : in Integer;
+        Text       : in String)
+    return Color_Chooser;
+
+double b() const;
+
+function Get_Blue
+       (This : in Color_Chooser)
+    return Long_Float;
+
 
+function Color_Was_Changed
+       (This : in Color_Chooser)
+    return Boolean;
+
 
+procedure Clear_Changed
+       (This : in out Color_Chooser);
+
 
+procedure Draw
+       (This : in out Color_Chooser);
+
+double g() const;
+
+function Get_Green
+       (This : in Color_Chooser)
+    return Long_Float;
+
 
+function Handle
+       (This  : in out Color_Chooser;
+        Event : in     Event_Kind)
+    return Event_Outcome;
+
+int hsv(double H, double S, double V);
+
+procedure Set_HSV
+       (This    : in out Color_Chooser;
+        H, S, V : in     Long_Float);
+
+double hue() const;
+
+function Get_Hue
+       (This : in Color_Chooser)
+    return Long_Float;
+
+int mode();
+
+function Get_Mode
+       (This : in Color_Chooser)
+    return Color_Mode;
+
+void mode(int newMode);
+
+procedure Set_Mode
+       (This : in out Color_Chooser;
+        To   : in     Color_Mode);
+
+double r() const;
+
+function Get_Red
+       (This : in Color_Chooser)
+    return Long_Float;
+
+int rgb(double R, double G, double B);
+
+procedure Set_RGB
+       (This    : in out Color_Chooser;
+        R, G, B : in     Long_Float);
+
+double saturation() const;
+
+function Get_Saturation
+       (This : in Color_Chooser)
+    return Long_Float;
+
+double value() const;
+
+function Get_Value
+       (This : in Color_Chooser)
+    return Long_Float;
+
+static void hsv2rgb(double H, double S, double V, double &R, double &G, double &B);
+
+procedure HSV_To_RGB
+       (H, S, V : in     Long_Float;
+        R, G, B :    out Long_Float);
+
+static void rgb2hsv(double R, double G, double B, double &H, double &S, double &V);
+
+procedure RGB_To_HSV
+       (R, G, B : in     Long_Float;
+        H, S, V :    out Long_Float);
+
+ + + + + diff --git a/doc/fl_input_choice.html b/doc/fl_input_choice.html new file mode 100644 index 0000000..c15f677 --- /dev/null +++ b/doc/fl_input_choice.html @@ -0,0 +1,297 @@ + + + + + + + Fl_Input_Choice Binding Map + + + + + + +

Fl_Input_Choice Binding Map

+ + + + + + + + + + +
Package name
Fl_Input_ChoiceFLTK.Widgets.Groups.Input_Choices
+ + + + + + + + + + + + + + + + +
Types
Fl_Input_ChoiceInput_Choice
 Input_Choice_Reference
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+Fl_Input_Choice(int X, int Y, int W, int H, const char *L=0);
+
+function Create
+       (X, Y, W, H : in Integer;
+        Text       : in String)
+    return Input_Choice;
+
+void add(const char *s);
+
Use Menu_Button instead
+int changed() const;
+
+function Has_Changed
+       (This : in Input_Choice)
+    return Boolean;
+
+void clear();
+
+procedure Clear
+       (This : in out Input_Choice);
+
+void clear_changed();
+
+procedure Clear_Changed
+       (This : in out Input_Choice);
+
+Fl_Boxtype down_box() const;
+
+function Get_Down_Box
+       (This : in Input_Choice)
+    return Box_Kind;
+
+void down_box(Fl_Boxtype b);
+
+procedure Set_Down_Box
+       (This : in out Input_Choice;
+        To   : in     Box_Kind);
+
 
+procedure Draw
+       (This : in out Input_Choice);
+
 
+function Handle
+       (This  : in out Input_Choice;
+        Event : in     Event_Kind)
+    return Event_Outcome;
+
+Fl_Input * input();
+
+function Input
+       (This : in out Input_Choice)
+    return FLTK.Widgets.Inputs.Input_Reference;
+
+const Fl_Menu_Item * menu();
+
 
+void menu(const Fl_Menu_Item *m);
+
 
+Fl_Menu_Button * menubutton();
+
+function Menu_Button
+       (This : in out Input_Choice)
+    return FLTK.Widgets.Menus.Menu_Buttons.Menu_Button_Reference;
+
+void resize(int X, int Y, int W, int H);
+
 
+void set_changed();
+
+procedure Set_Changed
+       (This : in out Input_Choice;
+        To   : in     Boolean);
+
+Fl_Color textcolor() const;
+
+function Get_Text_Color
+       (This : in Input_Choice)
+    return Color;
+
+void textcolor(Fl_Color c);
+
+procedure Set_Text_Color
+       (This : in out Input_Choice;
+        To   : in     Color);
+
+Fl_Font textfont() const;
+
+function Get_Text_Font
+       (This : in Input_Choice)
+    return Font_Kind;
+
+void textfont(Fl_Font f);
+
+procedure Set_Text_Font
+       (This : in out Input_Choice;
+        To   : in     Font_Kind);
+
+Fl_Fontsize textsize() const;
+
+function Get_Text_Size
+       (This : in Input_Choice)
+    return Font_Size;
+
+void textsize(Fl_Fontsize s);
+
+procedure Set_Text_Size
+       (This : in out Input_Choice;
+        To   : in     Font_Size);
+
+const char * value() const;
+
+function Get_Input
+       (This : in Input_Choice)
+    return String;
+
+void value(const char *val);
+
+procedure Set_Input
+       (This : in out Input_Choice;
+        To   : in     String);
+
+void value(int val);
+
+procedure Set_Item
+       (This : in out Input_Choice;
+        Num  : in     Integer);
+
+ + + + + diff --git a/doc/fl_printer.html b/doc/fl_printer.html new file mode 100644 index 0000000..97b0e9c --- /dev/null +++ b/doc/fl_printer.html @@ -0,0 +1,250 @@ + + + + + + + Fl_Printer Binding Map + + + + + + +

Fl_Printer Binding Map

+ + + + + + + + + + +
Package name
Fl_PrinterFLTK.Devices.Surfaces.Paged.Printers
+ + + + + + + + + + + + + + + + +
Types
Fl_PrinterPrinter
 Printer_Reference
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+Fl_Printer(void);
+
+function Create
+    return Printer;
+
+const char * class_name();
+
Use runtime tag checking
+Fl_Graphics_Driver * driver(void);
+
 
+void end_job(void);
+
+procedure End_Job
+       (This : in out Printer);
+
+int end_page(void);
+
+procedure End_Page
+       (This : in out Printer);
+
+void margins(int *left, int *top, int *right, int *bottom);
+
+procedure Get_Margins
+       (This                     : in     Printer;
+        Left, Top, Right, Bottom :    out Integer);
+
+void origin(int *x, int *y);
+
+procedure Get_Origin
+       (This : in     Printer;
+        X, Y :    out Integer);
+
+void origin(int x, int y);
+
+procedure Set_Origin
+       (This : in out Printer;
+        X, Y : in     Integer);
+
+void print_widget(Fl_Widget *widget, int delta_x=0, int delta_y=0);
+
+procedure Print_Widget
+       (This               : in out Printer;
+        Item               : in     FLTK.Widgets.Widget'Class;
+        Offset_X, Offset_Y : in     Integer := 0);
+
+void print_window_part(Fl_Window *win, int x, int y, int w, int h, int delta_x=0, int delta_y=0);
+
+procedure Print_Window_Part
+       (This               : in out Printer;
+        Item               : in     FLTK.Widgets.Groups.Windows.Window'Class;
+        X, Y, W, H         : in     Integer;
+        Offset_X, Offset_Y : in     Integer := 0);
+
+int printable_rect(int *w, int *h);
+
+procedure Get_Printable_Rect
+       (This : in     Printer;
+        W, H :    out Integer);
+
+void rotate(float angle);
+
+procedure Rotate
+       (This    : in out Printer;
+        Degrees : in     Float);
+
+void scale(float scale_x, float scale_y=0);
+
+procedure Scale
+       (This   : in out Printer;
+        Factor : in     Float);
+
+procedure Scale
+       (This               : in out Printer;
+        Factor_X, Factor_Y : in     Float);
+
+void set_current(void);
+
+procedure Set_Current
+       (This : in out Printer);
+
+int start_job(int pagecount, int *frompage=NULL, int *topage=NULL);
+
+procedure Start_Job
+       (This  : in out Printer;
+        Count : in     Natural);
+
+procedure Start_Job
+       (This     : in out Printer;
+        Count    : in     Natural;
+        From, To : in     Positive);
+
+int start_page(void);
+
+procedure Start_Page
+       (This : in out Printer);
+
+void translate(int x, int y);
+
+procedure Translate
+       (This             : in out Printer;
+        Delta_X, Delta_Y : in     Integer);
+
+void untranslate(void);
+
+procedure Untranslate
+       (This : in out Printer);
+
+ + + + + diff --git a/doc/fl_text_display.html b/doc/fl_text_display.html new file mode 100644 index 0000000..723c5fe --- /dev/null +++ b/doc/fl_text_display.html @@ -0,0 +1,822 @@ + + + + + + + Fl_Text_Display Binding Map + + + + + + +

Fl_Text_Display Binding Map

+ + + + + + + + + + +
Package name
Fl_Text_DisplayFLTK.Widgets.Groups.Text_Displays
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Types
Fl_Text_DisplayText_Display
 Text_Display_Reference
enum { NORMAL_CURSOR, CARET_CURSOR, DIM_CURSOR, BLOCK_CURSOR, HEAVY_CURSOR, SIMPLE_CURSOR }Cursor_Style
enum { CURSOR_POS, CHARACTER_POS } 
enum { DRAG_NONE = -2, DRAG_START_DND = -1, DRAG_CHAR = 0, DRAG_WORD = 1, DRAG_LINE = 2 } 
enum { WRAP_NONE, WRAP_AT_COLUMN, WRAP_AT_PIXEL, WRAP_AT_BOUNDS }Wrap_Mode
Unfinished_Style_CbUnfinished_Style_Callback
Style_Table_EntryStyle_Entry
 Style_Index
 Style_Array
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+Fl_Text_Display(int X, int Y, int W, int H, const char *L=0);
+
+function Create
+       (X, Y, W, H : in Integer;
+        Text       : in String)
+    return Text_Display;
+
+void buffer(Fl_Text_Buffer *buf);
+void buffer(Fl_Text_Buffer &buf);
+
+procedure Set_Buffer
+       (This : in out Text_Display;
+        Buff : in out FLTK.Text_Buffers.Text_Buffer);
+
+Fl_Text_Buffer * buffer() const;
+
+function Get_Buffer
+       (This : in Text_Display)
+    return FLTK.Text_Buffers.Text_Buffer_Reference;
+
+double col_to_x(double col) const;
+
+function Col_To_X
+       (This    : in Text_Display;
+        Col_Num : in Integer)
+    return Integer;
+
+int count_lines(int start, int end, bool start_pos_is_line_start) const;
+
+function Count_Lines
+       (This                    : in Text_Display;
+        Start, Finish           : in Natural;
+        Start_Pos_Is_Line_Start : in Boolean := False)
+    return Natural;
+
+Fl_Color cursor_color() const;
+
+function Get_Cursor_Color
+       (This : in Text_Display)
+    return Color;
+
+void cursor_color(Fl_Color n);
+
+procedure Set_Cursor_Color
+       (This : in out Text_Display;
+        Col  : in     Color);
+
+void cursor_style(int style);
+
+procedure Set_Cursor_Style
+       (This  : in out Text_Display;
+        Style : in     Cursor_Style);
+
+virtual void draw();
+
+procedure Draw
+       (This : in out Text_Display);
+
+virtual int handle(int e);
+
+function Handle
+       (This  : in out Text_Display;
+        Event : in     Event_Kind)
+    return Event_Outcome;
+
+void hide_cursor();
+
+procedure Hide_Cursor
+       (This : in out Text_Display);
+
+void highlight_data
+   (Fl_Text_Buffer *styleBuffer,
+    const Style_Table_Entry *styleTable,
+    int nStyles,
+    char unfinishedStyle,
+    Unfinished_Style_Cb unfinishedHighlightCB,
+    void *cbArg);
+
+procedure Highlight_Data
+       (This  : in out Text_Display;
+        Buff  : in out FLTK.Text_Buffers.Text_Buffer;
+        Table : in     Styles.Style_Array);
+
+procedure Highlight_Data
+       (This       : in out Text_Display;
+        Buff       : in out FLTK.Text_Buffers.Text_Buffer;
+        Table      : in     Styles.Style_Array;
+        Unfinished : in     Styles.Style_Index;
+        Callback   : in     Styles.Unfinished_Style_Callback);
+
+int in_selection(int x, int y) const;
+
+function In_Selection
+       (This : in Text_Display;
+        X, Y : in Integer)
+    return Boolean;
+
+void insert(const char *text);
+
+procedure Insert_Text
+       (This : in out Text_Display;
+        Item : in     String);
+
+void insert_position(int newPos);
+
+procedure Set_Insert_Position
+       (This : in out Text_Display;
+        Pos  : in     Natural);
+
+int insert_position() const;
+
+function Get_Insert_Position
+       (This : in Text_Display)
+    return Natural;
+
 
+function Item
+       (Tint : in Color;
+        Font : in Font_Kind;
+        Size : in Font_Size)
+    return Style_Entry;
+
+int line_end(int startPos, bool startPosIsLineStart) const;
+
+function Line_End
+       (This                    : in Text_Display;
+        Pos                     : in Natural;
+        Start_Pos_Is_Line_Start : in Boolean := False)
+    return Natural;
+
+int line_start(int pos) const;
+
+function Line_Start
+       (This : in Text_Display;
+        Pos  : in Natural)
+    return Natural;
+
+void linenumber_align(Fl_Align val);
+
+procedure Set_Linenumber_Alignment
+       (This : in out Text_Display;
+        To   : in     Alignment);
+
+Fl_Align linenumber_align() const;
+
+function Get_Linenumber_Alignment
+       (This : in Text_Display)
+    return Alignment;
+
+void linenumber_bgcolor(Fl_Color val);
+
+procedure Set_Linenumber_Back_Color
+       (This : in out Text_Display;
+        To   : in     Color);
+
+Fl_Color linenumber_bgcolor() const;
+
+function Get_Linenumber_Back_Color
+       (This : in Text_Display)
+    return Color;
+
+void linenumber_fgcolor(Fl_Color val);
+
+procedure Set_Linenumber_Fore_Color
+       (This : in out Text_Display;
+        To   : in     Color);
+
+Fl_Color linenumber_fgcolor() const;
+
+function Get_Linenumber_Fore_Color
+       (This : in Text_Display)
+    return Color;
+
+void linenumber_font(Fl_Font val);
+
+procedure Set_Linenumber_Font
+       (This : in out Text_Display;
+        To   : in     Font_Kind);
+
+Fl_Font linenumber_font() const;
+
+function Get_Linenumber_Font
+       (This : in Text_Display)
+    return Font_Kind;
+
+void linenumber_format(const char *val);
+
 
+const char * linenumber_format() const;
+
 
+void linenumber_size(Fl_Fontsize val);
+
+procedure Set_Linenumber_Size
+       (This : in out Text_Display;
+        To   : in     Font_Size);
+
+Fl_Fontsize linenumber_size() const;
+
+function Get_Linenumber_Size
+       (This : in Text_Display)
+    return Font_Size;
+
+void linenumber_width(int width);
+
+procedure Set_Linenumber_Width
+       (This  : in out Text_Display;
+        Width : in     Natural);
+
+int linenumber_width() const;
+
+function Get_Linenumber_Width
+       (This : in Text_Display)
+    return Natural;
+
+int move_down();
+
+procedure Move_Down
+       (This : in out Text_Display);
+
+int move_left();
+
+procedure Move_Left
+       (This : in out Text_Display);
+
+int move_right();
+
+procedure Move_Right
+       (This : in out Text_Display);
+
+int move_up();
+
+procedure Move_Up
+       (This : in out Text_Display);
+
+void next_word(void);
+
+procedure Next_Word
+       (This : in out Text_Display);
+
+void overstrike(const char *text);
+
+procedure Overstrike
+       (This : in out Text_Display;
+        Text : in     String);
+
+int position_style(int lineStartPos, int lineLen, int lineIndex) const;
+
 
+int position_to_xy(int pos, int *x, int *y) const;
+
+procedure Position_To_XY
+       (This     : in     Text_Display;
+        Pos      : in     Integer;
+        X, Y     :    out Integer;
+        Vert_Out :    out Boolean);
+
+void previous_word(void);
+
+procedure Previous_Word
+       (This : in out Text_Display);
+
+void redisplay_range(int start, int end);
+
+procedure Redisplay_Range
+       (This          : in out Text_Display;
+        Start, Finish : in     Natural);
+
+virtual void resize(int X, int Y, int W, int H);
+
 
+int rewind_lines(int startPos, int nLines);
+
+function Rewind_Lines
+       (This         : in Text_Display;
+        Start, Lines : in Natural)
+    return Natural;
+
+void scroll(int topLineNum, int horizOffset);
+
+procedure Scroll_To
+       (This : in out Text_Display;
+        Line : in     Natural);
+
+Fl_Align scrollbar_align() const;
+
+function Get_Scrollbar_Alignment
+       (This : in Text_Display)
+    return Alignment;
+
+void scrollbar_align(Fl_Align a);
+
+procedure Set_Scrollbar_Alignment
+       (This  : in out Text_Display;
+        Align : in     Alignment);
+
+int scrollbar_width() const;
+
+function Get_Scrollbar_Width
+       (This : in Text_Display)
+    return Natural;
+
+void scrollbar_width(int W);
+
+procedure Set_Scrollbar_Width
+       (This  : in out Text_Display;
+        Width : in     Natural);
+
+int shortcut() const;
+
 
+void shortcut(int s);
+
 
+void show_cursor(int b=1);
+
+procedure Show_Cursor
+       (This : in out Text_Display);
+
+void show_insert_position();
+
+procedure Show_Insert_Position
+       (This : in out Text_Display);
+
+int skip_lines(int startPos, int nLines, bool startPosIsLineStart);
+
+function Skip_Lines
+       (This                    : in Text_Display;
+        Start, Lines            : in Natural;
+        Start_Pos_Is_Line_Start : in Boolean := False)
+    return Natural;
+
+Fl_Color textcolor() const;
+
+function Get_Text_Color
+       (This : in Text_Display)
+    return Color;
+
+void textcolor(Fl_Color n);
+
+procedure Set_Text_Color
+       (This : in out Text_Display;
+        Col  : in     Color);
+
+Fl_Font textfont() const;
+
+function Get_Text_Font
+       (This : in Text_Display)
+    return Font_Kind;
+
+void textfont(Fl_Font s);
+
+procedure Set_Text_Font
+       (This : in out Text_Display;
+        Font : in     Font_Kind);
+
+Fl_Fontsize textsize() const;
+
+function Get_Text_Size
+       (This : in Text_Display)
+    return Font_Size;
+
+void textsize(Fl_Fontsize s);
+
+procedure Set_Text_Size
+       (This : in out Text_Display;
+        Size : in     Font_Size);
+
+int word_end(int pos) const;
+
+function Word_End
+       (This : in out Text_Display;
+        Pos  : in     Natural)
+    return Natural;
+
+int word_start(int pos) const;
+
+function Word_Start
+       (This : in out Text_Display;
+        Pos  : in     Natural)
+    return Natural;
+
+void wrap_mode(int wrap, int wrap_margin);
+
+procedure Set_Wrap_Mode
+       (This   : in out Text_Display;
+        Mode   : in     Wrap_Mode;
+        Margin : in     Natural := 0);
+
+int wrapped_column(int row, int column) const;
+
 
+int wrapped_row(int row) const;
+
 
+double x_to_col(double x) const;
+
+function X_To_Col
+       (This  : in Text_Display;
+        X_Pos : in Integer)
+    return Integer;
+
+ + + + + -- cgit