Elaztek Developer Hub
Blamite Game Engine - Keystone  00402.09.29.23.0627.blamite
A library that enables the use of Qt in Blamite's editing tools.
QHexRenderer Class Reference

#include <qhexrenderer.h>

+ Inheritance diagram for QHexRenderer:
+ Collaboration diagram for QHexRenderer:

Public Types

enum  {
  HeaderArea, AddressArea, HexArea, AsciiArea,
  ExtraArea
}
 

Public Member Functions

 QHexRenderer (QHexDocument *document, const QFontMetricsF &fontmetrics, QObject *parent=nullptr)
 
void renderFrame (QPainter *painter)
 
void render (QPainter *painter, quint64 start, quint64 end, quint64 firstline)
 
void updateMetrics (const QFontMetricsF &fm)
 
void enableCursor (bool b=true)
 
void selectArea (const QPoint &pt)
 
void blinkCursor ()
 
bool hitTest (const QPoint &pt, QHexPosition *position, quint64 firstline) const
 
int hitTestArea (const QPoint &pt) const
 
int selectedArea () const
 
bool editableArea (int area) const
 
quint64 documentLastLine () const
 
int documentLastColumn () const
 
quint64 documentLines () const
 
int documentWidth () const
 
int lineHeight () const
 
QRect getLineRect (quint64 line, quint64 firstline) const
 
int headerLineCount () const
 
int borderSize () const
 
int hexLineWidth () const
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
HeaderArea 
AddressArea 
HexArea 
AsciiArea 
ExtraArea 

Constructor & Destructor Documentation

◆ QHexRenderer()

QHexRenderer::QHexRenderer ( QHexDocument document,
const QFontMetricsF &  fontmetrics,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ blinkCursor()

void QHexRenderer::blinkCursor ( )

◆ borderSize()

int QHexRenderer::borderSize ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ documentLastColumn()

int QHexRenderer::documentLastColumn ( ) const
+ Here is the call graph for this function:

◆ documentLastLine()

quint64 QHexRenderer::documentLastLine ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ documentLines()

quint64 QHexRenderer::documentLines ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ documentWidth()

int QHexRenderer::documentWidth ( ) const

◆ editableArea()

bool QHexRenderer::editableArea ( int  area) const
+ Here is the caller graph for this function:

◆ enableCursor()

void QHexRenderer::enableCursor ( bool  b = true)
+ Here is the caller graph for this function:

◆ getLineRect()

QRect QHexRenderer::getLineRect ( quint64  line,
quint64  firstline 
) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ headerLineCount()

int QHexRenderer::headerLineCount ( ) const
+ Here is the caller graph for this function:

◆ hexLineWidth()

int QHexRenderer::hexLineWidth ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hitTest()

bool QHexRenderer::hitTest ( const QPoint &  pt,
QHexPosition position,
quint64  firstline 
) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hitTestArea()

int QHexRenderer::hitTestArea ( const QPoint &  pt) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lineHeight()

int QHexRenderer::lineHeight ( ) const
+ Here is the caller graph for this function:

◆ render()

void QHexRenderer::render ( QPainter *  painter,
quint64  start,
quint64  end,
quint64  firstline 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderFrame()

void QHexRenderer::renderFrame ( QPainter *  painter)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectArea()

void QHexRenderer::selectArea ( const QPoint &  pt)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectedArea()

int QHexRenderer::selectedArea ( ) const
+ Here is the caller graph for this function:

◆ updateMetrics()

void QHexRenderer::updateMetrics ( const QFontMetricsF &  fm)
+ Here is the caller graph for this function:

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