more compact naming for layout struct and added simple doc comments to layout sruct
This commit is contained in:
parent
5c14648e9f
commit
38cc535235
5 changed files with 103 additions and 60 deletions
|
@ -226,7 +226,7 @@ pub fn measureText(clay_text: []const u8, config: *cl.TextElementConfig) cl.Dime
|
|||
if (temp_text_width < text_width) temp_text_width = text_width;
|
||||
|
||||
return cl.Dimensions{
|
||||
.height = text_height,
|
||||
.width = temp_text_width * scale_factor + @as(f32, @floatFromInt(temp_byte_counter - 1)) * letter_spacing,
|
||||
.h = text_height,
|
||||
.w = temp_text_width * scale_factor + @as(f32, @floatFromInt(temp_byte_counter - 1)) * letter_spacing,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue