NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CTextPosition Class Reference

Search Toolkit Book for CTextPosition

#include <gui/widgets/text_widget/text_position.hpp>

Public Member Functions

 CTextPosition ()
 
 CTextPosition (int row, int col)
 
bool operator< (const CTextPosition &pos) const
 
bool operator> (const CTextPosition &pos) const
 
bool operator== (const CTextPosition &pos) const
 
bool operator!= (const CTextPosition &pos) const
 
bool operator>= (const CTextPosition &pos) const
 
void ShiftRow (int delta)
 
void ShiftCol (int delta)
 
int GetRow () const
 
int GetCol () const
 

Private Attributes

int m_Row
 
int m_Col
 

Detailed Description

Definition at line 40 of file text_position.hpp.

Constructor & Destructor Documentation

◆ CTextPosition() [1/2]

CTextPosition::CTextPosition ( )
inline

Definition at line 43 of file text_position.hpp.

◆ CTextPosition() [2/2]

CTextPosition::CTextPosition ( int  row,
int  col 
)
inline

Definition at line 44 of file text_position.hpp.

Member Function Documentation

◆ GetCol()

int CTextPosition::GetCol ( ) const
inline

◆ GetRow()

int CTextPosition::GetRow ( ) const
inline

◆ operator!=()

bool CTextPosition::operator!= ( const CTextPosition pos) const
inline

Definition at line 51 of file text_position.hpp.

◆ operator<()

bool CTextPosition::operator< ( const CTextPosition pos) const
inline

Definition at line 46 of file text_position.hpp.

References m_Col, and m_Row.

Referenced by operator>=().

◆ operator==()

bool CTextPosition::operator== ( const CTextPosition pos) const
inline

Definition at line 49 of file text_position.hpp.

References m_Col, and m_Row.

◆ operator>()

bool CTextPosition::operator> ( const CTextPosition pos) const
inline

Definition at line 48 of file text_position.hpp.

◆ operator>=()

bool CTextPosition::operator>= ( const CTextPosition pos) const
inline

Definition at line 53 of file text_position.hpp.

References operator<().

◆ ShiftCol()

void CTextPosition::ShiftCol ( int  delta)
inline

◆ ShiftRow()

void CTextPosition::ShiftRow ( int  delta)
inline

Member Data Documentation

◆ m_Col

int CTextPosition::m_Col
private

Definition at line 64 of file text_position.hpp.

Referenced by GetCol(), operator<(), operator==(), and ShiftCol().

◆ m_Row

int CTextPosition::m_Row
private

Definition at line 63 of file text_position.hpp.

Referenced by GetRow(), operator<(), operator==(), and ShiftRow().


The documentation for this class was generated from the following file:
Modified on Wed May 22 11:35:28 2024 by modify_doxy.py rev. 669887