fluid.utils

Members

Aliases

ComponentBuilder
deprecated alias ComponentBuilder = NodeBuilder
Undocumented in source.
SimpleConstructor
alias SimpleConstructor = NodeBuilder
Undocumented in source.
componentBuilder
deprecated alias componentBuilder = nodeBuilder
Undocumented in source.
isComponentBuilder
deprecated alias isComponentBuilder = isNodeBuilder
Undocumented in source.
isSimpleConstructor
alias isSimpleConstructor = isNodeBuilder
Undocumented in source.
nodeBuilder
alias nodeBuilder(alias T, Parent, alias fun = "a") = nodeBuilder!(T!Parent, fun)

Create a simple template node constructor for declarative usage.

simpleConstructor
alias simpleConstructor = nodeBuilder
Undocumented in source.

Enums

isNodeBuilder
eponymoustemplate isNodeBuilder(T)
Undocumented in source.
nodeBuilder
eponymoustemplate nodeBuilder(T, alias fun = "a")

Create a component builder for declarative usage.

Functions

center
Vector2 center(Rectangle r)

Get the center of a rectangle.

contains
bool contains(Rectangle rectangle, Vector2 point)

Check if the rectangle contains a point.

distance
float distance(Vector2 a, Vector2 b)

Get distance between two vectors.

distance2
float distance2(Vector2 a, Vector2 b)

Get distance between two vectors, squared.

end
Vector2 end(Rectangle r)

Get the bottom-right corner of a rectangle.

openURL
void openURL(const(char)[] url)

Open given URL in a web browser.

overlap
bool overlap(Rectangle a, Rectangle b)

Check if the two rectangles overlap.

pt
float pt(float points)

Convert points to pixels.

pxToPt
float pxToPt(float px)

Convert pixels to points.

size
Vector2 size(Rectangle r)

Get the size of a rectangle.

start
Vector2 start(Rectangle r)

Get the top-left corner of a rectangle.

Structs

NodeBuilder
struct NodeBuilder(T, alias fun = "a")
Undocumented in source.

Templates

StaticFieldNames
template StaticFieldNames(T)

Get names of static fields in the given object.

nodeBuilder
template nodeBuilder(alias T, alias Parent, alias fun = "a")

Create a simple template node constructor for declarative usage.

Meta