summaryrefslogtreecommitdiff
path: root/body/fltk-devices-surface-image.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-02-06 19:28:33 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-02-06 19:28:33 +1300
commit547e538476a788dfeb5974f9b8ad29441d18980b (patch)
tree00a3c7d80ee403969971bc4b814876b4399f3ada /body/fltk-devices-surface-image.adb
parentbefe66a0a98a58e0bdb31bb8c2db4a975a744072 (diff)
Slightly better / more consistent comments
Diffstat (limited to 'body/fltk-devices-surface-image.adb')
-rw-r--r--body/fltk-devices-surface-image.adb32
1 files changed, 32 insertions, 0 deletions
diff --git a/body/fltk-devices-surface-image.adb b/body/fltk-devices-surface-image.adb
index e9e7de4..f52387f 100644
--- a/body/fltk-devices-surface-image.adb
+++ b/body/fltk-devices-surface-image.adb
@@ -12,6 +12,12 @@ with
package body FLTK.Devices.Surface.Image is
+ ------------------------
+ -- Functions From C --
+ ------------------------
+
+ -- Allocation --
+
function new_fl_image_surface
(W, H, R : in Interfaces.C.int)
return Storage.Integer_Address;
@@ -26,6 +32,8 @@ package body FLTK.Devices.Surface.Image is
+ -- Drawing --
+
procedure fl_image_surface_draw
(S, I : in Storage.Integer_Address;
OX, OY : in Interfaces.C.int);
@@ -42,6 +50,8 @@ package body FLTK.Devices.Surface.Image is
+ -- Images --
+
function fl_image_surface_image
(S : in Storage.Integer_Address)
return Storage.Integer_Address;
@@ -57,6 +67,8 @@ package body FLTK.Devices.Surface.Image is
+ -- Surfaces --
+
procedure fl_image_surface_set_current
(S : in Storage.Integer_Address);
pragma Import (C, fl_image_surface_set_current, "fl_image_surface_set_current");
@@ -65,6 +77,10 @@ package body FLTK.Devices.Surface.Image is
+ -------------------
+ -- Destructors --
+ -------------------
+
procedure Finalize
(This : in out Image_Surface) is
begin
@@ -77,6 +93,10 @@ package body FLTK.Devices.Surface.Image is
+ --------------------
+ -- Constructors --
+ --------------------
+
package body Forge is
function Create
@@ -98,6 +118,12 @@ package body FLTK.Devices.Surface.Image is
+ -----------------------
+ -- API Subprograms --
+ -----------------------
+
+ -- Resolution --
+
function Is_Highres
(This : in Image_Surface)
return Boolean is
@@ -108,6 +134,8 @@ package body FLTK.Devices.Surface.Image is
+ -- Drawing --
+
procedure Draw_Widget
(This : in out Image_Surface;
Item : in FLTK.Widgets.Widget'Class;
@@ -136,6 +164,8 @@ package body FLTK.Devices.Surface.Image is
+ -- Images --
+
function Get_Image
(This : in Image_Surface)
return FLTK.Images.RGB.RGB_Image is
@@ -158,6 +188,8 @@ package body FLTK.Devices.Surface.Image is
+ -- Surfaces --
+
procedure Set_Current
(This : in out Image_Surface) is
begin