lib.dhover×50all
module 
(module) lib
lib
;
/// Sentinel type — private to this module, impossible to name or construct /// from the outside. private struct
(struct) lib.NamedOnly

Sentinel type — private to this module, impossible to name or construct from the outside.

NamedOnly
{}
struct
(struct) lib.Rect
Rect
{ int
(field) int lib.Rect.x
x
,
(field) int lib.Rect.y
y
,
(field) int lib.Rect.width
width
,
(field) int lib.Rect.height
height
;
} /// Free function with sentinel — forces named args from other modules.
(struct) lib.Rect
Rect
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.NamedOnly

Sentinel type — private to this module, impossible to name or construct from the outside.

NamedOnly
(parameter) lib.NamedOnly _
_
=
(struct) lib.NamedOnly

Sentinel 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 x
x
= 0, int
(parameter) int y
y
= 0, int
(parameter) int width
width
= 0, int
(parameter) int height
height
= 0, int
(parameter) int margin
margin
= 0)
{ return
(struct) lib.Rect
Rect
(
(parameter) int x
x
-
(parameter) int margin
margin
,
(parameter) int y
y
-
(parameter) int margin
margin
,
(parameter) int width
width
+ 2 *
(parameter) int margin
margin
,
(parameter) int height
height
+ 2 *
(parameter) int margin
margin
);
} /// Struct with sentinel field. struct
(struct) lib.RectOpts

Struct with sentinel field.

RectOpts
{ private struct
(struct) lib.RectOpts.NamedOnly
NamedOnly
{}
(struct) lib.RectOpts.NamedOnly
NamedOnly
(field) lib.RectOpts.NamedOnly lib.RectOpts._
_
=
(struct) lib.RectOpts.NamedOnly
NamedOnly
.
(constant) lib.RectOpts.NamedOnly lib.RectOpts.NamedOnly.init = NamedOnly()
init
;
int
(field) int lib.RectOpts.x
x
,
(field) int lib.RectOpts.y
y
,
(field) int lib.RectOpts.width
width
,
(field) int lib.RectOpts.height
height
;
}
(struct) lib.Rect
Rect
lib.Rect lib.makeRect(lib.RectOpts o)
makeRect
(
(struct) lib.RectOpts

Struct with sentinel field.

RectOpts
(parameter) lib.RectOpts o
o
)
{ return
(struct) lib.Rect
Rect
(
(parameter) lib.RectOpts o
o
.
(field) int lib.RectOpts.x
x
,
(parameter) lib.RectOpts o
o
.
(field) int lib.RectOpts.y
y
,
(parameter) lib.RectOpts o
o
.
(field) int lib.RectOpts.width
width
,
(parameter) lib.RectOpts o
o
.
(field) int lib.RectOpts.height
height
);
}