Legend:
Library
Module
Module type
Parameter
Class
Class type
Windows
In order to display a Layout, Bogue needs to create a Window.t for it, and pass it as argument of Main.create. This is done automatically if you use Main.of_layouts, so most of the time you don't need to deal with Window.t's.
Windows are created by SDL, and hence will appear with the usual decorations of your Desktop Environment.
Create a window from the given layout. The layout must not belong to any room. If the layout is hidden, the window will be created but not shown.
parameteron_close
Set the function to be executed when the user wants to close the window. By default, the window will be destroyed. Hence, setting a function can prevent the window from being closed. However, if this is the sole open window, clicking on the close button will also emit the 'Quit' event, and will terminate Bogue anyways.
Set window size in physical pixels. Only works after the window is physically created by Main.run. However, you may use set_size in advance with Sync.push.