QGIS/python/core/auto_generated/layout/qgslayoutrendercontext.sip.in

253 lines
6.6 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layout/qgslayoutrendercontext.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLayoutRenderContext : QObject
{
%Docstring
Stores information relating to the current rendering settings for a layout.
2017-12-15 10:36:55 -04:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgslayoutrendercontext.h"
%End
public:
enum Flag
{
FlagDebug,
FlagOutlineOnly,
FlagAntialiasing,
FlagUseAdvancedEffects,
FlagForceVectorOutput,
2017-12-23 17:00:50 +10:00
FlagHideCoverageLayer,
FlagDrawSelection,
FlagDisableTiledRasterLayerRenders,
};
typedef QFlags<QgsLayoutRenderContext::Flag> Flags;
QgsLayoutRenderContext( QgsLayout *layout /TransferThis/ );
%Docstring
Constructor for QgsLayoutRenderContext.
%End
void setFlags( QgsLayoutRenderContext::Flags flags );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the combination of ``flags`` that will be used for rendering the layout.
.. seealso:: :py:func:`setFlag`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`flags`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`testFlag`
%End
void setFlag( QgsLayoutRenderContext::Flag flag, bool on = true );
%Docstring
2017-12-15 10:36:55 -04:00
Enables or disables a particular rendering ``flag`` for the layout. Other existing
flags are not affected.
.. seealso:: :py:func:`setFlags`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`flags`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`testFlag`
%End
QgsLayoutRenderContext::Flags flags() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current combination of flags used for rendering the layout.
.. seealso:: :py:func:`setFlags`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setFlag`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`testFlag`
%End
bool testFlag( Flag flag ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Check whether a particular rendering ``flag`` is enabled for the layout.
.. seealso:: :py:func:`setFlags`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setFlag`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`flags`
%End
QgsRenderContext::Flags renderContextFlags() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the combination of render context flags matched to the layout context's settings.
%End
void setDpi( double dpi );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the ``dpi`` for outputting the layout. This also sets the
corresponding DPI for the context's measurementConverter().
.. seealso:: :py:func:`dpi`
%End
double dpi() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the ``dpi`` for outputting the layout.
.. seealso:: :py:func:`setDpi`
%End
void setSelectionColor( const QColor &color );
%Docstring
Sets color that is used for drawing of selected vector features
.. seealso:: :py:func:`selectionColor`
.. versionadded:: 3.4
%End
QColor selectionColor() const;
%Docstring
Gets color that is used for drawing of selected vector features
.. seealso:: :py:func:`setSelectionColor`
.. versionadded:: 3.4
%End
QgsLayoutMeasurementConverter &measurementConverter();
%Docstring
2017-12-15 10:36:55 -04:00
Returns the layout measurement converter to be used in the layout. This converter is used
for translating between other measurement units and the layout's native unit.
%End
bool isPreviewRender() const;
%Docstring
2019-02-26 19:54:09 +10:00
Returns ``True`` if the render current being conducted is a preview render,
2017-12-15 10:36:55 -04:00
i.e. it is being rendered inside a QGraphicsView widget as opposed to a destination
device (such as an image).
%End
2017-07-24 07:57:25 +10:00
bool gridVisible() const;
%Docstring
2019-02-26 19:54:09 +10:00
Returns ``True`` if the page grid should be drawn.
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setGridVisible`
2017-07-24 07:57:25 +10:00
%End
void setGridVisible( bool visible );
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the page grid should be ``visible``.
.. seealso:: :py:func:`gridVisible`
%End
bool boundingBoxesVisible() const;
%Docstring
2019-02-26 19:54:09 +10:00
Returns ``True`` if the item bounding boxes should be drawn.
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setBoundingBoxesVisible`
%End
void setBoundingBoxesVisible( bool visible );
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the item bounding boxes should be ``visible``.
.. seealso:: :py:func:`boundingBoxesVisible`
%End
2017-10-06 16:40:12 +10:00
void setPagesVisible( bool visible );
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the page items should be ``visible`` in the layout. Removing
them will prevent both display of the page boundaries in layout views and
will also prevent them from being rendered in layout exports.
.. seealso:: :py:func:`pagesVisible`
2017-10-06 16:40:12 +10:00
%End
bool pagesVisible() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns whether the page items are be visible in the layout. This setting
effects both display of the page boundaries in layout views and
whether they will be rendered in layout exports.
.. seealso:: :py:func:`setPagesVisible`
2017-10-06 16:40:12 +10:00
%End
void setCurrentExportLayer( int layer = -1 );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the current item ``layer`` to draw while exporting. QgsLayoutItem subclasses
which support multi-layer SVG exports must check the currentExportLayer()
and customize their rendering based on the layer.
2017-12-15 10:36:55 -04:00
If ``layer`` is -1, all item layers will be rendered.
.. seealso:: :py:func:`currentExportLayer`
%End
int currentExportLayer() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current item layer to draw while exporting. QgsLayoutItem subclasses
which support multi-layer SVG exports must check this
and customize their rendering based on the layer.
2017-12-15 10:36:55 -04:00
If ``layer`` is -1, all item layers should be rendered.
.. seealso:: :py:func:`setCurrentExportLayer`
%End
QgsRenderContext::TextRenderFormat textRenderFormat() const;
%Docstring
Returns the text render format, which dictates how text is rendered (e.g. as paths or real text objects).
.. seealso:: :py:func:`setTextRenderFormat`
.. versionadded:: 3.4.3
%End
void setTextRenderFormat( QgsRenderContext::TextRenderFormat format );
%Docstring
Sets the text render ``format``, which dictates how text is rendered (e.g. as paths or real text objects).
.. seealso:: :py:func:`textRenderFormat`
.. versionadded:: 3.4.3
%End
signals:
void flagsChanged( QgsLayoutRenderContext::Flags flags );
%Docstring
2017-12-15 10:36:55 -04:00
Emitted whenever the context's ``flags`` change.
.. seealso:: :py:func:`setFlags`
2017-12-23 15:30:13 +10:00
%End
void dpiChanged();
%Docstring
Emitted when the context's DPI is changed.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layout/qgslayoutrendercontext.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/