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

applyAll
Subject applyAll(Subject subject, Parameters parameters)

Modify the subject by passing it to the apply method of each of the parameters.

area
float area(Rectangle r)

Get the area of a rectangle.

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.

intersect
Rectangle intersect(Rectangle one, Rectangle two)

Intersect two rectangles

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.

toSizeVector2
Vector2 toSizeVector2(string source)

Load a two dimensional vector from a string.

viewportTransform
Vector2 viewportTransform(Vector2 point, Rectangle source, Rectangle destination)

Create a point that is in the same position relative to the destination rectangle, as is the input point relative to the source 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