#include <painter.h>
Public Types | |
| CopyROP | |
| OrROP | |
| dst = src | |
| AndROP | |
| dst = src | dst | |
| XorROP | |
| dst = src ^ dst | |
| enum | RasterOp { CopyROP, OrROP, AndROP, XorROP } |
Public Member Functions | |
| Painter (const Pixmap *pixmap=0, bool clipping=true) | |
constructor - binds this Painter to the pixmap | |
| ~Painter () | |
| bool | begin (const Pixmap *pixmap, bool clipping=true) |
| bool | begin () |
| bool | end () |
| Pixmap * | pixmap () const |
| bool | isActive () const |
| const Font & | font () const |
| void | setFont (const Font &font) |
| const Pen & | pen () const |
| void | setPen (const Pen &pen) |
| const Brush & | brush () const |
| void | setBrush (const Brush &brush) |
| const Color & | backgroundColor () const |
| void | setBackgroundColor (const Color &color) |
| void | save () |
| void | restore () |
| void | flush () |
| RasterOp | rasterOp () const |
| void | setRasterOp (RasterOp raster_op) |
| void | setClipping (bool enable) |
| bool | clipping () const |
| bool | hasClipping () const |
| void | drawPoint (int x, int y) |
| void | drawPoint (const Point &p) |
| void | drawPoints (const PointArray &points, int start=0, int end=-1) |
| void | drawHorizontalLine (int x1, int x2, int y) |
| void | drawVerticalLine (int x, int y1, int y2) |
| void | drawLine (int x1, int y1, int x2, int y2) |
| void | drawLine (const Point &p1, const Point &p2) |
| void | fillRect (const Rect &r, const Brush &brush) |
| void | fillRect (int x, int y, int w, int h, const Brush &brush) |
| void | fillRegion (const Region &r, const Brush &brush) |
| void | blendRect (const Rect &r, const Brush &brush) |
| void | blendRect (int x, int y, int w, int h, const Brush &brush) |
| void | blendRegion (const Region &r, const Brush &brush) |
| void | eraseRect (const Rect &r) |
| void | eraseRect (int x, int y, int w, int h) |
| void | eraseRegion (const Region &r) |
| void | drawRect (int x, int y, int w, int h) |
| void | drawRect (const Rect &r) |
| void | drawLineSegments (const PointArray &points, int start=0, int end=-1) |
| void | drawPolyline (const PointArray &points, int start=0, int end=-1) |
| void | drawPolygon (const PointArray &points, int start=0, int end=-1) |
| void | drawPixmap (const Point &p, const Pixmap &src, const Rect &sr) |
| void | drawPixmap (const Point &p, const Pixmap &src) |
| void | drawPixmap (int x, int y, const Pixmap &src, int sx=0, int sy=0, int sw=-1, int sh=-1) |
| void | drawPixmap (const Rect &r, const Pixmap &src) |
| void | drawTiledPixmap (const Rect &r, const Pixmap &src, const Point &sp) |
| void | drawTiledPixmap (const Rect &r, const Pixmap &src) |
| void | drawTiledPixmap (int x, int y, int w, int h, const Pixmap &src, int sx=0, int sy=0) |
| void | drawText (int x, int y, const std::string &text, int len=-1) |
| void | drawText (const Point &p, const std::string &text, int len=-1) |
| void | drawText (int x, int y, const std::string &text, int pos, int len) |
| void | drawText (const Point &p, const std::string &text, int pos, int len) |
| Rect | boundingRect (const std::string &text, int pos=0, int len=-1) |
Protected Member Functions | |
| bool | isClipped (int x, int y) const |
| bool | isClipped (const Point &p) const |
| void | rop (int pixeladdr, int pixel) |
Classes | |
| class | State |
| Wt::Painter::Painter | ( | const Pixmap * | pixmap = 0, |
|
| bool | clipping = true | |||
| ) |
constructor - binds this Painter to the pixmap
| Wt::Painter::~Painter | ( | ) |
| const Color& Wt::Painter::backgroundColor | ( | ) | const [inline] |
| bool Wt::Painter::begin | ( | ) |
| bool Wt::Painter::begin | ( | const Pixmap * | pixmap, | |
| bool | clipping = true | |||
| ) |
| void Wt::Painter::blendRect | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const Brush & | brush | |||
| ) |
| Rect Wt::Painter::boundingRect | ( | const std::string & | text, | |
| int | pos = 0, |
|||
| int | len = -1 | |||
| ) |
| const Brush& Wt::Painter::brush | ( | ) | const [inline] |
| bool Wt::Painter::clipping | ( | ) | const [inline] |
| void Wt::Painter::drawHorizontalLine | ( | int | x1, | |
| int | x2, | |||
| int | y | |||
| ) |
| void Wt::Painter::drawLine | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
| void Wt::Painter::drawLineSegments | ( | const PointArray & | points, | |
| int | start = 0, |
|||
| int | end = -1 | |||
| ) |
| void Wt::Painter::drawPixmap | ( | int | x, | |
| int | y, | |||
| const Pixmap & | src, | |||
| int | sx = 0, |
|||
| int | sy = 0, |
|||
| int | sw = -1, |
|||
| int | sh = -1 | |||
| ) |
| void Wt::Painter::drawPoint | ( | const Point & | p | ) |
| void Wt::Painter::drawPoint | ( | int | x, | |
| int | y | |||
| ) |
| void Wt::Painter::drawPoints | ( | const PointArray & | points, | |
| int | start = 0, |
|||
| int | end = -1 | |||
| ) |
| void Wt::Painter::drawPolygon | ( | const PointArray & | points, | |
| int | start = 0, |
|||
| int | end = -1 | |||
| ) |
| void Wt::Painter::drawPolyline | ( | const PointArray & | points, | |
| int | start = 0, |
|||
| int | end = -1 | |||
| ) |
| void Wt::Painter::drawRect | ( | const Rect & | r | ) |
| void Wt::Painter::drawRect | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
| void Wt::Painter::drawText | ( | const Point & | p, | |
| const std::string & | text, | |||
| int | pos, | |||
| int | len | |||
| ) |
| void Wt::Painter::drawText | ( | int | x, | |
| int | y, | |||
| const std::string & | text, | |||
| int | pos, | |||
| int | len | |||
| ) |
| void Wt::Painter::drawText | ( | const Point & | p, | |
| const std::string & | text, | |||
| int | len = -1 | |||
| ) |
| void Wt::Painter::drawText | ( | int | x, | |
| int | y, | |||
| const std::string & | text, | |||
| int | len = -1 | |||
| ) |
| void Wt::Painter::drawTiledPixmap | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const Pixmap & | src, | |||
| int | sx = 0, |
|||
| int | sy = 0 | |||
| ) |
| void Wt::Painter::drawVerticalLine | ( | int | x, | |
| int | y1, | |||
| int | y2 | |||
| ) |
| bool Wt::Painter::end | ( | ) |
| void Wt::Painter::eraseRect | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
| void Wt::Painter::eraseRect | ( | const Rect & | r | ) |
| void Wt::Painter::eraseRegion | ( | const Region & | r | ) |
| void Wt::Painter::fillRect | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const Brush & | brush | |||
| ) |
| void Wt::Painter::flush | ( | ) | [inline] |
| const Font& Wt::Painter::font | ( | ) | const [inline] |
| bool Wt::Painter::hasClipping | ( | ) | const [inline] |
| bool Wt::Painter::isActive | ( | ) | const |
| bool Wt::Painter::isClipped | ( | const Point & | p | ) | const [protected] |
| bool Wt::Painter::isClipped | ( | int | x, | |
| int | y | |||
| ) | const [protected] |
| const Pen& Wt::Painter::pen | ( | ) | const [inline] |
| Pixmap* Wt::Painter::pixmap | ( | ) | const [inline] |
| RasterOp Wt::Painter::rasterOp | ( | ) | const [inline] |
| void Wt::Painter::restore | ( | ) | [inline] |
| void Wt::Painter::rop | ( | int | pixeladdr, | |
| int | pixel | |||
| ) | [protected] |
| void Wt::Painter::save | ( | ) | [inline] |
| void Wt::Painter::setBackgroundColor | ( | const Color & | color | ) | [inline] |
| void Wt::Painter::setBrush | ( | const Brush & | brush | ) | [inline] |
| void Wt::Painter::setClipping | ( | bool | enable | ) | [inline] |
| void Wt::Painter::setFont | ( | const Font & | font | ) | [inline] |
| void Wt::Painter::setPen | ( | const Pen & | pen | ) | [inline] |
| void Wt::Painter::setRasterOp | ( | RasterOp | raster_op | ) | [inline] |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.