diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-11-13 18:44:21 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-11-13 18:44:21 +1100 |
commit | 9a7351c664d7f05232cb3f934658c79fffc752fd (patch) | |
tree | 789985306b16a84fc2c8a7c420a4d7f679ec3391 /src/fltk_binding/fltk-text_buffers.adb | |
parent | 1ff0512b833a2d310783e4373483a603b91d2707 (diff) |
Added jump to feature
Diffstat (limited to 'src/fltk_binding/fltk-text_buffers.adb')
-rw-r--r-- | src/fltk_binding/fltk-text_buffers.adb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/fltk_binding/fltk-text_buffers.adb b/src/fltk_binding/fltk-text_buffers.adb index 7529c1c..ab752ff 100644 --- a/src/fltk_binding/fltk-text_buffers.adb +++ b/src/fltk_binding/fltk-text_buffers.adb @@ -84,6 +84,18 @@ package body FLTK.Text_Buffers is S, E : in Interfaces.C.int); pragma Import (C, fl_text_buffer_select, "fl_text_buffer_select"); + function fl_text_buffer_skip_lines + (TB : in System.Address; + S, L : in Interfaces.C.int) + return Interfaces.C.int; + pragma Import (C, fl_text_buffer_skip_lines, "fl_text_buffer_skip_lines"); + + function fl_text_buffer_rewind_lines + (TB : in System.Address; + S, L : in Interfaces.C.int) + return Interfaces.C.int; + pragma Import (C, fl_text_buffer_rewind_lines, "fl_text_buffer_rewind_lines"); + @@ -336,5 +348,33 @@ package body FLTK.Text_Buffers is end Set_Selection; + + + function Skip_Lines + (This : in out Text_Buffer; + Start, Lines : in Natural) + return Natural is + begin + return Natural (fl_text_buffer_skip_lines + (This.Void_Ptr, + Interfaces.C.int (Start), + Interfaces.C.int (Lines))); + end Skip_Lines; + + + + + function Rewind_Lines + (This : in out Text_Buffer; + Start, Lines : in Natural) + return Natural is + begin + return Natural (fl_text_buffer_rewind_lines + (This.Void_Ptr, + Interfaces.C.int (Start), + Interfaces.C.int (Lines))); + end Rewind_Lines; + + end FLTK.Text_Buffers; |