TokenizedTextViewHistoryEntry Class Reference

Public Member Functions

size_t getTopLine () const
 
size_t getCursorLine () const
 
const HighlightTokenStategetHighlightTokenState () const
 
void setTopLine (size_t line)
 
void setCursorLine (size_t line)
 
void setHighlightTokenState (const HighlightTokenState &state)
 
virtual Json::Value serialize () const override
 Serialize to json representation. More...
 
virtual bool deserialize (const Json::Value &value) override
 Deserialize from json representation. More...
 
- Public Member Functions inherited from HistoryEntry
virtual ~HistoryEntry ()
 
QString getViewType () const
 
void setViewType (const QString &type)
 
virtual Json::Value serialize () const
 Serialize to json representation. More...
 
virtual bool deserialize (const Json::Value &value)
 Deserialize from json representation. More...
 
- Public Member Functions inherited from BinaryNinja::RefCountObject
 RefCountObject ()
 
virtual ~RefCountObject ()
 
RefCountObjectGetObject ()
 
void AddRef ()
 
void Release ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryNinja::RefCountObject
static RefCountObjectGetObject (RefCountObject *obj)
 
- Public Attributes inherited from BinaryNinja::RefCountObject
std::atomic< int > m_refs
 

Member Function Documentation

◆ deserialize()

virtual bool TokenizedTextViewHistoryEntry::deserialize ( const Json::Value &  value)
overridevirtual

Deserialize from json representation.

This method should clear any previously entered data on the HistoryEntry as if it were newly created.

Parameters
valueJson representation of history entry. In the Python api, this will be a dict.
Returns
If deserialization was successful

Reimplemented from HistoryEntry.

◆ getCursorLine()

size_t TokenizedTextViewHistoryEntry::getCursorLine ( ) const
inline

◆ getHighlightTokenState()

const HighlightTokenState & TokenizedTextViewHistoryEntry::getHighlightTokenState ( ) const
inline

◆ getTopLine()

size_t TokenizedTextViewHistoryEntry::getTopLine ( ) const
inline

◆ serialize()

virtual Json::Value TokenizedTextViewHistoryEntry::serialize ( ) const
overridevirtual

Serialize to json representation.

Returns
Json representation of history entry. In the Python api, this must be a dict.

Reimplemented from HistoryEntry.

◆ setCursorLine()

void TokenizedTextViewHistoryEntry::setCursorLine ( size_t  line)
inline

◆ setHighlightTokenState()

void TokenizedTextViewHistoryEntry::setHighlightTokenState ( const HighlightTokenState state)
inline

◆ setTopLine()

void TokenizedTextViewHistoryEntry::setTopLine ( size_t  line)
inline

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