feat: add spacer widget

This commit is contained in:
xdBronch 2024-08-25 17:10:25 -04:00 committed by CJ van den Berg
parent bff019e26e
commit b115d55097
2 changed files with 44 additions and 0 deletions

View file

@ -12,6 +12,7 @@ const widgets = std.static_string_map.StaticStringMap(create_fn).initComptime(.{
.{ "modifiers", @import("modstate.zig").create },
.{ "keystate", @import("keystate.zig").create },
.{ "expander", @import("expander.zig").create },
.{ "spacer", @import("spacer.zig").create },
});
pub const CreateError = error{ OutOfMemory, Exit };
const create_fn = *const fn (a: std.mem.Allocator, parent: Plane, event_handler: ?Widget.EventHandler) CreateError!Widget;