mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
/************************************************************************
|
|
* 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
|
|
{
|
|
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 *
|
|
************************************************************************/
|