all: rename setShouldClose to close

Closes #550
This commit is contained in:
Ali Chraghi 2022-09-18 19:22:03 +04:30 committed by Stephen Gutekanst
parent 308d413f09
commit 15dfb2867a
15 changed files with 21 additions and 21 deletions

View file

@ -50,8 +50,8 @@ pub fn setOptions(core: *Core, options: structs.Options) !void {
}
// Signals mach to stop the update loop.
pub fn setShouldClose(core: *Core, value: bool) void {
core.internal.setShouldClose(value);
pub fn close(core: *Core) void {
core.internal.close();
}
// Sets seconds to wait for an event with timeout before calling update()