Package arcmap :: Module graphics :: Class RGBA
[hide private]
[frames] | no frames]

Class RGBA

source code

object --+
         |
        RGBA

Instance Methods [hide private]
 
__init__(self, r=0.0, g=0.0, b=0.0, a=1.0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
toU32(self)
Returns: a 32-bit unsigned integer representing the color
source code
 
fromU32(self, u) source code
 
setGdk(self, color)
Sets this based on a gtk.gdk.Color
source code
a gtk.gdk.Color
getGdk(self)
Returns: this color in gdk format
source code
 
contextColor(self, context) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, r=0.0, g=0.0, b=0.0, a=1.0)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • r (float) - red
  • g (float) - green
  • b (float) - blue
  • a (float) - alpha
Overrides: object.__init__

toU32(self)

source code 
Returns:
a 32-bit unsigned integer representing the color

getGdk(self)

source code 
Returns: a gtk.gdk.Color
this color in gdk format