webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
webrtc::DesktopRect Class Reference

#include <desktop_geometry.h>

Public Member Functions

 DesktopRect ()
 
int32_t left () const
 
int32_t top () const
 
int32_t right () const
 
int32_t bottom () const
 
int32_t width () const
 
int32_t height () const
 
DesktopVector top_left () const
 
DesktopSize size () const
 
bool is_empty () const
 
bool equals (const DesktopRect &other) const
 
bool Contains (const DesktopVector &point) const
 
bool ContainsRect (const DesktopRect &rect) const
 
void IntersectWith (const DesktopRect &rect)
 
void Translate (int32_t dx, int32_t dy)
 
void Translate (DesktopVector d)
 
void Extend (int32_t left_offset, int32_t top_offset, int32_t right_offset, int32_t bottom_offset)
 
 DesktopRect ()
 
int32_t left () const
 
int32_t top () const
 
int32_t right () const
 
int32_t bottom () const
 
int32_t width () const
 
int32_t height () const
 
DesktopVector top_left () const
 
DesktopSize size () const
 
bool is_empty () const
 
bool equals (const DesktopRect &other) const
 
bool Contains (const DesktopVector &point) const
 
bool ContainsRect (const DesktopRect &rect) const
 
void IntersectWith (const DesktopRect &rect)
 
void Translate (int32_t dx, int32_t dy)
 
void Translate (DesktopVector d)
 
void Extend (int32_t left_offset, int32_t top_offset, int32_t right_offset, int32_t bottom_offset)
 

Static Public Member Functions

static DesktopRect MakeSize (const DesktopSize &size)
 
static DesktopRect MakeWH (int32_t width, int32_t height)
 
static DesktopRect MakeXYWH (int32_t x, int32_t y, int32_t width, int32_t height)
 
static DesktopRect MakeLTRB (int32_t left, int32_t top, int32_t right, int32_t bottom)
 
static DesktopRect MakeOriginSize (const DesktopVector &origin, const DesktopSize &size)
 
static DesktopRect MakeSize (const DesktopSize &size)
 
static DesktopRect MakeWH (int32_t width, int32_t height)
 
static DesktopRect MakeXYWH (int32_t x, int32_t y, int32_t width, int32_t height)
 
static DesktopRect MakeLTRB (int32_t left, int32_t top, int32_t right, int32_t bottom)
 
static DesktopRect MakeOriginSize (const DesktopVector &origin, const DesktopSize &size)
 

Constructor & Destructor Documentation

◆ DesktopRect() [1/2]

webrtc::DesktopRect::DesktopRect ( )
inline

◆ DesktopRect() [2/2]

webrtc::DesktopRect::DesktopRect ( )
inline

Member Function Documentation

◆ bottom() [1/2]

int32_t webrtc::DesktopRect::bottom ( ) const
inline

◆ bottom() [2/2]

int32_t webrtc::DesktopRect::bottom ( ) const
inline

◆ Contains() [1/2]

bool webrtc::DesktopRect::Contains ( const DesktopVector point) const

◆ Contains() [2/2]

bool webrtc::DesktopRect::Contains ( const DesktopVector point) const

◆ ContainsRect() [1/2]

bool webrtc::DesktopRect::ContainsRect ( const DesktopRect rect) const

◆ ContainsRect() [2/2]

bool webrtc::DesktopRect::ContainsRect ( const DesktopRect rect) const

◆ equals() [1/2]

bool webrtc::DesktopRect::equals ( const DesktopRect other) const
inline

◆ equals() [2/2]

bool webrtc::DesktopRect::equals ( const DesktopRect other) const
inline

◆ Extend() [1/2]

void webrtc::DesktopRect::Extend ( int32_t  left_offset,
int32_t  top_offset,
int32_t  right_offset,
int32_t  bottom_offset 
)

◆ Extend() [2/2]

void webrtc::DesktopRect::Extend ( int32_t  left_offset,
int32_t  top_offset,
int32_t  right_offset,
int32_t  bottom_offset 
)

◆ height() [1/2]

int32_t webrtc::DesktopRect::height ( ) const
inline

◆ height() [2/2]

int32_t webrtc::DesktopRect::height ( ) const
inline

◆ IntersectWith() [1/2]

void webrtc::DesktopRect::IntersectWith ( const DesktopRect rect)

◆ IntersectWith() [2/2]

void webrtc::DesktopRect::IntersectWith ( const DesktopRect rect)

◆ is_empty() [1/2]

bool webrtc::DesktopRect::is_empty ( ) const
inline

◆ is_empty() [2/2]

bool webrtc::DesktopRect::is_empty ( ) const
inline

◆ left() [1/2]

int32_t webrtc::DesktopRect::left ( ) const
inline

◆ left() [2/2]

int32_t webrtc::DesktopRect::left ( ) const
inline

◆ MakeLTRB() [1/2]

static DesktopRect webrtc::DesktopRect::MakeLTRB ( int32_t  left,
int32_t  top,
int32_t  right,
int32_t  bottom 
)
inlinestatic

◆ MakeLTRB() [2/2]

static DesktopRect webrtc::DesktopRect::MakeLTRB ( int32_t  left,
int32_t  top,
int32_t  right,
int32_t  bottom 
)
inlinestatic

◆ MakeOriginSize() [1/2]

static DesktopRect webrtc::DesktopRect::MakeOriginSize ( const DesktopVector origin,
const DesktopSize size 
)
inlinestatic

◆ MakeOriginSize() [2/2]

static DesktopRect webrtc::DesktopRect::MakeOriginSize ( const DesktopVector origin,
const DesktopSize size 
)
inlinestatic

◆ MakeSize() [1/2]

static DesktopRect webrtc::DesktopRect::MakeSize ( const DesktopSize size)
inlinestatic

◆ MakeSize() [2/2]

static DesktopRect webrtc::DesktopRect::MakeSize ( const DesktopSize size)
inlinestatic

◆ MakeWH() [1/2]

static DesktopRect webrtc::DesktopRect::MakeWH ( int32_t  width,
int32_t  height 
)
inlinestatic

◆ MakeWH() [2/2]

static DesktopRect webrtc::DesktopRect::MakeWH ( int32_t  width,
int32_t  height 
)
inlinestatic

◆ MakeXYWH() [1/2]

static DesktopRect webrtc::DesktopRect::MakeXYWH ( int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height 
)
inlinestatic

◆ MakeXYWH() [2/2]

static DesktopRect webrtc::DesktopRect::MakeXYWH ( int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height 
)
inlinestatic

◆ right() [1/2]

int32_t webrtc::DesktopRect::right ( ) const
inline

◆ right() [2/2]

int32_t webrtc::DesktopRect::right ( ) const
inline

◆ size() [1/2]

DesktopSize webrtc::DesktopRect::size ( ) const
inline

◆ size() [2/2]

DesktopSize webrtc::DesktopRect::size ( ) const
inline

◆ top() [1/2]

int32_t webrtc::DesktopRect::top ( ) const
inline

◆ top() [2/2]

int32_t webrtc::DesktopRect::top ( ) const
inline

◆ top_left() [1/2]

DesktopVector webrtc::DesktopRect::top_left ( ) const
inline

◆ top_left() [2/2]

DesktopVector webrtc::DesktopRect::top_left ( ) const
inline

◆ Translate() [1/4]

void webrtc::DesktopRect::Translate ( int32_t  dx,
int32_t  dy 
)

◆ Translate() [2/4]

void webrtc::DesktopRect::Translate ( int32_t  dx,
int32_t  dy 
)

◆ Translate() [3/4]

void webrtc::DesktopRect::Translate ( DesktopVector  d)
inline

◆ Translate() [4/4]

void webrtc::DesktopRect::Translate ( DesktopVector  d)
inline

◆ width() [1/2]

int32_t webrtc::DesktopRect::width ( ) const
inline

◆ width() [2/2]

int32_t webrtc::DesktopRect::width ( ) const
inline

The documentation for this class was generated from the following files: