before I let my model do something to this
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user