summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-groups-browsers-textline.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-groups-browsers-textline.adb')
-rw-r--r--body/fltk-widgets-groups-browsers-textline.adb50
1 files changed, 50 insertions, 0 deletions
diff --git a/body/fltk-widgets-groups-browsers-textline.adb b/body/fltk-widgets-groups-browsers-textline.adb
index 744315f..c772a10 100644
--- a/body/fltk-widgets-groups-browsers-textline.adb
+++ b/body/fltk-widgets-groups-browsers-textline.adb
@@ -29,6 +29,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
-- Functions From C --
------------------------
+ -- Errors --
+
function get_error_message
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, get_error_message, "get_error_message");
@@ -37,6 +39,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Allocation --
+
function new_fl_browser
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -52,6 +56,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Lines --
+
procedure fl_browser_add
(B : in Storage.Integer_Address;
T : in Interfaces.C.char_array;
@@ -99,6 +105,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Text Loading --
+
function fl_browser_load
(B : in Storage.Integer_Address;
F : in Interfaces.C.char_array)
@@ -135,6 +143,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Columns, Formatting --
+
function fl_browser_get_column_char
(B : in Storage.Integer_Address)
return Interfaces.C.char;
@@ -167,6 +177,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Line Positions --
+
function fl_browser_get_topline
(B : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -200,6 +212,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Selection --
+
function fl_browser_select
(B : in Storage.Integer_Address;
L, V : in Interfaces.C.int)
@@ -223,6 +237,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Visibility --
+
function fl_browser_visible
(B : in Storage.Integer_Address;
L : in Interfaces.C.int)
@@ -268,6 +284,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Dimensions --
+
procedure fl_browser_set_size
(B : in Storage.Integer_Address;
W, H : in Interfaces.C.int);
@@ -277,6 +295,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Icons --
+
procedure fl_browser_set_icon
(B : in Storage.Integer_Address;
L : in Interfaces.C.int;
@@ -293,6 +313,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Item Implementation --
+
function fl_browser_item_width
(B, I : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -368,6 +390,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- List Implementation --
+
function fl_browser_full_width
(B : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -395,6 +419,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Line Numbers --
+
function fl_browser_lineno
(B, I : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -404,6 +430,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Drawing, Events --
+
procedure fl_browser_draw
(B : in Storage.Integer_Address);
pragma Import (C, fl_browser_draw, "fl_browser_draw");
@@ -534,6 +562,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
-- API Subprograms --
-----------------------
+ -- Lines --
+
procedure Add
(This : in out Textline_Browser;
Text : in String) is
@@ -607,6 +637,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Text Loading --
+
procedure Load
(This : in out Textline_Browser;
File : in String)
@@ -677,6 +709,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Columns, Formatting --
+
function Get_Column_Character
(This : in Textline_Browser)
return Character is
@@ -741,6 +775,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Line Positions --
+
function Get_Top_Line
(This : in Textline_Browser)
return Positive is
@@ -784,6 +820,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Selection --
+
function Set_Select
(This : in out Textline_Browser;
Line : in Positive;
@@ -847,6 +885,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Visibility --
+
function Is_Visible
(This : in Textline_Browser;
Line : in Positive)
@@ -913,6 +953,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Dimensions --
+
procedure Resize
(This : in out Textline_Browser;
W, H : in Integer) is
@@ -926,6 +968,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Icons --
+
function Has_Icon
(This : in Textline_Browser;
Line : in Positive)
@@ -979,6 +1023,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- List Implementation --
+
function Full_List_Height
(This : in Textline_Browser)
return Integer is
@@ -997,6 +1043,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Item Implementation --
+
function Item_Width
(This : in Textline_Browser;
Item : in Item_Cursor)
@@ -1188,6 +1236,8 @@ package body FLTK.Widgets.Groups.Browsers.Textline is
+ -- Line Numbers --
+
function Line_Number
(This : in Textline_Browser;
Item : in Item_Cursor)