Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::RoundedRect Struct Reference

#include <Ultralight/Geometry.h>

Details

Rounded Rectangle Helper.

Public Member Functions

void SetEmpty ()
 
bool IsRounded () const
 
float GetSignedDistance (const Point &p) const
 
bool Intersect (const RoundedRect &other, RoundedRect &result) const
 
void SnapToPixels ()
 
Rect CalculateInterior () const
 

Public Attributes

Rect rect
 
float radii_x [4]
 
float radii_y [4]
 

Member Function Documentation

◆ CalculateInterior()

Rect ultralight::RoundedRect::CalculateInterior ( ) const

◆ GetSignedDistance()

float ultralight::RoundedRect::GetSignedDistance ( const Point p) const

◆ Intersect()

bool ultralight::RoundedRect::Intersect ( const RoundedRect other,
RoundedRect result 
) const

◆ IsRounded()

bool ultralight::RoundedRect::IsRounded ( ) const

◆ SetEmpty()

void ultralight::RoundedRect::SetEmpty ( )

◆ SnapToPixels()

void ultralight::RoundedRect::SnapToPixels ( )

Member Data Documentation

◆ radii_x

float ultralight::RoundedRect::radii_x[4]

◆ radii_y

float ultralight::RoundedRect::radii_y[4]

◆ rect

Rect ultralight::RoundedRect::rect

The documentation for this struct was generated from the following file: