DVUI

setContainerRect

Parameters

#
self:*ScrollAreaWidget
*ScrollAreaWidget
rect:dvui.Rect
dvui.Rect

Source

Implementation

#
pub fn setContainerRect(self: *ScrollAreaWidget, rect: dvui.Rect) void {
    // only storing the topleft inset, assuming only scrollbars on bottom/right
    dvui.dataSet(null, self.hbox.data().id, "_linsets", dvui.Size{ .w = rect.x, .h = rect.y });
}