|
| JXImagePainter (JXImage *image, Drawable drawable, const JRect &defaultClipRect, const Region defaultClipRegion) |
|
| ~JXImagePainter () override |
|
void | StringNoSubstitutions (const JCoordinate left, const JCoordinate top, const JString &str) override |
|
void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) override |
|
void | Point (const JCoordinate x, const JCoordinate y) override |
|
void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2) override |
|
void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
|
void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
|
void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) override |
|
void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly) override |
|
void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect) override |
|
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JIndex uIndex, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) override |
|
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
|
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
|
virtual void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect)=0 |
|
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
virtual void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop)=0 |
|
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
| JXWindowPainter (JXGC *gc, Drawable drawable, const JRect &defaultClipRect, const Region defaultClipRegion) |
|
| ~JXWindowPainter () override |
|
JXDisplay * | GetDisplay () const |
|
JXColorManager * | GetXColorManager () const |
|
JXGC * | GetGC () const |
|
void | Reset () override |
|
void | Reset (const JRect &defClipRect, const Region clipRegion) |
|
Region | GetClipRegion () const |
|
void | SetClipRegion (const Region region) |
|
void | ResetClipRegion () |
|
JRect | SetClipRect (const JRect &r) override |
|
void | SetDashList (const JArray< JSize > &dashList, const JSize dashOffset=0) override |
|
void | StringNoSubstitutions (const JCoordinate left, const JCoordinate top, const JString &str) override |
|
void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) override |
|
void | Point (const JCoordinate x, const JCoordinate y) override |
|
void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2) override |
|
void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
|
void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
|
void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) override |
|
void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly) override |
|
void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect) override |
|
Drawable | GetDrawable () const |
|
XftDraw * | GetFontDrawable () const |
|
bool | GetDefaultClipRegion (Region *region) const |
|
void | SetDefaultClipRegion (const Region region) |
|
virtual void | Reset () |
|
void | Reset (const JRect &defClipRect) |
|
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
virtual void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop)=0 |
|
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
virtual void | Point (const JCoordinate x, const JCoordinate y)=0 |
|
void | Point (const JPoint &pt) |
|
virtual void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2)=0 |
|
void | Line (const JPoint &pt1, const JPoint &pt2) |
|
virtual void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h)=0 |
|
void | Rect (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Rect (const JRect &bounds) |
|
virtual void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h)=0 |
|
void | Ellipse (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Ellipse (const JRect &bounds) |
|
virtual void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle)=0 |
|
void | Arc (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) |
|
void | Arc (const JRect &bounds, const JFloat startAngle, const JFloat deltaAngle) |
|
virtual void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly)=0 |
|
void | Polygon (const JPoint &upperLeft, const JPolygon &poly) |
|
void | Polygon (const JPolygon &poly) |
|
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
|
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
|
virtual void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect)=0 |
|
| JPainter (JFontManager *fontManager, const JRect &defaultClipRect) |
|
virtual | ~JPainter () |
|
JFontManager * | GetFontManager () const |
|
void | Reset (const JRect &defClipRect) |
|
virtual void | ResetAllButClipping () |
|
const JRect & | GetClipRect () const |
|
void | ResetClipRect () |
|
const JRect & | GetDefaultClipRect () const |
|
void | SetDefaultClipRect (const JRect &r) |
|
const JPoint & | GetOrigin () const |
|
void | SetOrigin (const JCoordinate x, const JCoordinate y) |
|
void | SetOrigin (const JPoint &pt) |
|
void | ShiftOrigin (const JCoordinate dx, const JCoordinate dy) |
|
void | ShiftOrigin (const JPoint &delta) |
|
const JPoint & | GetPenLocation () const |
|
void | SetPenLocation (const JCoordinate x, const JCoordinate y) |
|
void | SetPenLocation (const JPoint &pt) |
|
void | ShiftPenLocation (const JCoordinate dx, const JCoordinate dy) |
|
void | ShiftPenLocation (const JPoint &delta) |
|
JColorID | GetPenColor () const |
|
void | SetPenColor (const JColorID color) |
|
JSize | GetLineWidth () const |
|
void | SetLineWidth (const JSize width) |
|
bool | LinesAreDashed () const |
|
void | DrawDashedLines (const bool on) |
|
bool | GetDashList (const JArray< JSize > **dashList, JSize *dashOffset) const |
|
bool | IsFilling () const |
|
void | SetFilling (const bool on) |
|
const JFont & | GetFont () const |
|
void | SetFontName (const JString &name) |
|
void | SetFontSize (const JSize size) |
|
void | SetFontStyle (const JFontStyle &style) |
|
void | SetFont (const JFont &f) |
|
JSize | GetLineHeight (JCoordinate *ascent, JCoordinate *descent) const |
|
JSize | GetLineHeight () const |
|
JSize | GetStringWidth (const JString &str) const |
|
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
void | Point (const JPoint &pt) |
|
void | Line (const JPoint &pt1, const JPoint &pt2) |
|
void | LineTo (const JCoordinate x, const JCoordinate y) |
|
void | LineTo (const JPoint &pt) |
|
void | DeltaLine (const JCoordinate dx, const JCoordinate dy) |
|
void | DeltaLine (const JPoint &delta) |
|
void | Rect (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Rect (const JRect &bounds) |
|
void | RectInside (const JRect &bounds) |
|
void | Ellipse (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Ellipse (const JRect &bounds) |
|
void | Arc (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) |
|
void | Arc (const JRect &bounds, const JFloat startAngle, const JFloat deltaAngle) |
|
void | Polygon (const JPoint &upperLeft, const JPolygon &poly) |
|
void | Polygon (const JPolygon &poly) |
|
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
|
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
|
| JBroadcaster () |
|
virtual | ~JBroadcaster () |
|
JBroadcaster & | operator= (const JBroadcaster &source) |
|
bool | HasSenders () const |
|
JSize | GetSenderCount () const |
|
bool | HasRecipients () const |
|
JSize | GetRecipientCount () const |
|
virtual JString | ToString () const |
|
template<class T > |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
|
Interface for the JXImagePainter class
This class implements the functions required to draw to a JXImage.
We simply ensure that the JXImage is in Pixmap mode before calling
JXWindowPainter.