struct RoundedRectSpec

Defined at line 18 of file ../../src/ui/lib/escher/shape/rounded_rect.h

Specify a rounded-rect that is centered at (0,0).

Public Members

float width
float height
float top_left_radius
float top_right_radius
float bottom_right_radius
float bottom_left_radius

Public Methods

void RoundedRectSpec (float width, float height, float top_left_radius, float top_right_radius, float bottom_right_radius, float bottom_left_radius)

Note: radii are in clockwise order, starting from top-left.

Defined at line 51 of file ../../src/ui/lib/escher/shape/rounded_rect.cc

void RoundedRectSpec ()

Set all values to 0.

Defined at line 61 of file ../../src/ui/lib/escher/shape/rounded_rect.cc

bool ContainsPoint (vec2 point)

Defined at line 304 of file ../../src/ui/lib/escher/shape/rounded_rect.cc

RoundedRectSpec operator* (float t)

Make RoundedRectSpec lerpable.

Defined at line 373 of file ../../src/ui/lib/escher/shape/rounded_rect.cc

RoundedRectSpec operator+ (const RoundedRectSpec & other)

Defined at line 378 of file ../../src/ui/lib/escher/shape/rounded_rect.cc