mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
|
/************************************************************************
|
||
|
* This file has been generated automatically from *
|
||
|
* *
|
||
|
* src/core/scalebar/qgsticksscalebarrenderer.h *
|
||
|
* *
|
||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||
|
************************************************************************/
|
||
|
|
||
|
|
||
|
|
||
|
class QgsTicksScaleBarRenderer: QgsScaleBarRenderer
|
||
|
{
|
||
|
%Docstring
|
||
|
A scale bar that draws segments using short ticks.
|
||
|
.. versionadded:: 3.0
|
||
|
%End
|
||
|
|
||
|
%TypeHeaderCode
|
||
|
#include "qgsticksscalebarrenderer.h"
|
||
|
%End
|
||
|
public:
|
||
|
|
||
|
enum TickPosition
|
||
|
{
|
||
|
TicksUp,
|
||
|
TicksDown,
|
||
|
TicksMiddle,
|
||
|
};
|
||
|
|
||
|
QgsTicksScaleBarRenderer();
|
||
|
|
||
|
virtual QString name() const;
|
||
|
|
||
|
|
||
|
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.
|
||
|
\see tickPosition()
|
||
|
%End
|
||
|
|
||
|
TickPosition tickPosition() const;
|
||
|
%Docstring
|
||
|
Returns the position for tick marks in the scalebar.
|
||
|
\see setTickPosition()
|
||
|
:rtype: TickPosition
|
||
|
%End
|
||
|
|
||
|
};
|
||
|
|
||
|
/************************************************************************
|
||
|
* This file has been generated automatically from *
|
||
|
* *
|
||
|
* src/core/scalebar/qgsticksscalebarrenderer.h *
|
||
|
* *
|
||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||
|
************************************************************************/
|
||
|
|