Public Member Functions | Public Attributes | List of all members
pqPythonTextHistoryEntry Struct Reference

#include <pqPythonUndoCommand.h>

Public Member Functions

 pqPythonTextHistoryEntry ()=default
 
 pqPythonTextHistoryEntry (const QString &txt, const std::int32_t cursorPos)
 
bool isEmpty () const noexcept
 Returns true is the entry is empty. More...
 

Public Attributes

QString content = ""
 The raw text. More...
 
std::int32_t cursorPosition = -1
 The absolute cursor position within pqPythonUndoCommand::Text. More...
 

Detailed Description

Definition at line 27 of file pqPythonUndoCommand.h.

Constructor & Destructor Documentation

◆ pqPythonTextHistoryEntry() [1/2]

pqPythonTextHistoryEntry::pqPythonTextHistoryEntry ( )
default

◆ pqPythonTextHistoryEntry() [2/2]

pqPythonTextHistoryEntry::pqPythonTextHistoryEntry ( const QString &  txt,
const std::int32_t  cursorPos 
)
inline

Definition at line 31 of file pqPythonUndoCommand.h.

Member Function Documentation

◆ isEmpty()

bool pqPythonTextHistoryEntry::isEmpty ( ) const
inlinenoexcept

Returns true is the entry is empty.

Definition at line 50 of file pqPythonUndoCommand.h.

Member Data Documentation

◆ content

QString pqPythonTextHistoryEntry::content = ""

The raw text.

Definition at line 40 of file pqPythonUndoCommand.h.

◆ cursorPosition

std::int32_t pqPythonTextHistoryEntry::cursorPosition = -1

The absolute cursor position within pqPythonUndoCommand::Text.

Definition at line 45 of file pqPythonUndoCommand.h.


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