explicit padding works

This commit is contained in:
Mitchell Hashimoto
2022-11-14 17:13:56 -08:00
parent c515cb9b5f
commit d7d12d9469
5 changed files with 58 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
//! The options that are used to configure a renderer.
const font = @import("../font/main.zig");
const renderer = @import("../renderer.zig");
/// The font group that should be used.
font_group: *font.GroupCache,
@@ -11,10 +12,7 @@ padding: Padding,
pub const Padding = struct {
// Explicit padding options, in pixels. The windowing thread is
// expected to convert points to pixels for a given DPI.
top: u32 = 0,
bottom: u32 = 0,
right: u32 = 0,
left: u32 = 0,
explicit: renderer.Padding,
// Balance options
balance: bool = false,