Doxygen
|
Class representing a bitmap image generated by doxygen. More...
#include <src/image.h>
Classes | |
struct | Private |
Public Member Functions | |
Image (uint32_t w, uint32_t h) | |
~Image () | |
void | setPixel (uint32_t x, uint32_t y, uint8_t val) |
uint8_t | getPixel (uint32_t x, uint32_t y) const |
void | writeChar (uint32_t x, uint32_t y, char c, uint8_t fg) |
void | writeString (uint32_t x, uint32_t y, const QCString &s, uint8_t fg) |
void | drawHorzLine (uint32_t y, uint32_t xs, uint32_t xe, uint8_t colIndex, uint32_t mask) |
void | drawHorzArrow (uint32_t y, uint32_t xs, uint32_t xe, uint8_t colIndex, uint32_t mask) |
void | drawVertLine (uint32_t x, uint32_t ys, uint32_t ye, uint8_t colIndex, uint32_t mask) |
void | drawVertArrow (uint32_t x, uint32_t ys, uint32_t ye, uint8_t colIndex, uint32_t mask) |
void | drawRect (uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint8_t colIndex, uint32_t mask) |
void | fillRect (uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint8_t colIndex, uint32_t mask) |
bool | save (const QCString &fileName) |
uint32_t | width () const |
uint32_t | height () const |
Static Public Member Functions | |
static uint32_t | stringLength (const QCString &s) |
Private Attributes | |
std::unique_ptr< Private > | p |
Friends | |
uint32_t | stringLength (const QCString &s) |
Image::Image | ( | uint32_t | w, |
uint32_t | h ) |
Definition at line 174 of file image.cpp.
References Config_getInt, ColoredImage::hsl2rgb(), and p.
Referenced by ~Image().
void Image::drawHorzArrow | ( | uint32_t | y, |
uint32_t | xs, | ||
uint32_t | xe, | ||
uint8_t | colIndex, | ||
uint32_t | mask ) |
Definition at line 299 of file image.cpp.
References drawHorzLine(), and drawVertLine().
Referenced by TreeDiagram::drawConnectors().
void Image::drawHorzLine | ( | uint32_t | y, |
uint32_t | xs, | ||
uint32_t | xe, | ||
uint8_t | colIndex, | ||
uint32_t | mask ) |
Definition at line 289 of file image.cpp.
References setPixel().
Referenced by TreeDiagram::drawConnectors(), drawHorzArrow(), drawRect(), drawVertArrow(), and writeBitmapBox().
void Image::drawRect | ( | uint32_t | x, |
uint32_t | y, | ||
uint32_t | width, | ||
uint32_t | height, | ||
uint8_t | colIndex, | ||
uint32_t | mask ) |
Definition at line 328 of file image.cpp.
References drawHorzLine(), and drawVertLine().
Referenced by writeBitmapBox().
void Image::drawVertArrow | ( | uint32_t | x, |
uint32_t | ys, | ||
uint32_t | ye, | ||
uint8_t | colIndex, | ||
uint32_t | mask ) |
Definition at line 318 of file image.cpp.
References drawHorzLine(), and drawVertLine().
Referenced by TreeDiagram::drawConnectors().
void Image::drawVertLine | ( | uint32_t | x, |
uint32_t | ys, | ||
uint32_t | ye, | ||
uint8_t | colIndex, | ||
uint32_t | mask ) |
Definition at line 309 of file image.cpp.
References setPixel().
Referenced by TreeDiagram::drawConnectors(), drawHorzArrow(), drawRect(), and drawVertArrow().
void Image::fillRect | ( | uint32_t | x, |
uint32_t | y, | ||
uint32_t | width, | ||
uint32_t | height, | ||
uint8_t | colIndex, | ||
uint32_t | mask ) |
Definition at line 336 of file image.cpp.
References height(), setPixel(), and width().
Referenced by writeBitmapBox().
uint8_t Image::getPixel | ( | uint32_t | x, |
uint32_t | y ) const |
uint32_t Image::height | ( | ) | const |
Definition at line 209 of file image.cpp.
References p.
Referenced by TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), fillRect(), getPixel(), setPixel(), and ~Image().
bool Image::save | ( | const QCString & | fileName | ) |
Definition at line 346 of file image.cpp.
References QCString::data(), p, and TRUE.
void Image::setPixel | ( | uint32_t | x, |
uint32_t | y, | ||
uint8_t | val ) |
Definition at line 213 of file image.cpp.
References height(), p, and width().
Referenced by drawHorzLine(), drawVertLine(), fillRect(), and writeChar().
|
static |
uint32_t Image::width | ( | ) | const |
Definition at line 208 of file image.cpp.
References p.
Referenced by fillRect(), getPixel(), setPixel(), and ~Image().
void Image::writeChar | ( | uint32_t | x, |
uint32_t | y, | ||
char | c, | ||
uint8_t | fg ) |
Definition at line 223 of file image.cpp.
References charHeight, charPos, charSetWidth, charWidth, fontRaw, getPixel(), and setPixel().
Referenced by writeString().
void Image::writeString | ( | uint32_t | x, |
uint32_t | y, | ||
const QCString & | s, | ||
uint8_t | fg ) |
Definition at line 263 of file image.cpp.
References charWidth, QCString::data(), QCString::isEmpty(), and writeChar().
Referenced by writeBitmapBox().
|
friend |
Definition at line 277 of file image.cpp.
References charWidth, QCString::data(), and QCString::isEmpty().
Referenced by TreeDiagram::computeExtremes(), and writeBitmapBox().
|
private |
Definition at line 51 of file image.h.
Referenced by getPixel(), height(), Image(), save(), setPixel(), and width().