aboutsummaryrefslogtreecommitdiff
path: root/body/fltk-tooltips.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-tooltips.adb')
-rw-r--r--body/fltk-tooltips.adb21
1 files changed, 20 insertions, 1 deletions
diff --git a/body/fltk-tooltips.adb b/body/fltk-tooltips.adb
index ccdb649..8382bb4 100644
--- a/body/fltk-tooltips.adb
+++ b/body/fltk-tooltips.adb
@@ -27,6 +27,8 @@ package body FLTK.Tooltips is
-- Functions From C --
------------------------
+ -- Activity --
+
function fl_tooltip_get_current
return Storage.Integer_Address;
pragma Import (C, fl_tooltip_get_current, "fl_tooltip_get_current");
@@ -61,6 +63,8 @@ package body FLTK.Tooltips is
+ -- Delay --
+
function fl_tooltip_get_delay
return Interfaces.C.C_float;
pragma Import (C, fl_tooltip_get_delay, "fl_tooltip_get_delay");
@@ -84,6 +88,8 @@ package body FLTK.Tooltips is
+ -- Color, Margins, Wrap --
+
function fl_tooltip_get_color
return Interfaces.C.unsigned;
pragma Import (C, fl_tooltip_get_color, "fl_tooltip_get_color");
@@ -127,6 +133,8 @@ package body FLTK.Tooltips is
+ -- Text Settings --
+
function fl_tooltip_get_textcolor
return Interfaces.C.unsigned;
pragma Import (C, fl_tooltip_get_textcolor, "fl_tooltip_get_textcolor");
@@ -160,6 +168,8 @@ package body FLTK.Tooltips is
+ -- User Data --
+
function fl_widget_get_user_data
(W : in Storage.Integer_Address)
return Storage.Integer_Address;
@@ -176,6 +186,8 @@ package body FLTK.Tooltips is
-- API Subprograms --
-----------------------
+ -- Activity --
+
function Get_Target
return access FLTK.Widgets.Widget'Class
is
@@ -189,7 +201,8 @@ package body FLTK.Tooltips is
end if;
return Actual_Widget;
exception
- when Chk.Assertion_Error => raise Internal_FLTK_Error;
+ when Chk.Assertion_Error => raise Internal_FLTK_Error with
+ "Widget returned by Fl_Tooltip::current did not have user_data reference back to Ada";
end Get_Target;
@@ -237,6 +250,8 @@ package body FLTK.Tooltips is
+ -- Delay --
+
function Get_Delay
return Float is
begin
@@ -267,6 +282,8 @@ package body FLTK.Tooltips is
+ -- Color, Margins, Wrap --
+
function Get_Background_Color
return Color is
begin
@@ -325,6 +342,8 @@ package body FLTK.Tooltips is
+ -- Text Settings --
+
function Get_Text_Color
return Color is
begin