Chromium Embedded Framework (CEF)  128.4.2+g5c235a2+chromium-128.0.6613.18
CefRect Class Reference

Class representing a rectangle. More...

#include "include/internal/cef_types_wrappers.h"

Inheritance diagram for CefRect:
cef_rect_t

Public Member Functions

 CefRect ()
 
 CefRect (const cef_rect_t &r)
 
 CefRect (int x, int y, int width, int height)
 
bool IsEmpty () const
 
void Set (int x_val, int y_val, int width_val, int height_val)
 
bool Contains (int point_x, int point_y) const
 Returns true if the point identified by point_x and point_y falls inside this rectangle. More...
 
bool Contains (const CefPoint &point) const
 

Additional Inherited Members

- Public Attributes inherited from cef_rect_t
int x
 
int y
 
int width
 
int height
 

Detailed Description

Class representing a rectangle.

Constructor & Destructor Documentation

◆ CefRect() [1/3]

CefRect::CefRect ( )
inline

◆ CefRect() [2/3]

CefRect::CefRect ( const cef_rect_t r)
inline

◆ CefRect() [3/3]

CefRect::CefRect ( int  x,
int  y,
int  width,
int  height 
)
inline

Member Function Documentation

◆ Contains() [1/2]

bool CefRect::Contains ( const CefPoint point) const
inline

◆ Contains() [2/2]

bool CefRect::Contains ( int  point_x,
int  point_y 
) const
inline

Returns true if the point identified by point_x and point_y falls inside this rectangle.

The point (x, y) is inside the rectangle, but the point (x + width, y + height) is not.

◆ IsEmpty()

bool CefRect::IsEmpty ( ) const
inline

◆ Set()

void CefRect::Set ( int  x_val,
int  y_val,
int  width_val,
int  height_val 
)
inline

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