DVUI

totalWidth

Returns the total width of all columns

Parameters

#
self:*const GridWidget
*const GridWidget

Source

Implementation

#
pub fn totalWidth(self: *const GridWidget) f32 {
    var total: f32 = 0;
    for (self.col_widths) |w| {
        total += w;
    }
    return total;
}