@@ -545,18 +545,31 @@ Sets the original value variable value for data defined symbology
545
545
.. versionadded:: 2.12
546
546
%End
547
547
548
- QgsUnitTypes::RenderUnit outputUnit() const;
548
+ QgsUnitTypes::RenderUnit outputUnit() const /Deprecated/ ;
549
549
%Docstring
550
- Returns the output unit for the context
550
+ Returns the output unit for the context.
551
+
552
+ .. deprecated:: No longer used and will be removed in QGIS 4.0
551
553
%End
552
554
553
- void setOutputUnit( QgsUnitTypes::RenderUnit u );
555
+ void setOutputUnit( QgsUnitTypes::RenderUnit u ) /Deprecated/ ;
554
556
%Docstring
555
- Sets the output unit for the context
557
+ Sets the output unit for the context.
558
+
559
+ .. deprecated:: No longer used and will be removed in QGIS 4.0
556
560
%End
557
561
558
- QgsMapUnitScale mapUnitScale() const;
559
- void setMapUnitScale( const QgsMapUnitScale &scale );
562
+ QgsMapUnitScale mapUnitScale() const /Deprecated/;
563
+ %Docstring
564
+
565
+ .. deprecated:: Will be removed in QGIS 4.0
566
+ %End
567
+
568
+ void setMapUnitScale( const QgsMapUnitScale &scale ) /Deprecated/;
569
+ %Docstring
570
+
571
+ .. deprecated:: Will be removed in QGIS 4.0
572
+ %End
560
573
561
574
qreal opacity() const;
562
575
%Docstring
@@ -577,7 +590,18 @@ Sets the ``opacity`` for the symbol.
577
590
%End
578
591
579
592
bool selected() const;
593
+ %Docstring
594
+ Returns ``True`` if symbols should be rendered using the selected symbol coloring and style.
595
+
596
+ .. seealso:: :py:func:`setSelected`
597
+ %End
598
+
580
599
void setSelected( bool selected );
600
+ %Docstring
601
+ Sets whether symbols should be rendered using the selected symbol coloring and style.
602
+
603
+ .. seealso:: :py:func:`selected`
604
+ %End
581
605
582
606
QgsSymbol::RenderHints renderHints() const;
583
607
%Docstring
@@ -594,9 +618,10 @@ Sets rendering hint flags for the symbol.
594
618
%End
595
619
596
620
void setFeature( const QgsFeature *f );
621
+
597
622
const QgsFeature *feature() const;
598
623
%Docstring
599
- Current feature being rendered - may be null
624
+ Returns the current feature being rendered. This may be ``None``.
600
625
%End
601
626
602
627
void setOriginalGeometryType( QgsWkbTypes::GeometryType type );
@@ -658,7 +683,12 @@ Sets the part number of current geometry
658
683
%End
659
684
660
685
double outputLineWidth( double width ) const;
661
- double outputPixelSize( double size ) const;
686
+
687
+ double outputPixelSize( double size ) const /Deprecated/;
688
+ %Docstring
689
+
690
+ .. deprecated:: Use the size conversion methods in QgsRenderContext instead.
691
+ %End
662
692
663
693
664
694
QgsExpressionContextScope *expressionContextScope();
0 commit comments