Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The RectI class represents a 2D rectangular area using int
precision.
More...
#include <Rect.hpp>
Public Member Functions | |
RectI () | |
RectI (int x, int y, int width, int height) | |
RectI (const Rect< int > &other) | |
RectI (const RectI &other) | |
RectI & | operator= (const Rect< int > &other) |
RectI & | operator= (const RectI &other) |
int | top () const |
int | right () const |
ivec2 | bottomLeft () const |
ivec2 | topRight () const |
The RectI class represents a 2D rectangular area using int
precision.
This class is mainly used to manipulate rectangles in pixel coordinates (as opposed to real coordinates). The RectI and RectF differ in the following way:
Definition at line 163 of file Rect.hpp.
vl::RectI::RectI | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) | [inline] |
Definition at line 167 of file Rect.hpp.
References vl::Rect< int >::height(), vl::Rect< int >::mHeight, vl::Rect< int >::mWidth, vl::Rect< int >::mX, vl::Rect< int >::mY, vl::Rect< int >::width(), vl::Rect< int >::x(), and vl::Rect< int >::y().
Definition at line 171 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< int >::mHeight, vl::Rect< int >::mWidth, vl::Rect< int >::mX, vl::Rect< int >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
Definition at line 172 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< int >::mHeight, vl::Rect< int >::mWidth, vl::Rect< int >::mX, vl::Rect< int >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
int vl::RectI::top | ( | ) | const [inline] |
Reimplemented from vl::Rect< int >.
Definition at line 173 of file Rect.hpp.
References vl::Rect< int >::mHeight, and vl::Rect< int >::mY.
Referenced by vl::Image::copySubImage(), and topRight().
int vl::RectI::right | ( | ) | const [inline] |
Reimplemented from vl::Rect< int >.
Definition at line 174 of file Rect.hpp.
References vl::Rect< int >::mWidth, and vl::Rect< int >::mX.
Referenced by vl::Image::copySubImage(), and topRight().
ivec2 vl::RectI::bottomLeft | ( | ) | const [inline] |
Definition at line 175 of file Rect.hpp.
References vl::Rect< int >::bottom(), and vl::Rect< int >::left().
ivec2 vl::RectI::topRight | ( | ) | const [inline] |