Loading...
Searching...
No Matches
RoundedRect

#include <Ultralight/Geometry.h>

Overview

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 CalculateInterior ( ) const

◆ GetSignedDistance()

float GetSignedDistance ( const Point & p) const

◆ Intersect()

bool Intersect ( const RoundedRect & other,
RoundedRect & result ) const

◆ IsRounded()

bool IsRounded ( ) const

◆ SetEmpty()

void SetEmpty ( )

◆ SnapToPixels()

void SnapToPixels ( )

Member Data Documentation

◆ radii_x

float radii_x[4]

◆ radii_y

float radii_y[4]

◆ rect

Rect rect

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