Function FRect.unify

Wraps SDL_UnionFRect which creates a dsdl2.FRect (from SDL 2.0.22) of the minimum size to enclose two given dsdl2.FRects

FRect unify (
  FRect other
) @trusted const;

Parameters

NameDescription
other other dsdl2.FRect to unify with the dsdl2.FRect

Returns

dsdl2.FRect of the minimum size to enclose the dsdl2.FRect and other