refactor: zigify imports and correct minor mistakes
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
//! Interface for Element's which describe the contents of a `Container`.
|
||||
const std = @import("std");
|
||||
const input = @import("input.zig");
|
||||
|
||||
const Container = @import("container.zig").Container;
|
||||
const Cell = @import("cell.zig");
|
||||
const Mouse = input.Mouse;
|
||||
const Point = @import("point.zig").Point;
|
||||
|
||||
pub fn Element(Event: type) type {
|
||||
return struct {
|
||||
@@ -188,8 +181,14 @@ pub fn Scrollable(Event: type) type {
|
||||
};
|
||||
}
|
||||
|
||||
const std = @import("std");
|
||||
const input = @import("input.zig");
|
||||
const Container = @import("container.zig").Container;
|
||||
const Cell = @import("cell.zig");
|
||||
const Mouse = input.Mouse;
|
||||
const Point = @import("point.zig").Point;
|
||||
|
||||
// TODO nested scrollable `Container`s?'
|
||||
// TODO reaction only for when the event is actually pushed to the corresponding `Container` rendered container
|
||||
|
||||
test "scrollable vertical" {
|
||||
const event = @import("event.zig");
|
||||
|
||||
Reference in New Issue
Block a user