Pepper_47_C++_interfaces
Classes | Namespaces | Functions
rect.h File Reference
#include "ppapi/c/pp_rect.h"
#include "ppapi/cpp/point.h"
#include "ppapi/cpp/size.h"
Include dependency graph for rect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pp::Rect
 
class  pp::FloatRect
 

Namespaces

 pp
 The C++ interface to the Pepper API.
 

Functions

bool operator== (const pp::Rect &lhs, const pp::Rect &rhs)
 
bool operator!= (const pp::Rect &lhs, const pp::Rect &rhs)
 
bool operator== (const pp::FloatRect &lhs, const pp::FloatRect &rhs)
 
bool operator!= (const pp::FloatRect &lhs, const pp::FloatRect &rhs)
 

Detailed Description

This file defines the APIs for creating a 2 dimensional rectangle.

Definition in file rect.h.

Function Documentation

bool operator!= ( const pp::Rect lhs,
const pp::Rect rhs 
)
inline

This function determines whether two Rects are not equal.

Parameters
[in]lhsThe Rect on the left-hand side of the equation.
[in]rhsThe Rect on the right-hand side of the equation.
Returns
true if the given Rects are equal, otherwise false.

Definition at line 808 of file rect.h.

bool operator!= ( const pp::FloatRect lhs,
const pp::FloatRect rhs 
)
inline

This function determines whether two Rects are not equal.

Parameters
[in]lhsThe FloatRect on the left-hand side of the equation.
[in]rhsThe FloatRect on the right-hand side of the equation.
Returns
true if the given Rects are equal, otherwise false.

Definition at line 836 of file rect.h.

bool operator== ( const pp::Rect lhs,
const pp::Rect rhs 
)
inline

This function determines whether the x, y, width, and height values of two rectangles and are equal.

Parameters
[in]lhsThe Rect on the left-hand side of the equation.
[in]rhsThe Rect on the right-hand side of the equation.
Returns
true if they are equal, false if unequal.

Definition at line 794 of file rect.h.

References pp::Rect::height(), pp::Rect::width(), pp::Rect::x(), and pp::Rect::y().

bool operator== ( const pp::FloatRect lhs,
const pp::FloatRect rhs 
)
inline

This function determines whether the x, y, width, and height values of two rectangles and are equal.

Parameters
[in]lhsThe FloatRect on the left-hand side of the equation.
[in]rhsThe FloatRect on the right-hand side of the equation.
Returns
true if they are equal, false if unequal.

Definition at line 821 of file rect.h.

References pp::FloatRect::height(), pp::FloatRect::width(), pp::FloatRect::x(), and pp::FloatRect::y().