|
Ultralight C++ API 2.0.0
|
#include <Ultralight/Geometry.h>
Rounded Rectangle Helper.
Public Member Functions | |
| void | SetEmpty () |
| bool | IsRounded () const |
| float | GetSignedDistance (const Point &p) const |
| Negative is inside, positive is outside. | |
| bool | Intersect (const RoundedRect &other, RoundedRect &result) const |
| Returns whether or not intersection is found. | |
| void | SnapToPixels () |
| Rect | CalculateInterior () const |
Public Attributes | |
| Rect | rect |
| float | radii_x [4] |
| float | radii_y [4] |
| Rect CalculateInterior | ( | ) | const |
| float GetSignedDistance | ( | const Point & | p | ) | const |
Negative is inside, positive is outside.
| bool Intersect | ( | const RoundedRect & | other, |
| RoundedRect & | result ) const |
Returns whether or not intersection is found.
Can fail if the resulting geometry is not a rounded rectangle.
| bool IsRounded | ( | ) | const |
| void SetEmpty | ( | ) |
| void SnapToPixels | ( | ) |
| float radii_x[4] |
| float radii_y[4] |
| Rect rect |