module (module) liblib;
/// Sentinel type — private to this module, impossible to name or construct
/// from the outside.
private struct (struct) lib.NamedOnlySentinel type — private to this module, impossible to name or construct
from the outside.
NamedOnly {}
struct (struct) lib.RectRect
{
int (field) int lib.Rect.xx, (field) int lib.Rect.yy, (field) int lib.Rect.widthwidth, (field) int lib.Rect.heightheight;
}
/// Free function with sentinel — forces named args from other modules.
(struct) lib.RectRect lib.Rect lib.inflateRect(lib.NamedOnly _ = NamedOnly(), int x = 0, int y = 0, int width = 0, int height = 0, int margin = 0)Free function with sentinel — forces named args from other modules.
inflateRect((struct) lib.NamedOnlySentinel type — private to this module, impossible to name or construct
from the outside.
NamedOnly (parameter) lib.NamedOnly __ = (struct) lib.NamedOnlySentinel type — private to this module, impossible to name or construct
from the outside.
NamedOnly.(constant) lib.NamedOnly lib.NamedOnly.init = NamedOnly()init, int (parameter) int xx = 0, int (parameter) int yy = 0, int (parameter) int widthwidth = 0, int (parameter) int heightheight = 0, int (parameter) int marginmargin = 0)
{
return (struct) lib.RectRect((parameter) int xx - (parameter) int marginmargin, (parameter) int yy - (parameter) int marginmargin, (parameter) int widthwidth + 2 * (parameter) int marginmargin, (parameter) int heightheight + 2 * (parameter) int marginmargin);
}
/// Struct with sentinel field.
struct (struct) lib.RectOptsStruct with sentinel field.
RectOpts
{
private struct (struct) lib.RectOpts.NamedOnlyNamedOnly {}
(struct) lib.RectOpts.NamedOnlyNamedOnly (field) lib.RectOpts.NamedOnly lib.RectOpts.__ = (struct) lib.RectOpts.NamedOnlyNamedOnly.(constant) lib.RectOpts.NamedOnly lib.RectOpts.NamedOnly.init = NamedOnly()init;
int (field) int lib.RectOpts.xx, (field) int lib.RectOpts.yy, (field) int lib.RectOpts.widthwidth, (field) int lib.RectOpts.heightheight;
}
(struct) lib.RectRect lib.Rect lib.makeRect(lib.RectOpts o)makeRect((struct) lib.RectOptsStruct with sentinel field.
RectOpts (parameter) lib.RectOpts oo)
{
return (struct) lib.RectRect((parameter) lib.RectOpts oo.(field) int lib.RectOpts.xx, (parameter) lib.RectOpts oo.(field) int lib.RectOpts.yy, (parameter) lib.RectOpts oo.(field) int lib.RectOpts.widthwidth, (parameter) lib.RectOpts oo.(field) int lib.RectOpts.heightheight);
}