16 #ifndef QGSLAYOUTRENDERCONTEXT_H 17 #define QGSLAYOUTRENDERCONTEXT_H 19 #include "qgis_core.h" 43 FlagOutlineOnly = 1 << 2,
44 FlagAntialiasing = 1 << 3,
45 FlagUseAdvancedEffects = 1 << 4,
46 FlagForceVectorOutput = 1 << 5,
47 FlagHideCoverageLayer = 1 << 6,
49 Q_DECLARE_FLAGS( Flags,
Flag )
62 void setFlags( QgsLayoutRenderContext::Flags flags );
79 QgsLayoutRenderContext::Flags flags()
const;
87 bool testFlag(
Flag flag )
const;
92 QgsRenderContext::Flags renderContextFlags()
const;
99 void setDpi(
double dpi );
130 bool gridVisible()
const;
136 void setGridVisible(
bool visible );
142 bool boundingBoxesVisible()
const;
148 void setBoundingBoxesVisible(
bool visible );
156 void setPagesVisible(
bool visible );
194 void flagsChanged( QgsLayoutRenderContext::Flags flags );
203 Flags mFlags =
nullptr;
207 int mCurrentExportLayer = -1;
211 bool mIsPreviewRender =
true;
212 bool mGridVisible =
false;
213 bool mBoundingBoxesVisible =
true;
214 bool mPagesVisible =
true;
217 friend class TestQgsLayout;
218 friend class LayoutContextPreviewSettingRestorer;
224 #endif //QGSLAYOUTRENDERCONTEXT_H
Flag
Flags for controlling how a layout is rendered.
int currentExportLayer() const
Returns the current item layer to draw while exporting.
Q_DECLARE_METATYPE(QModelIndex)
QgsLayoutMeasurementConverter & measurementConverter()
Returns the layout measurement converter to be used in the layout.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Handles rendering and exports of layouts to various formats.
const QgsLayoutMeasurementConverter & measurementConverter() const
Returns the layout measurement converter to be used in the layout.
This class provides a method of converting QgsLayoutMeasurements from one unit to another...
void setCurrentExportLayer(int layer=-1)
Sets the current item layer to draw while exporting.
Stores information relating to the current rendering settings for a layout.
bool isPreviewRender() const
Returns true if the render current being conducted is a preview render, i.e.
bool pagesVisible() const
Returns whether the page items are be visible in the layout.