diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-12-29 23:51:07 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-12-29 23:51:07 +1300 |
commit | b870f2a1e8fcb956ce316e6a600d7d0625604830 (patch) | |
tree | 1baa64b41151cdd956666c37eeabc9867b69b47c /test | |
parent | 42fff9f52462823b3cb315476fd9d67d4e7fc075 (diff) |
Revised FLTK.Devices.Surface subhierarchy
Diffstat (limited to 'test')
-rw-r--r-- | test/page_formats.adb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/page_formats.adb b/test/page_formats.adb new file mode 100644 index 0000000..2f79d98 --- /dev/null +++ b/test/page_formats.adb @@ -0,0 +1,29 @@ + + +-- Programmed by Jedidiah Barber +-- Released into the public domain + + +with + + Ada.Text_IO, + FLTK.Devices.Surface.Paged; + + +procedure Page_Formats is + + package TIO renames Ada.Text_IO; + package PD renames FLTK.Devices.Surface.Paged; + +begin + + for Format in PD.Page_Formats'Range loop + TIO.Put_Line (PD.Page_Formats (Format).Name); + TIO.Put_Line (Integer'Image (PD.Page_Formats (Format).Width)); + TIO.Put_Line (Integer'Image (PD.Page_Formats (Format).Height)); + TIO.New_Line; + end loop; + +end Page_Formats; + + |