11 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
14 #include <string_view>
16 #include <QPainterPath>
46 static void drawDashedLine(
const QPoint& from,
const QPoint& to, QPainter* painter,
const QColor& color);
49 static void drawCross(
const QPoint& position, QPainter* painter,
const int size = 8);
52 static void drawCaret(
const QPoint& position, QPainter* painter,
const int size = 8);
55 static void drawDiamond(
const QPoint& position, QPainter* painter,
const int size = 8);
75 static QRectF
drawLineWithArrows(QPainter* painter,
const QPen& pen,
const QPoint& start,
const QPoint& end,
76 const QPainterPath& arrow_start = QPainterPath(),
77 const QPainterPath& arrow_end = QPainterPath());
An empty base class with some static convenience functions.
Definition: PainterBase.h:39
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:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
ShapeIcon
Definition: PainterBase.h:28