Skip to content

Commit c1b268c

Browse files
committedFeb 24, 2012
Added some comments explaining how alpha works
1 parent 371d7fe commit c1b268c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎python/core/symbology-ng-core.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@ class QgsSymbolV2RenderContext
624624
QgsSymbolV2::OutputUnit outputUnit() const;
625625
void setOutputUnit( QgsSymbolV2::OutputUnit u );
626626

627+
//! Get alpha transparency 1 for opaque, 0 for invisible
627628
qreal alpha() const;
629+
//! Set alpha transparency 1 for opaque, 0 for invisible
628630
void setAlpha( qreal alpha );
629631

630632
bool selected() const;

‎src/core/symbology-ng/qgssymbolv2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ class CORE_EXPORT QgsSymbolV2
9292
OutputUnit outputUnit() const { return mOutputUnit; }
9393
void setOutputUnit( OutputUnit u ) { mOutputUnit = u; }
9494

95+
//! Get alpha transparency 1 for opaque, 0 for invisible
9596
qreal alpha() const { return mAlpha; }
97+
//! Set alpha transparency 1 for opaque, 0 for invisible
9698
void setAlpha( qreal alpha ) { mAlpha = alpha; }
9799

98100
//! @note added in 1.5
@@ -137,7 +139,9 @@ class CORE_EXPORT QgsSymbolV2RenderContext
137139
QgsSymbolV2::OutputUnit outputUnit() const { return mOutputUnit; }
138140
void setOutputUnit( QgsSymbolV2::OutputUnit u ) { mOutputUnit = u; }
139141

142+
//! Get alpha transparency 1 for opaque, 0 for invisible
140143
qreal alpha() const { return mAlpha; }
144+
//! Set alpha transparency 1 for opaque, 0 for invisible
141145
void setAlpha( qreal alpha ) { mAlpha = alpha; }
142146

143147
bool selected() const { return mSelected; }

0 commit comments

Comments
 (0)
Please sign in to comment.