NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
ViewCursor Struct Reference

Cursor, which is used in the terminal. The TextManager is able to convert this cursor into a LogicalCursor. More...

#include <TextManager.h>

Collaboration diagram for ViewCursor:

Public Member Functions

 ViewCursor ()
 
 ViewCursor (size_t _x, size_t _y)
 
void move (size_t _x, size_t _y)
 
void advance ()
 
bool revert ()
 
bool operator! () const
 
 operator bool () const
 
ViewCursoroperator++ (int)
 
bool operator-- (int)
 
bool operator== (const ViewCursor &cursor) const
 
bool operator< (const ViewCursor &cursor) const
 
bool operator<= (const ViewCursor &cursor) const
 
bool operator> (const ViewCursor &cursor) const
 
bool operator>= (const ViewCursor &cursor) const
 
bool operator!= (const ViewCursor &cursor) const
 

Public Attributes

size_t x
 
size_t y
 
bool isValid
 

Detailed Description

Cursor, which is used in the terminal. The TextManager is able to convert this cursor into a LogicalCursor.

Definition at line 123 of file TextManager.h.

Constructor & Destructor Documentation

◆ ViewCursor() [1/2]

ViewCursor::ViewCursor ( )
inline

Definition at line 129 of file TextManager.h.

◆ ViewCursor() [2/2]

ViewCursor::ViewCursor ( size_t  _x,
size_t  _y 
)
inline

Definition at line 130 of file TextManager.h.

Member Function Documentation

◆ advance()

void ViewCursor::advance ( )
inline

Definition at line 136 of file TextManager.h.

References x.

Referenced by operator++().

◆ move()

void ViewCursor::move ( size_t  _x,
size_t  _y 
)
inline

Definition at line 131 of file TextManager.h.

References x, and y.

Referenced by GenericTerminal::move_cursor().

◆ operator bool()

ViewCursor::operator bool ( ) const
inline

Definition at line 151 of file TextManager.h.

References isValid.

◆ operator!()

bool ViewCursor::operator! ( ) const
inline

Definition at line 147 of file TextManager.h.

References isValid.

◆ operator!=()

bool ViewCursor::operator!= ( const ViewCursor cursor) const
inline

Definition at line 184 of file TextManager.h.

References operator==().

Here is the call graph for this function:

◆ operator++()

ViewCursor & ViewCursor::operator++ ( int  )
inline

Definition at line 155 of file TextManager.h.

References advance().

Here is the call graph for this function:

◆ operator--()

bool ViewCursor::operator-- ( int  )
inline

Definition at line 160 of file TextManager.h.

References revert().

Here is the call graph for this function:

◆ operator<()

bool ViewCursor::operator< ( const ViewCursor cursor) const
inline

Definition at line 168 of file TextManager.h.

References isValid, x, and y.

Referenced by operator<=(), and operator>=().

◆ operator<=()

bool ViewCursor::operator<= ( const ViewCursor cursor) const
inline

Definition at line 172 of file TextManager.h.

References operator<(), and operator==().

Referenced by operator>().

Here is the call graph for this function:

◆ operator==()

bool ViewCursor::operator== ( const ViewCursor cursor) const
inline

Definition at line 164 of file TextManager.h.

References isValid, x, and y.

Referenced by operator!=(), and operator<=().

◆ operator>()

bool ViewCursor::operator> ( const ViewCursor cursor) const
inline

Definition at line 176 of file TextManager.h.

References operator<=().

Here is the call graph for this function:

◆ operator>=()

bool ViewCursor::operator>= ( const ViewCursor cursor) const
inline

Definition at line 180 of file TextManager.h.

References operator<().

Here is the call graph for this function:

◆ revert()

bool ViewCursor::revert ( )
inline

Definition at line 140 of file TextManager.h.

References x.

Referenced by operator--().

Member Data Documentation

◆ isValid

bool ViewCursor::isValid

Definition at line 127 of file TextManager.h.

Referenced by operator bool(), operator!(), operator<(), and operator==().

◆ x

◆ y


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