37 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
40 #include <string_view>
42 #include <QPainterPath>
72 static void drawDashedLine(
const QPoint& from,
const QPoint& to, QPainter* painter,
const QColor& color);
75 static void drawCross(
const QPoint& position, QPainter* painter,
const int size = 8);
78 static void drawCaret(
const QPoint& position, QPainter* painter,
const int size = 8);
81 static void drawDiamond(
const QPoint& position, QPainter* painter,
const int size = 8);
101 static QRectF
drawLineWithArrows(QPainter* painter,
const QPen& pen,
const QPoint& start,
const QPoint& end,
102 const QPainterPath& arrow_start = QPainterPath(),
103 const QPainterPath& arrow_end = QPainterPath());
An empty base class with some static convenience functions.
Definition: PainterBase.h:65
static void drawCross(const QPoint &position, QPainter *painter, const int size=8)
draw a cross at position, using a certain size (= width = height) of the cross
static QPainterPath getOpenArrow(int arrow_width)
An arrow head which is open, i.e. '>'.
static void drawDiamond(const QPoint &position, QPainter *painter, const int size=8)
draw an unfilled diamond at position, using a certain size (= width = height) of the diamond
static QRectF drawLineWithArrows(QPainter *painter, const QPen &pen, const QPoint &start, const QPoint &end, const QPainterPath &arrow_start=QPainterPath(), const QPainterPath &arrow_end=QPainterPath())
static void drawIcon(const QPoint &pos, const QRgb &color, const ShapeIcon icon, Size s, QPainter &p)
draws squares, circles etc
static ShapeIcon toShapeIcon(const String &icon)
static void drawCaret(const QPoint &position, QPainter *painter, const int size=8)
draw a caret '^' at position, using a certain size (= width) of the caret
static QPainterPath getClosedArrow(int arrow_width)
An arrow head which is closed, i.e. a triangle.
static void drawDashedLine(const QPoint &from, const QPoint &to, QPainter *painter, const QColor &color)
static method to draw a dashed line
A more convenient string class.
Definition: String.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
ShapeIcon
Definition: PainterBase.h:54