1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/scalebar/qgsticksscalebarrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsTicksScaleBarRenderer: QgsScaleBarRenderer
{
%Docstring(signature="appended")
A scale bar that draws segments using short ticks.
%End
%TypeHeaderCode
#include "qgsticksscalebarrenderer.h"
%End
public:
enum TickPosition /BaseType=IntEnum/
{
TicksUp,
TicksDown,
TicksMiddle,
};
QgsTicksScaleBarRenderer( TickPosition position = TicksMiddle );
%Docstring
Constructor for QgsTicksScaleBarRenderer.
%End
virtual QString id() const;
virtual QString visibleName() const;
virtual int sortKey() const;
virtual Flags flags() const;
virtual QgsTicksScaleBarRenderer *clone() const /Factory/;
virtual void draw( QgsRenderContext &context,
const QgsScaleBarSettings &settings,
const QgsScaleBarRenderer::ScaleBarContext &scaleContext ) const;
void setTickPosition( TickPosition position );
%Docstring
Sets the ``position`` for tick marks in the scalebar.
.. seealso:: :py:func:`tickPosition`
%End
TickPosition tickPosition() const;
%Docstring
Returns the position for tick marks in the scalebar.
.. seealso:: :py:func:`setTickPosition`
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/scalebar/qgsticksscalebarrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|