ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WindowBinFile Class Reference

#include <WindowBinFile.h>

Public Types

enum  FontColor {
  DarkGrey =0, DarkBlue =1, Red =2, Purple =3,
  Green =4, Cyan =5, Yellow =6, White =7
}
 

Public Member Functions

 WindowBinFile ()
 
void clear ()
 
bool open (const QString &path)
 
bool open (const QByteArray &data)
 
bool save (QByteArray &data) const
 
bool isValid () const
 
bool isModified () const
 
bool isJp () const
 
void setModified (bool modified)
 
int charCount () const
 
int tableCount () const
 
const QImage & image (FontColor color)
 
QImage letter (quint8 tableId, quint8 charId, FontColor color)
 
bool setLetter (quint8 tableId, quint8 charId, const QImage &image)
 
uint letterPixelIndex (quint8 tableId, quint8 charId, const QPoint &pos) const
 
bool setLetterPixelIndex (quint8 tableId, quint8 charId, const QPoint &pos, uint pixelIndex)
 
quint8 charWidth (quint8 table, quint8 id) const
 
quint8 charLeftPadding (quint8 table, quint8 id) const
 
void setCharWidth (quint8 table, quint8 id, quint8 width)
 
void setCharLeftPadding (quint8 table, quint8 id, quint8 padding)
 

Static Public Member Functions

static int tableSize (quint8 table)
 

Member Enumeration Documentation

◆ FontColor

Enumerator
DarkGrey 
DarkBlue 
Red 
Purple 
Green 
Cyan 
Yellow 
White 

Constructor & Destructor Documentation

◆ WindowBinFile()

WindowBinFile::WindowBinFile ( )

Member Function Documentation

◆ charCount()

int WindowBinFile::charCount ( ) const

◆ charLeftPadding()

quint8 WindowBinFile::charLeftPadding ( quint8  table,
quint8  id 
) const

◆ charWidth()

quint8 WindowBinFile::charWidth ( quint8  table,
quint8  id 
) const

◆ clear()

void WindowBinFile::clear ( )

◆ image()

const QImage & WindowBinFile::image ( FontColor  color)

◆ isJp()

bool WindowBinFile::isJp ( ) const

◆ isModified()

bool WindowBinFile::isModified ( ) const

◆ isValid()

bool WindowBinFile::isValid ( ) const

◆ letter()

QImage WindowBinFile::letter ( quint8  tableId,
quint8  charId,
FontColor  color 
)

◆ letterPixelIndex()

uint WindowBinFile::letterPixelIndex ( quint8  tableId,
quint8  charId,
const QPoint &  pos 
) const

◆ open() [1/2]

bool WindowBinFile::open ( const QByteArray &  data)

◆ open() [2/2]

bool WindowBinFile::open ( const QString &  path)

◆ save()

bool WindowBinFile::save ( QByteArray &  data) const

◆ setCharLeftPadding()

void WindowBinFile::setCharLeftPadding ( quint8  table,
quint8  id,
quint8  padding 
)

◆ setCharWidth()

void WindowBinFile::setCharWidth ( quint8  table,
quint8  id,
quint8  width 
)

◆ setLetter()

bool WindowBinFile::setLetter ( quint8  tableId,
quint8  charId,
const QImage &  image 
)

◆ setLetterPixelIndex()

bool WindowBinFile::setLetterPixelIndex ( quint8  tableId,
quint8  charId,
const QPoint &  pos,
uint  pixelIndex 
)

◆ setModified()

void WindowBinFile::setModified ( bool  modified)

◆ tableCount()

int WindowBinFile::tableCount ( ) const

◆ tableSize()

int WindowBinFile::tableSize ( quint8  table)
static

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