Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions

vl::RectI Class Reference

The RectI class represents a 2D rectangular area using int precision. More...

#include <Rect.hpp>

Inheritance diagram for vl::RectI:
vl::Rect< int >

List of all members.

Public Member Functions

 RectI ()
 RectI (int x, int y, int width, int height)
 RectI (const Rect< int > &other)
 RectI (const RectI &other)
RectIoperator= (const Rect< int > &other)
RectIoperator= (const RectI &other)
int top () const
int right () const
ivec2 bottomLeft () const
ivec2 topRight () const

Detailed Description

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.


Constructor & Destructor Documentation

vl::RectI::RectI (  ) [inline]

Definition at line 166 of file Rect.hpp.

vl::RectI::RectI ( int  x,
int  y,
int  width,
int  height 
) [inline]
vl::RectI::RectI ( const Rect< int > &  other ) [inline]

Definition at line 168 of file Rect.hpp.

vl::RectI::RectI ( const RectI other ) [inline]

Definition at line 169 of file Rect.hpp.


Member Function Documentation

RectI& vl::RectI::operator= ( const Rect< int > &  other ) [inline]
RectI& vl::RectI::operator= ( const RectI other ) [inline]
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]

Definition at line 176 of file Rect.hpp.

References right(), and top().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:07.
Permission is granted to use this page to write and publish articles regarding Visualization Library.