refactor: add tui.have_top_layer
This commit is contained in:
parent
aaca270de4
commit
3221e2dd39
1 changed files with 5 additions and 0 deletions
|
|
@ -1624,6 +1624,11 @@ pub fn top_layer(opts: renderer.Layer.Options) ?*renderer.Plane {
|
|||
return self.top_layer_.?.plane();
|
||||
}
|
||||
|
||||
pub fn have_top_layer() bool {
|
||||
const self = current();
|
||||
return self.top_layer_ != null;
|
||||
}
|
||||
|
||||
fn top_layer_reset(self: *Self) void {
|
||||
if (self.top_layer_) |top_layer_| {
|
||||
top_layer_.deinit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue