Open fatteneder opened 2 years ago
For now the elements are created for all elements. I can imagine that we later start every new_slide! with no elements present and then allow to add a header or footer element dynamically and on a slide by slide basis.
Ok, I got this to work by diving into internals of GridLayoutBase
. Not sure how reliable that is, though.
Also: The SlideElement
struct I introduced reassembles GridLayoutBase.GridContent
. Perhaps parts of this PR could be elivated to GridLayoutBase
at some point?
Add basic features needed to complete #13
This version here basically splits the current foreground figure
figure
ofPresentation
into multiple elements,header, footer, body, sidebar_lhs, sidebar_rhs
. I choose this over puttingheader, footer, sidebar_lhs, sidebar_rhs
into the background figureparent
inPresentation
, because I anticipate that we also need to redraw those frequently, e.g. when we add slide number support.You can now create slides with
Note that I replaced
add_slide!
with newnew_slide!
andadd_to_slide!
.For now the elements are created for all elements. I can imagine that we later start every
new_slide!
with no elements present and then allow to add a header or footer element dynamically and on a slide by slide basis.