DVUI

posX

Returns the x position of the requested column

Parameters

#
self:*const GridWidget
*const GridWidget
col_num:usize
usize

Source

Implementation

#
pub fn posX(self: *const GridWidget, col_num: usize) f32 {
    const end = @min(col_num, self.col_widths.len);
    var total: f32 = 0;
    for (self.col_widths[0..end]) |w| {
        total += w;
    }
    return total;
}