close
Parameters
- self:*FloatingWindowWidget
- *FloatingWindowWidget
Source
Implementation
pub fn close(self: *FloatingWindowWidget) void {
if (self.init_options.open_flag) |of| {
of.* = false;
} else {
dvui.log.warn("{s}:{d} FloatingWindowWidget.close() was called but it has no open_flag", .{ self.data().src.file, self.data().src.line });
}
dvui.refresh(null, @src(), self.data().id);
}