Skip to content
Permalink
Browse files
Added some comments explaining how alpha works
  • Loading branch information
timlinux committed Feb 24, 2012
1 parent 371d7fe commit c1b268c2d50fc5718ce4be3ea044800ba0d93d91
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
@@ -624,7 +624,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;
@@ -92,7 +92,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
@@ -137,7 +139,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 c1b268c

Please sign in to comment.