mirror of
https://github.com/fairyglade/ly.git
synced 2026-03-24 17:26:04 +00:00
Add widget display name to improve logging
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -12,10 +12,12 @@ const VTable = struct {
|
||||
};
|
||||
|
||||
id: u64,
|
||||
display_name: []const u8,
|
||||
pointer: *anyopaque,
|
||||
vtable: VTable,
|
||||
|
||||
pub fn init(
|
||||
display_name: []const u8,
|
||||
pointer: anytype,
|
||||
comptime deinit_fn: ?fn (ptr: @TypeOf(pointer)) void,
|
||||
comptime realloc_fn: ?fn (ptr: @TypeOf(pointer)) anyerror!void,
|
||||
@@ -86,6 +88,7 @@ pub fn init(
|
||||
|
||||
return .{
|
||||
.id = @intFromPtr(Impl.vtable.draw_fn),
|
||||
.display_name = display_name,
|
||||
.pointer = pointer,
|
||||
.vtable = Impl.vtable,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user