mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-11 09:04:01 +03:00
lvgui: Add header hook to base window
This allows any uses of BaseWindow to add something to the flow at the location the header bar would be.
This commit is contained in:
parent
bf3cc95968
commit
e3e1ce9191
@ -19,6 +19,7 @@ module LVGUI
|
||||
# Preps a basic display
|
||||
@screen = Screen.new()
|
||||
@status_bar = StatusBar.new(@screen)
|
||||
on_header_init()
|
||||
@toolbar = Toolbar.new(@screen)
|
||||
@container = Page.new(@screen)
|
||||
|
||||
@ -67,7 +68,12 @@ module LVGUI
|
||||
on_present
|
||||
end
|
||||
|
||||
# Hooking point for custom behaviour on present
|
||||
def on_present()
|
||||
end
|
||||
|
||||
# Hooking point to customize header building
|
||||
def on_header_init()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user