class Rect

Defined at line 126 of file ../../src/media/third_party/chromium_media/geometry.h

Public Methods

void Rect ()

Defined at line 128 of file ../../src/media/third_party/chromium_media/geometry.h

void Rect (int width, int height)

Defined at line 130 of file ../../src/media/third_party/chromium_media/geometry.h

void Rect (int x, int y, int width, int height)

Defined at line 132 of file ../../src/media/third_party/chromium_media/geometry.h

void Rect (const Size & size)

Defined at line 135 of file ../../src/media/third_party/chromium_media/geometry.h

int x ()

Defined at line 137 of file ../../src/media/third_party/chromium_media/geometry.h

void set_x (int x)

Defined at line 138 of file ../../src/media/third_party/chromium_media/geometry.h

int y ()

Defined at line 140 of file ../../src/media/third_party/chromium_media/geometry.h

void set_y (int y)

Defined at line 141 of file ../../src/media/third_party/chromium_media/geometry.h

int width ()

Defined at line 143 of file ../../src/media/third_party/chromium_media/geometry.h

void set_width (int width)

Defined at line 144 of file ../../src/media/third_party/chromium_media/geometry.h

int height ()

Defined at line 146 of file ../../src/media/third_party/chromium_media/geometry.h

void set_height (int height)

Defined at line 147 of file ../../src/media/third_party/chromium_media/geometry.h

safemath::CheckedNumeric<int> right ()

Intentionally diverges from upstream Chromium by returning

CheckedNumeric

<int

> without clamping width() or height() on overflow.

Defined at line 151 of file ../../src/media/third_party/chromium_media/geometry.h

safemath::CheckedNumeric<int> bottom ()

Defined at line 154 of file ../../src/media/third_party/chromium_media/geometry.h

bool IsValid ()

Defined at line 158 of file ../../src/media/third_party/chromium_media/geometry.h

const Point & origin ()

Defined at line 162 of file ../../src/media/third_party/chromium_media/geometry.h

void set_origin (const Point & origin)

Defined at line 163 of file ../../src/media/third_party/chromium_media/geometry.h

const Size & size ()

Defined at line 165 of file ../../src/media/third_party/chromium_media/geometry.h

void set_size (const Size & size)

Defined at line 166 of file ../../src/media/third_party/chromium_media/geometry.h

bool Contains (int point_x, int point_y)

Intentionally diverges from upstream Chromium by asserting IsValid() in

both release and debug builds before comparing boundaries.

Defined at line 173 of file ../../src/media/third_party/chromium_media/geometry.h

bool Contains (const Rect & rect)

Defined at line 179 of file ../../src/media/third_party/chromium_media/geometry.h

std::string ToString ()

Defined at line 187 of file ../../src/media/third_party/chromium_media/geometry.h