aboutsummaryrefslogtreecommitdiff
path: root/render.f90
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-12-02 17:26:17 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2020-12-02 17:26:17 -0500
commit36bf9cd9fdfc06e12d88fdc647cc932d4a1c6452 (patch)
treea9c4bf087d64e8da84ea223b869e634c8fdbe264 /render.f90
parentd0529f621ac38f3deed6e02515445eac1f9fdd13 (diff)
downloadLR-87-36bf9cd9fdfc06e12d88fdc647cc932d4a1c6452.zip
LR-87-36bf9cd9fdfc06e12d88fdc647cc932d4a1c6452.tar.gz
Added a new abstract call for renderers to signal layout completion. Switch AppGraphics renderer to double-buffered for smooth display. Accelerated mouse wheel.
Diffstat (limited to 'render.f90')
-rw-r--r--render.f908
1 files changed, 8 insertions, 0 deletions
diff --git a/render.f90 b/render.f90
index 74b1406..9027f83 100644
--- a/render.f90
+++ b/render.f90
@@ -58,6 +58,7 @@ implicit none
procedure(initialize), deferred::initialize
procedure(prepare_for_layout), deferred::prepare_for_layout
+ procedure(layout_complete), deferred::layout_complete
procedure(new_page), deferred::new_page
procedure(calculate_width), deferred::text_width
@@ -107,6 +108,13 @@ implicit none
class(renderer)::self
end subroutine prepare_for_layout
end interface
+
+ abstract interface
+ subroutine layout_complete(self)
+ import::renderer
+ class(renderer)::self
+ end subroutine layout_complete
+ end interface
abstract interface
function calculate_width(self, text, text_type)