Skip to content
Permalink
Browse files
Added some comments explaining how alpha works
  • Loading branch information
timlinux authored and alexbruy committed Mar 3, 2012
1 parent 4b88ec3 commit 2422ef5c81b280323bbc4db0c8d5f75d60d18b13
Showing with 6 additions and 0 deletions.
  1. +2 −0 python/core/symbology-ng-core.sip
  2. +4 −0 src/core/symbology-ng/qgssymbolv2.h
@@ -615,7 +615,9 @@ class QgsSymbolV2RenderContext
QgsSymbolV2::OutputUnit outputUnit() const;
void setOutputUnit( QgsSymbolV2::OutputUnit u );

//! Get alpha transparency 1 for opaque, 0 for invisible
qreal alpha() const;
//! Set alpha transparency 1 for opaque, 0 for invisible
void setAlpha( qreal alpha );

bool selected() const;
@@ -90,7 +90,9 @@ class CORE_EXPORT QgsSymbolV2
OutputUnit outputUnit() const { return mOutputUnit; }
void setOutputUnit( OutputUnit u ) { mOutputUnit = u; }

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

//! @note added in 1.5
@@ -133,7 +135,9 @@ class CORE_EXPORT QgsSymbolV2RenderContext
QgsSymbolV2::OutputUnit outputUnit() const { return mOutputUnit; }
void setOutputUnit( QgsSymbolV2::OutputUnit u ) { mOutputUnit = u; }

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

bool selected() const { return mSelected; }

0 comments on commit 2422ef5

Please sign in to comment.