refactor: make Widget.focus/unfocus const

This commit is contained in:
CJ van den Berg 2026-02-24 18:26:36 +01:00
parent f1a8efa318
commit 9a68918ada
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -237,11 +237,11 @@ pub fn walk(self: *const Self, walk_ctx: *anyopaque, f: WalkFn) bool {
return if (self.vtable.walk(self.ptr, walk_ctx, f)) true else f(walk_ctx, self.*);
}
pub fn focus(self: *Self) void {
pub fn focus(self: *const Self) void {
self.vtable.focus(self.ptr);
}
pub fn unfocus(self: *Self) void {
pub fn unfocus(self: *const Self) void {
self.vtable.unfocus(self.ptr);
}