before I let my model do something to this

This commit is contained in:
2026-04-19 22:13:24 -05:00
parent ffd4575b9b
commit e8fc65fcd8
3 changed files with 55 additions and 5 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ pub const WidgetError = error{
pub const Widget = struct {
/// geometryFn returns a Block, which specifies the location and size of the
/// submatrix which will be passed into the render function
geometryFn: *const fn (*const @This()) Block,
geometryFn: *const fn (*@This()) Block,
/// renderFn passes in the SubMatrix which can be written to...
/// neat
@@ -27,7 +27,7 @@ pub const Widget = struct {
/// geometry is the driver for geometryFn for the Widget interface.
/// you must create the geometryFn.
pub fn geometry(self: *const @This()) Block {
pub fn geometry(self: *@This()) Block {
return self.geometryFn(self);
}