DVUI

label

Format and display a label.

See labelEx and labelNoFmt.

Only valid between Window.beginand Window.end.

Parameters

#
src:std.builtin.SourceLocation
std.builtin.SourceLocation
fmt:[]const u8
[]const u8
args:anytype
anytype
opts:Options
Options

Source

Implementation

#
pub fn label(src: std.builtin.SourceLocation, comptime fmt: []const u8, args: anytype, opts: Options) void {
    var lw: LabelWidget = undefined;
    lw.init(src, fmt, args, .{}, opts);
    lw.draw();
    lw.deinit();
}