summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-text_displays.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-12 01:14:58 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-12 01:14:58 +1300
commite93b9bbc02e2791f3a35b6f077fcbb8514c28aed (patch)
tree3661530027db6809a9cbad7b2477416009e00787 /src/fltk-widgets-groups-text_displays.ads
parent53aa8144851913994b963ed611cca8885b8f9a9e (diff)
Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there
Diffstat (limited to 'src/fltk-widgets-groups-text_displays.ads')
-rw-r--r--src/fltk-widgets-groups-text_displays.ads13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/fltk-widgets-groups-text_displays.ads b/src/fltk-widgets-groups-text_displays.ads
index bf7d662..f4ffd43 100644
--- a/src/fltk-widgets-groups-text_displays.ads
+++ b/src/fltk-widgets-groups-text_displays.ads
@@ -26,6 +26,7 @@ package FLTK.Widgets.Groups.Text_Displays is
type Cursor_Style is (Normal, Caret, Dim, Block, Heavy, Simple);
+
Bounds_Error : exception;
@@ -220,13 +221,13 @@ package FLTK.Widgets.Groups.Text_Displays is
- -- takes into account word wrap
+ -- Takes into account word wrap
function Line_Start
(This : in Text_Display;
Pos : in Natural)
return Natural;
- -- takes into account word wrap
+ -- Takes into account word wrap
function Line_End
(This : in Text_Display;
Pos : in Natural;
@@ -239,14 +240,14 @@ package FLTK.Widgets.Groups.Text_Displays is
Start_Pos_Is_Line_Start : in Boolean := False)
return Natural;
- -- takes into account word wrap as well as newline characters
+ -- Takes into account word wrap as well as newline characters
function Skip_Lines
(This : in Text_Display;
Start, Lines : in Natural;
Start_Pos_Is_Line_Start : in Boolean := False)
return Natural;
- -- takes into account word wrap as well as newline characters
+ -- Takes into account word wrap as well as newline characters
function Rewind_Lines
(This : in Text_Display;
Start, Lines : in Natural)
@@ -367,6 +368,9 @@ private
Style_Callback : Styles.Unfinished_Style_Callback;
end record;
+ overriding procedure Initialize
+ (This : in out Text_Display);
+
overriding procedure Finalize
(This : in out Text_Display);
@@ -469,3 +473,4 @@ private
end FLTK.Widgets.Groups.Text_Displays;
+