this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxfw: add cell_size to all tests

+28 -1
+1
src/vxfw/Border.zig
··· 85 85 .arena = arena.allocator(), 86 86 .min = .{}, 87 87 .max = .{ .width = 10, .height = 10 }, 88 + .cell_size = .{ .width = 10, .height = 20 }, 88 89 }; 89 90 90 91 const surface = try border.draw(ctx);
+1
src/vxfw/Button.zig
··· 194 194 .arena = arena.allocator(), 195 195 .min = .{}, 196 196 .max = .{ .width = 13, .height = 3 }, 197 + .cell_size = .{ .width = 10, .height = 20 }, 197 198 }; 198 199 const surface = try b_widget.draw(draw_ctx); 199 200
+2
src/vxfw/Center.zig
··· 64 64 .arena = arena.allocator(), 65 65 .min = .{}, 66 66 .max = .{ .width = 10, .height = 10 }, 67 + .cell_size = .{ .width = 10, .height = 20 }, 67 68 }; 68 69 69 70 const surface = try center.draw(ctx); ··· 88 89 .arena = arena.allocator(), 89 90 .min = .{}, 90 91 .max = .{ .width = 5, .height = 3 }, 92 + .cell_size = .{ .width = 10, .height = 20 }, 91 93 }; 92 94 93 95 const surface = try center.draw(ctx);
+2
src/vxfw/FlexColumn.zig
··· 35 35 .min = .{ .width = 0, .height = 0 }, 36 36 .max = .{ .width = ctx.max.width, .height = null }, 37 37 .arena = layout_arena.allocator(), 38 + .cell_size = ctx.cell_size, 38 39 }; 39 40 40 41 // Store the inherent size of each widget ··· 122 123 .arena = arena.allocator(), 123 124 .min = .{}, 124 125 .max = .{ .width = 16, .height = 16 }, 126 + .cell_size = .{ .width = 10, .height = 20 }, 125 127 }; 126 128 127 129 const surface = try flex_widget.draw(ctx);
+2
src/vxfw/FlexRow.zig
··· 35 35 .min = .{ .width = 0, .height = 0 }, 36 36 .max = .{ .width = null, .height = ctx.max.height }, 37 37 .arena = layout_arena.allocator(), 38 + .cell_size = ctx.cell_size, 38 39 }; 39 40 40 41 var first_pass_width: u16 = 0; ··· 120 121 .arena = arena.allocator(), 121 122 .min = .{}, 122 123 .max = .{ .width = 16, .height = 16 }, 124 + .cell_size = .{ .width = 10, .height = 20 }, 123 125 }; 124 126 125 127 const surface = try flex_widget.draw(ctx);
+2
src/vxfw/ListView.zig
··· 541 541 .arena = arena.allocator(), 542 542 .min = .{}, 543 543 .max = .{ .width = 16, .height = 4 }, 544 + .cell_size = .{ .width = 10, .height = 20 }, 544 545 }; 545 546 546 547 var surface = try list_widget.draw(draw_ctx); ··· 712 713 .arena = arena.allocator(), 713 714 .min = .{}, 714 715 .max = .{ .width = 16, .height = 4 }, 716 + .cell_size = .{ .width = 10, .height = 20 }, 715 717 }; 716 718 717 719 var surface = try list_widget.draw(draw_ctx);
+1
src/vxfw/Padding.zig
··· 121 121 .arena = arena.allocator(), 122 122 .min = .{}, 123 123 .max = .{ .width = 10, .height = 10 }, 124 + .cell_size = .{ .width = 10, .height = 20 }, 124 125 }; 125 126 126 127 const pad_widget = padding.widget();
+2
src/vxfw/RichText.zig
··· 364 364 .arena = arena.allocator(), 365 365 .min = .{}, 366 366 .max = .{ .width = 7, .height = 2 }, 367 + .cell_size = .{ .width = 10, .height = 20 }, 367 368 }; 368 369 369 370 { ··· 403 404 .arena = arena.allocator(), 404 405 .min = .{}, 405 406 .max = .{ .width = width, .height = null }, 407 + .cell_size = .{ .width = 10, .height = 20 }, 406 408 }; 407 409 408 410 const surface = try rich_widget.draw(ctx);
+1
src/vxfw/SizedBox.zig
··· 66 66 .arena = arena.allocator(), 67 67 .min = .{}, 68 68 .max = .{ .width = 16, .height = 16 }, 69 + .cell_size = .{ .width = 10, .height = 20 }, 69 70 }; 70 71 71 72 var test_widget: TestWidget = .{ .min = .{}, .max = .{} };
+6 -1
src/vxfw/Spinner.zig
··· 133 133 try std.testing.expectEqual(1, spinner.frame); 134 134 135 135 // Simulate a draw 136 - const surface = try spinner_widget.draw(.{ .arena = arena.allocator(), .min = .{}, .max = .{} }); 136 + const surface = try spinner_widget.draw(.{ 137 + .arena = arena.allocator(), 138 + .min = .{}, 139 + .max = .{}, 140 + .cell_size = .{ .width = 10, .height = 20 }, 141 + }); 137 142 138 143 // Spinner will try to be 1x1 139 144 try std.testing.expectEqual(1, surface.size.width);
+1
src/vxfw/SplitView.zig
··· 149 149 .arena = arena.allocator(), 150 150 .min = .{}, 151 151 .max = .{ .width = 16, .height = 16 }, 152 + .cell_size = .{ .width = 10, .height = 20 }, 152 153 }; 153 154 154 155 // Create LHS and RHS widgets
+5
src/vxfw/Text.zig
··· 295 295 .min = .{ .width = 0, .height = 0 }, 296 296 .max = .{ .width = 20, .height = 10 }, 297 297 .arena = arena.allocator(), 298 + .cell_size = .{ .width = 10, .height = 20 }, 298 299 }; 299 300 var iter = SoftwrapIterator.init("Hello, \n world", ctx); 300 301 const first = iter.next(); ··· 322 323 .min = .{ .width = 0, .height = 0 }, 323 324 .max = .{ .width = 6, .height = 10 }, 324 325 .arena = arena.allocator(), 326 + .cell_size = .{ .width = 10, .height = 20 }, 325 327 }; 326 328 var iter = SoftwrapIterator.init("Hello, \nworld", ctx); 327 329 const first = iter.next(); ··· 349 351 .min = .{ .width = 0, .height = 0 }, 350 352 .max = .{ .width = 6, .height = 10 }, 351 353 .arena = arena.allocator(), 354 + .cell_size = .{ .width = 10, .height = 20 }, 352 355 }; 353 356 var iter = SoftwrapIterator.init("very-long-word \nworld", ctx); 354 357 const first = iter.next(); ··· 386 389 .min = .{ .width = 0, .height = 0 }, 387 390 .max = .{ .width = 6, .height = 10 }, 388 391 .arena = arena.allocator(), 392 + .cell_size = .{ .width = 10, .height = 20 }, 389 393 }; 390 394 var iter = SoftwrapIterator.init("Hello, \n world", ctx); 391 395 const first = iter.next(); ··· 481 485 .arena = arena.allocator(), 482 486 .min = .{}, 483 487 .max = .{ .width = 7, .height = 2 }, 488 + .cell_size = .{ .width = 10, .height = 20 }, 484 489 }; 485 490 486 491 {
+1
src/vxfw/TextField.zig
··· 558 558 .arena = arena.allocator(), 559 559 .min = .{}, 560 560 .max = .{ .width = 8, .height = 1 }, 561 + .cell_size = .{ .width = 10, .height = 20 }, 561 562 }; 562 563 _ = draw_ctx; 563 564
+1
src/vxfw/vxfw.zig
··· 168 168 .arena = self.arena, 169 169 .min = min, 170 170 .max = max, 171 + .cell_size = self.cell_size, 171 172 }; 172 173 } 173 174 };