Skip to content

finite_window_init

The finite_window_init function creates a new window with a given FiniteShell.

void finite_window_init(FiniteShell *shell)
TypeDescription
FiniteShell *shellThe FiniteShell to create a window for.
finite_window_init(myShell);
if (!myShell) {
FINITE_LOG_FATAL("Unable to make shell");
}

When creating a new application (NOT A POPUP), you must call this function. Although libfinite support custom implementations of some function, all libfinite functions that interact with the window expect the data provided by this function.