Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added some comments explaining how alpha works
  • Loading branch information
timlinux authored and alexbruy committed Mar 3, 2012
1 parent 4b88ec3 commit 2422ef5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/symbology-ng-core.sip
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/core/symbology-ng/qgssymbolv2.h
Expand Up @@ -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
Expand Down Expand Up @@ -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; }
Expand Down

0 comments on commit 2422ef5

Please sign in to comment.