NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CGlRect< T > Class Template Reference

Search Toolkit Book for CGlRect

CGlRect reprsents rectangle in the coordinate system with origin located in the left bottom corner. More...

#include <gui/opengl/glrect.hpp>

+ Inheritance diagram for CGlRect< T >:
+ Collaboration diagram for CGlRect< T >:

Public Member Functions

 CGlRect ()
 
 CGlRect (T x, T y)
 
 CGlRect (T left, T bottom, T right, T top)
 
void Init ()
 
void Init (T x, T y)
 
void Init (T left, T bottom, T right, T top)
 
T Left () const
 
T Bottom () const
 
T Right () const
 
T Top () const
 
T Width () const
 
T Height () const
 
CGlPoint< TCenterPoint () const
 
CGlPoint< TGetCorner (int idx)
 
void SetLeft (T left)
 
void SetBottom (T bottom)
 
void SetRight (T right)
 
void SetTop (T top)
 
void SetHorz (T left, T right)
 
void SetVert (T bottom, T top)
 
void SetSize (T width, T height)
 
void MoveLeft (T shift)
 
void MoveRight (T shift)
 
void MoveBottom (T shift)
 
void MoveTop (T shift)
 
bool operator== (const CGlRect< T > &rc) const
 
bool operator!= (const CGlRect< T > &rc) const
 
bool IsEmpty () const
 
bool PtInRect (T x, T y) const
 
bool PtInRect (const CGlPoint< T > &pt) const
 
bool Intersects (const CGlRect &R) const
 
void Inflate (T d_x, T d_y)
 
void Offset (T d_x, T d_y)
 
CGlRectIntersectWith (const CGlRect &r)
 
CGlRectCombineWith (const CGlRect &r)
 
string ToString () const
 
int Width () const
 
int Height () const
 
void SetSize (int width, int height)
 
string ToString () const
 
string ToString () const
 

Private Attributes

T m_Left
 
T m_Bottom
 
T m_Right
 
T m_Top
 

Detailed Description

template<class T>
class CGlRect< T >

CGlRect reprsents rectangle in the coordinate system with origin located in the left bottom corner.

Definition at line 51 of file glrect.hpp.

Member Function Documentation

◆ Height()

int CGlRect< int >::Height ( ) const
inline

Definition at line 262 of file glrect.hpp.

◆ SetSize()

void CGlRect< int >::SetSize ( int  width,
int  height 
)
inline

Definition at line 268 of file glrect.hpp.

◆ ToString() [1/2]

string CGlRect< int >::ToString ( void  ) const
inline

Definition at line 275 of file glrect.hpp.

◆ ToString() [2/2]

string CGlRect< double >::ToString ( void  ) const
inline

Definition at line 285 of file glrect.hpp.

◆ Width()

int CGlRect< int >::Width ( void  ) const
inline

Definition at line 257 of file glrect.hpp.


The documentation for this class was generated from the following file:
Modified on Sat Feb 24 07:46:59 2024 by modify_doxy.py rev. 669887